1*1337622aSThéo Degioanni //===- IRDL.cpp - C Interface for IRDL dialect ----------------------------===// 2*1337622aSThéo Degioanni // 3*1337622aSThéo Degioanni // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*1337622aSThéo Degioanni // See https://llvm.org/LICENSE.txt for license information. 5*1337622aSThéo Degioanni // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*1337622aSThéo Degioanni // 7*1337622aSThéo Degioanni //===----------------------------------------------------------------------===// 8*1337622aSThéo Degioanni 9*1337622aSThéo Degioanni #include "mlir-c/Dialect/IRDL.h" 10*1337622aSThéo Degioanni #include "mlir/CAPI/Registration.h" 11*1337622aSThéo Degioanni #include "mlir/Dialect/IRDL/IR/IRDL.h" 12*1337622aSThéo Degioanni #include "mlir/Dialect/IRDL/IRDLLoading.h" 13*1337622aSThéo Degioanni MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(IRDL,irdl,mlir::irdl::IRDLDialect)14*1337622aSThéo DegioanniMLIR_DEFINE_CAPI_DIALECT_REGISTRATION(IRDL, irdl, mlir::irdl::IRDLDialect) 15*1337622aSThéo Degioanni 16*1337622aSThéo Degioanni MlirLogicalResult mlirLoadIRDLDialects(MlirModule module) { 17*1337622aSThéo Degioanni return wrap(mlir::irdl::loadDialects(unwrap(module))); 18*1337622aSThéo Degioanni } 19