#include <SVFType.h>
Definition at line 181 of file SVFType.h.
◆ GNodeK
◆ SVFTyKind
| Enumerator |
|---|
| SVFTy | |
| SVFPointerTy | |
| SVFIntegerTy | |
| SVFFunctionTy | |
| SVFStructTy | |
| SVFArrayTy | |
| SVFOtherTy | |
Definition at line 189 of file SVFType.h.
◆ SVFType() [1/2]
Definition at line 242 of file SVFType.h.
245 {
246 }
GNodeK kind
used for classof
u32_t byteSize
LLVM Byte Size.
StInfo * typeinfo
SVF's TypeInfo.
bool isSingleValTy
The type represents a single value, not struct or.
◆ SVFType() [2/2]
| SVF::SVFType::SVFType |
( |
void | | ) |
|
|
delete |
◆ ~SVFType()
| virtual SVF::SVFType::~SVFType |
( |
| ) |
|
|
inlinevirtual |
◆ getByteSize()
| u32_t SVF::SVFType::getByteSize |
( |
| ) |
const |
|
inline |
if Type is not sized, byteSize is 0 if Type is sized, byteSize is the LLVM Byte Size.
Definition at line 287 of file SVFType.h.
◆ getId()
| u32_t SVF::SVFType::getId |
( |
| ) |
const |
|
inline |
◆ getKind()
| GNodeK SVF::SVFType::getKind |
( |
| ) |
const |
|
inline |
◆ getSVFInt8Type()
| SVFType * SVF::SVFType::getSVFInt8Type |
( |
| ) |
|
|
inlinestatic |
Definition at line 222 of file SVFType.h.
223 {
224 assert(
svfI8Ty &&
"int8 type not set?");
226 }
static SVFType * svfI8Ty
8-bit int type
◆ getSVFPtrType()
| SVFType * SVF::SVFType::getSVFPtrType |
( |
| ) |
|
|
inlinestatic |
Definition at line 216 of file SVFType.h.
217 {
218 assert(
svfPtrTy &&
"ptr type not set?");
220 }
static SVFType * svfPtrTy
ptr type
◆ getTypeInfo() [1/2]
| StInfo * SVF::SVFType::getTypeInfo |
( |
| ) |
|
|
inline |
Definition at line 273 of file SVFType.h.
274 {
275 assert(
typeinfo &&
"set the type info first");
277 }
◆ getTypeInfo() [2/2]
| const StInfo * SVF::SVFType::getTypeInfo |
( |
| ) |
const |
|
inline |
Definition at line 279 of file SVFType.h.
280 {
281 assert(
typeinfo &&
"set the type info first");
283 }
◆ isArrayTy()
| bool SVF::SVFType::isArrayTy |
( |
| ) |
const |
|
inline |
◆ isPointerTy()
| bool SVF::SVFType::isPointerTy |
( |
| ) |
const |
|
inline |
◆ isSingleValueType()
| bool SVF::SVFType::isSingleValueType |
( |
| ) |
const |
|
inline |
◆ isStructTy()
| bool SVF::SVFType::isStructTy |
( |
| ) |
const |
|
inline |
◆ print()
| virtual void SVF::SVFType::print |
( |
std::ostream & | os | ) |
const |
|
pure virtual |
◆ setSVFInt8Type()
| void SVF::SVFType::setSVFInt8Type |
( |
SVFType * | i8Ty | ) |
|
|
inlinestaticprotected |
◆ setSVFPtrType()
| void SVF::SVFType::setSVFPtrType |
( |
SVFType * | ptrTy | ) |
|
|
inlinestaticprotected |
set svfptrty and svfi8ty when initializing SVFType from db query results
Definition at line 203 of file SVFType.h.
◆ setTypeInfo()
| void SVF::SVFType::setTypeInfo |
( |
StInfo * | ti | ) |
|
|
inline |
◆ toString()
| std::string SVF::SVFType::toString |
( |
| ) |
const |
- Note
- Use os<<svfType or svfType.print(os) when possible to avoid string concatenation.
Definition at line 10 of file SVFType.cpp.
11{
12 std::ostringstream os;
14 return os.str();
15}
virtual void print(std::ostream &os) const =0
◆ LLVMModuleSet
| friend class LLVMModuleSet |
|
friend |
◆ byteSize
| u32_t SVF::SVFType::byteSize |
|
private |
◆ id
◆ isSingleValTy
| bool SVF::SVFType::isSingleValTy |
|
private |
The type represents a single value, not struct or.
Definition at line 236 of file SVFType.h.
◆ kind
◆ svfI8Ty
| SVFType * SVF::SVFType::svfI8Ty = nullptr |
|
staticprivate |
◆ svfPtrTy
| SVFType * SVF::SVFType::svfPtrTy = nullptr |
|
staticprivate |
◆ typeinfo
| StInfo* SVF::SVFType::typeinfo |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/SVF/SVF/svf/include/SVFValues/SVFType.h
- /home/runner/work/SVF/SVF/svf/lib/SVFValues/SVFType.cpp