13#ifndef MLIR_TARGET_LLVMIR_IMPORT_H
14#define MLIR_TARGET_LLVMIR_IMPORT_H
27class DataLayoutSpecInterface;
53 std::unique_ptr<llvm::Module> llvmModule,
MLIRContext *context,
54 bool emitExpensiveWarnings =
true,
bool dropDICompositeTypeElements =
false,
55 bool loadAllDialects =
true,
bool preferUnregisteredIntrinsics =
false,
56 bool importStructsAsLiterals =
false);
MLIRContext is the top-level object for a collection of MLIR operations.
This class acts as an owning reference to an op, and will automatically destroy the held op on destru...
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, bool importStructsAsLiterals=false)
Translates the LLVM module into an MLIR module living in the given context.