aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/CAPI/Dialect/IRDL.cpp
blob: cb9dc8ceb6795def7d2e1774724f416037def444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//===- IRDL.cpp - C Interface for IRDL dialect ----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "mlir-c/Dialect/IRDL.h"
#include "mlir/CAPI/Registration.h"
#include "mlir/Dialect/IRDL/IR/IRDL.h"
#include "mlir/Dialect/IRDL/IRDLLoading.h"

MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(IRDL, irdl, mlir::irdl::IRDLDialect)

MlirLogicalResult mlirLoadIRDLDialects(MlirModule module) {
  return wrap(mlir::irdl::loadDialects(unwrap(module)));
}