#include <type.h>
Represents data type.
Type's LLVM IR representation is its unique ID.
◆ Type() [1/2]
retdec::common::Type::Type |
( |
| ) |
|
◆ Type() [2/2]
retdec::common::Type::Type |
( |
const std::string & |
llvmIrRepre | ) |
|
◆ getId()
std::string retdec::common::Type::getId |
( |
| ) |
const |
- Returns
- Type's ID is its LLVM IR representation.
◆ getLlvmIr()
std::string retdec::common::Type::getLlvmIr |
( |
| ) |
const |
- Returns
- LLVM IR string representation (unique ID).
◆ isDefined()
bool retdec::common::Type::isDefined |
( |
| ) |
const |
- Returns
- Type is defined if
llvmIr
member is not empty.
◆ isWideString()
bool retdec::common::Type::isWideString |
( |
| ) |
const |
Wide strings are in LLVM IR represented as int arrays. This flag can be use to distinguish them from ordinary int arrays.
◆ operator<()
bool retdec::common::Type::operator< |
( |
const Type & |
val | ) |
const |
Less-than comparison of this instance with the provided one. Default string comparison of llvmIr
members is used.
- Parameters
-
val | Other type to compare with. |
- Returns
- True if
this
instance is considered to be less-than val
.
◆ operator==()
bool retdec::common::Type::operator== |
( |
const Type & |
val | ) |
const |
Types are equal if their llvm ir representations are equal.
◆ setIsWideString()
void retdec::common::Type::setIsWideString |
( |
bool |
b | ) |
|
◆ setLlvmIr()
void retdec::common::Type::setLlvmIr |
( |
const std::string & |
t | ) |
|
◆ _llvmIr
std::string retdec::common::Type::_llvmIr = "i32" |
|
private |
LLVM IR string representation. Unique ID.
◆ _wideString
bool retdec::common::Type::_wideString = false |
|
private |
Wide strings are in LLVM IR represented as int arrays. This flag can be use to distinguish them from ordinary int arrays.
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/common/type.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/common/type.cpp