12 #ifndef MLIR_TRANSLATION_H 13 #define MLIR_TRANSLATION_H 15 #include "llvm/ADT/StringMap.h" 29 class OwningModuleRef;
36 std::function<OwningModuleRef(llvm::SourceMgr &sourceMgr, MLIRContext *)>;
43 std::function<OwningModuleRef(llvm::StringRef, MLIRContext *)>;
48 std::function<LogicalResult(ModuleOp, llvm::raw_ostream &output)>;
56 llvm::SourceMgr &sourceMgr, llvm::raw_ostream &output,
MLIRContext *)>;
86 const llvm::StringMap<TranslateSourceMgrToMLIRFunction> &
88 const llvm::StringMap<TranslateFromMLIRFunction> &
94 #endif // MLIR_TRANSLATION_H Definition: Translation.h:68
Definition: InferTypeOpInterface.cpp:20
Definition: PassRegistry.cpp:413
const llvm::StringMap< TranslateSourceMgrToMLIRFunction > & getTranslationToMLIRRegistry()
Get a read-only reference to the translator registry.
Definition: Translation.cpp:100
Definition: Translation.h:79
Definition: LogicalResult.h:18
const llvm::StringMap< TranslateFromMLIRFunction > & getTranslationFromMLIRRegistry()
Definition: Translation.cpp:105
Definition: Translation.h:75
std::function< LogicalResult(ModuleOp, llvm::raw_ostream &output)> TranslateFromMLIRFunction
Definition: Translation.h:48
std::function< OwningModuleRef(llvm::SourceMgr &sourceMgr, MLIRContext *)> TranslateSourceMgrToMLIRFunction
Definition: Translation.h:36
Definition: MLIRContext.h:34
std::function< OwningModuleRef(llvm::StringRef, MLIRContext *)> TranslateStringRefToMLIRFunction
Definition: Translation.h:43
std::function< LogicalResult(llvm::SourceMgr &sourceMgr, llvm::raw_ostream &output, MLIRContext *)> TranslateFunction
Definition: Translation.h:56
const llvm::StringMap< TranslateFunction > & getTranslationRegistry()
Definition: Translation.cpp:109