13 #ifndef MLIR_TARGET_LLVMIR_IMPORT_H
14 #define MLIR_TARGET_LLVMIR_IMPORT_H
27 class DataLayoutSpecInterface;
46 MLIRContext *context,
bool emitExpensiveWarnings =
true,
47 bool dropDICompositeTypeElements =
false,
48 bool loadAllDialects =
true);
53 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)
Translates the LLVM module into an MLIR module living in the given context.