MLIR
20.0.0git
|
Utility class to translate MLIR LLVM dialect types to LLVM IR. More...
#include "mlir/Target/LLVMIR/TypeToLLVM.h"
Public Member Functions | |
TypeToLLVMIRTranslator (llvm::LLVMContext &context) | |
~TypeToLLVMIRTranslator () | |
unsigned | getPreferredAlignment (Type type, const llvm::DataLayout &layout) |
Returns the preferred alignment for the type given the data layout. More... | |
llvm::Type * | translateType (Type type) |
Translates the given MLIR LLVM dialect type to LLVM IR. More... | |
Utility class to translate MLIR LLVM dialect types to LLVM IR.
Stores the translation state, in particular any identified structure types that can be reused in further translation.
Definition at line 39 of file TypeToLLVM.h.
LLVM::TypeToLLVMIRTranslator::TypeToLLVMIRTranslator | ( | llvm::LLVMContext & | context | ) |
Definition at line 187 of file TypeToLLVM.cpp.
|
default |
unsigned LLVM::TypeToLLVMIRTranslator::getPreferredAlignment | ( | Type | type, |
const llvm::DataLayout & | layout | ||
) |
Returns the preferred alignment for the type given the data layout.
Note that this will perform type conversion and store its results for future uses.
Definition at line 196 of file TypeToLLVM.cpp.
Referenced by getMemRefAlignment().
llvm::Type * LLVM::TypeToLLVMIRTranslator::translateType | ( | Type | type | ) |
Translates the given MLIR LLVM dialect type to LLVM IR.
Definition at line 192 of file TypeToLLVM.cpp.
Referenced by mlir::LLVM::ModuleTranslation::convertType().