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 llvm { 17 struct LogicalResult; 18 } // namespace llvm 19 20 namespace mlir { 21 class ModuleOp; 22 } // namespace mlir 23 24 namespace mlir { 25 namespace irdl { 26 27 /// Load all the dialects defined in the module. 28 llvm::LogicalResult loadDialects(ModuleOp op); 29 30 } // namespace irdl 31 } // namespace mlir 32 33 #endif // MLIR_DIALECT_IRDL_IRDLREGISTRATION_H 34