[C++20] [Modules] Fix may-be incorrect ADL for module local entities (#123931)
[llvm-project.git] / mlir / include / mlir-c / Dialect / IRDL.h
blobc4d6ffd989af9b1db8462b614baa9e3c70a3b55c
1 //===-- mlir-c/Dialect/IRDL.h - C API for IRDL --------------------*- C -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM
4 // Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
10 #ifndef MLIR_C_DIALECT_IRDL_H
11 #define MLIR_C_DIALECT_IRDL_H
13 #include "mlir-c/IR.h"
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
19 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(IRDL, irdl);
21 /// Loads all IRDL dialects in the provided module, registering the dialects in
22 /// the module's associated context.
23 MLIR_CAPI_EXPORTED MlirLogicalResult mlirLoadIRDLDialects(MlirModule module);
25 #ifdef __cplusplus
27 #endif
29 #endif // MLIR_C_DIALECT_IRDL_H