MLIR  19.0.0git
IRDLLoading.h
Go to the documentation of this file.
1 //===- IRDLRegistration.h - IRDL registration -------------------*- C++ -*-===//
2 //
3 // This file is licensed under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Manages the registration of MLIR objects from IRDL operations.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_DIALECT_IRDL_IRDLREGISTRATION_H
14 #define MLIR_DIALECT_IRDL_IRDLREGISTRATION_H
15 
16 namespace mlir {
17 struct LogicalResult;
18 class ModuleOp;
19 } // namespace mlir
20 
21 namespace mlir {
22 namespace irdl {
23 
24 /// Load all the dialects defined in the module.
25 LogicalResult loadDialects(ModuleOp op);
26 
27 } // namespace irdl
28 } // namespace mlir
29 
30 #endif // MLIR_DIALECT_IRDL_IRDLREGISTRATION_H
LogicalResult loadDialects(ModuleOp op)
Load all the dialects defined in the module.
Include the generated interface declarations.