MLIR
20.0.0git
|
Utility class to translate LLVM IR types to the MLIR LLVM dialect. More...
#include "mlir/Target/LLVMIR/TypeFromLLVM.h"
Public Member Functions | |
TypeFromLLVMIRTranslator (MLIRContext &context) | |
~TypeFromLLVMIRTranslator () | |
Type | translateType (llvm::Type *type) |
Translates the given LLVM IR type to the MLIR LLVM dialect. More... | |
Utility class to translate LLVM IR types to the MLIR LLVM dialect.
Stores the translation state, in particular any identified structure types that are reused across translations.
Definition at line 39 of file TypeFromLLVM.h.
LLVM::TypeFromLLVMIRTranslator::TypeFromLLVMIRTranslator | ( | MLIRContext & | context | ) |
Definition at line 166 of file TypeFromLLVM.cpp.
|
default |
Type LLVM::TypeFromLLVMIRTranslator::translateType | ( | llvm::Type * | type | ) |
Translates the given LLVM IR type to the MLIR LLVM dialect.
Definition at line 171 of file TypeFromLLVM.cpp.
Referenced by mlir::LLVM::ModuleImport::convertType().