14 #ifndef MLIR_TARGET_LLVMIR_TYPETOLLVM_H
15 #define MLIR_TARGET_LLVMIR_TYPETOLLVM_H
33 class TypeToLLVMIRTranslatorImpl;
55 std::unique_ptr<detail::TypeToLLVMIRTranslatorImpl>
impl;
Utility class to translate MLIR LLVM dialect types to LLVM IR.
unsigned getPreferredAlignment(Type type, const llvm::DataLayout &layout)
Returns the preferred alignment for the type given the data layout.
llvm::Type * translateType(Type type)
Translates the given MLIR LLVM dialect type to LLVM IR.
TypeToLLVMIRTranslator(llvm::LLVMContext &context)
~TypeToLLVMIRTranslator()
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
The OpAsmOpInterface, see OpAsmInterface.td for more details.
@ Type
An inlay hint that for a type annotation.
Include the generated interface declarations.