MLIR  20.0.0git
Public Member Functions | List of all members
mlir::LLVM::TypeFromLLVMIRTranslator Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TypeFromLLVMIRTranslator()

LLVM::TypeFromLLVMIRTranslator::TypeFromLLVMIRTranslator ( MLIRContext context)

Definition at line 166 of file TypeFromLLVM.cpp.

◆ ~TypeFromLLVMIRTranslator()

LLVM::TypeFromLLVMIRTranslator::~TypeFromLLVMIRTranslator ( )
default

Member Function Documentation

◆ translateType()

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().


The documentation for this class was generated from the following files: