retdec
|
A converter from LLVM type to type in BIR. More...
#include <llvm_type_converter.h>
Public Member Functions | |
LLVMTypeConverter () | |
Constructs a new converter. More... | |
bool | isBool (const llvm::IntegerType *type) const |
Determines whether LLVM integral type type is boolean. More... | |
ShPtr< Type > | convert (const llvm::Type *type) |
Converts the given LLVM type type into a type in BIR. More... | |
ShPtr< PointerType > | convert (const llvm::PointerType *type) |
Converts the given LLVM pointer type type into a pointer type in BIR. More... | |
ShPtr< ArrayType > | convert (const llvm::ArrayType *type) |
Converts the given LLVM array type type into a array type in BIR. More... | |
ShPtr< StructType > | convert (const llvm::StructType *type) |
Converts the given LLVM struct type type into a struct type in BIR. More... | |
ShPtr< FunctionType > | convert (const llvm::FunctionType *type) |
Converts the given LLVM function type type into a function type in BIR. More... | |
Private Attributes | |
std::unordered_map< const llvm::Type *, ShPtr< Type > > | mapLLVMTypeToType |
Mapping of an LLVM type into an already converted type in BIR. More... | |
Additional Inherited Members | |
![]() | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable ()=default | |
~NonCopyable ()=default | |
A converter from LLVM type to type in BIR.
retdec::llvmir2hll::LLVMTypeConverter::LLVMTypeConverter | ( | ) |
Constructs a new converter.
Converts the given LLVM array type type into a array type in BIR.
ShPtr< FunctionType > retdec::llvmir2hll::LLVMTypeConverter::convert | ( | const llvm::FunctionType * | type | ) |
Converts the given LLVM function type type into a function type in BIR.
ShPtr< PointerType > retdec::llvmir2hll::LLVMTypeConverter::convert | ( | const llvm::PointerType * | type | ) |
Converts the given LLVM pointer type type into a pointer type in BIR.
ShPtr< StructType > retdec::llvmir2hll::LLVMTypeConverter::convert | ( | const llvm::StructType * | type | ) |
Converts the given LLVM struct type type into a struct type in BIR.
Converts the given LLVM type type into a type in BIR.
bool retdec::llvmir2hll::LLVMTypeConverter::isBool | ( | const llvm::IntegerType * | type | ) | const |
Determines whether LLVM integral type type is boolean.
|
private |
Mapping of an LLVM type into an already converted type in BIR.