1*1337622aSThéo Degioanni //===-- mlir-c/Dialect/IRDL.h - C API for IRDL --------------------*- C -*-===// 2*1337622aSThéo Degioanni // 3*1337622aSThéo Degioanni // Part of the LLVM Project, under the Apache License v2.0 with LLVM 4*1337622aSThéo Degioanni // Exceptions. 5*1337622aSThéo Degioanni // See https://llvm.org/LICENSE.txt for license information. 6*1337622aSThéo Degioanni // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7*1337622aSThéo Degioanni // 8*1337622aSThéo Degioanni //===----------------------------------------------------------------------===// 9*1337622aSThéo Degioanni 10*1337622aSThéo Degioanni #ifndef MLIR_C_DIALECT_IRDL_H 11*1337622aSThéo Degioanni #define MLIR_C_DIALECT_IRDL_H 12*1337622aSThéo Degioanni 13*1337622aSThéo Degioanni #include "mlir-c/IR.h" 14*1337622aSThéo Degioanni 15*1337622aSThéo Degioanni #ifdef __cplusplus 16*1337622aSThéo Degioanni extern "C" { 17*1337622aSThéo Degioanni #endif 18*1337622aSThéo Degioanni 19*1337622aSThéo Degioanni MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(IRDL, irdl); 20*1337622aSThéo Degioanni 21*1337622aSThéo Degioanni /// Loads all IRDL dialects in the provided module, registering the dialects in 22*1337622aSThéo Degioanni /// the module's associated context. 23*1337622aSThéo Degioanni MLIR_CAPI_EXPORTED MlirLogicalResult mlirLoadIRDLDialects(MlirModule module); 24*1337622aSThéo Degioanni 25*1337622aSThéo Degioanni #ifdef __cplusplus 26*1337622aSThéo Degioanni } 27*1337622aSThéo Degioanni #endif 28*1337622aSThéo Degioanni 29*1337622aSThéo Degioanni #endif // MLIR_C_DIALECT_IRDL_H 30