13 #ifndef MLIR_TARGET_LLVMIR_IMPORT_H
14 #define MLIR_TARGET_LLVMIR_IMPORT_H
27 class DataLayoutSpecInterface;
50 std::unique_ptr<llvm::Module> llvmModule, MLIRContext *context,
51 bool emitExpensiveWarnings =
true,
bool dropDICompositeTypeElements =
false,
52 bool loadAllDialects =
true,
bool preferUnregisteredIntrinsics =
false);
57 MLIRContext *context);
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Include the generated interface declarations.
DataLayoutSpecInterface translateDataLayout(const llvm::DataLayout &dataLayout, MLIRContext *context)
Translate the given LLVM data layout into an MLIR equivalent using the DLTI dialect.
OwningOpRef< ModuleOp > translateLLVMIRToModule(std::unique_ptr< llvm::Module > llvmModule, MLIRContext *context, bool emitExpensiveWarnings=true, bool dropDICompositeTypeElements=false, bool loadAllDialects=true, bool preferUnregisteredIntrinsics=false)
Translates the LLVM module into an MLIR module living in the given context.