MLIR 22.0.0git
Import.h File Reference
#include "mlir/IR/OwningOpRef.h"
#include <memory>

Go to the source code of this file.

Namespaces

namespace  llvm
 The OpAsmOpInterface, see OpAsmInterface.td for more details.
namespace  mlir
 Include the generated interface declarations.

Functions

OwningOpRef< ModuleOp > mlir::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.
DataLayoutSpecInterface mlir::translateDataLayout (const llvm::DataLayout &dataLayout, MLIRContext *context)
 Translate the given LLVM data layout into an MLIR equivalent using the DLTI dialect.