Static Value-Flow Analysis
Loading...
Searching...
No Matches
SVF::SVFPointerType Class Reference

#include <SVFType.h>

Inheritance diagram for SVF::SVFPointerType:
SVF::SVFType

Public Member Functions

 SVFPointerType (u32_t i, u32_t byteSize=1)
void print (std::ostream &os) const override
Public Member Functions inherited from SVF::SVFType
 SVFType (void)=delete
virtual ~SVFType ()
GNodeK getKind () const
std::string toString () const
u32_t getId () const
void setTypeInfo (StInfo *ti)
StInfo * getTypeInfo ()
const StInfo * getTypeInfo () const
u32_t getByteSize () const
bool isPointerTy () const
bool isArrayTy () const
bool isStructTy () const
bool isSingleValueType () const

Static Public Member Functions

static bool classof (const SVFType *node)
Static Public Member Functions inherited from SVF::SVFType
static SVFType * getSVFPtrType ()
static SVFType * getSVFInt8Type ()

Friends

class GraphDBClient

Additional Inherited Members

Public Types inherited from SVF::SVFType
enum  SVFTyKind {
  SVFTy , SVFPointerTy , SVFIntegerTy , SVFFunctionTy ,
  SVFStructTy , SVFArrayTy , SVFOtherTy
}
typedef s64_t GNodeK
Protected Member Functions inherited from SVF::SVFType
 SVFType (bool svt, SVFTyKind k, u32_t i=0, u32_t Sz=1)
Static Protected Member Functions inherited from SVF::SVFType
static void setSVFPtrType (SVFType *ptrTy)
 set svfptrty and svfi8ty when initializing SVFType from db query results
static void setSVFInt8Type (SVFType *i8Ty)

Detailed Description

Definition at line 315 of file SVFType.h.

Constructor & Destructor Documentation

◆ SVFPointerType()

SVF::SVFPointerType::SVFPointerType ( u32_t i,
u32_t byteSize = 1 )
inline

Definition at line 321 of file SVFType.h.

322 : SVFType(true, SVFPointerTy, i, byteSize)
323 {
324 }
u32_t byteSize
LLVM Byte Size.
Definition SVFType.h:237
SVFType(void)=delete

Member Function Documentation

◆ classof()

bool SVF::SVFPointerType::classof ( const SVFType * node)
inlinestatic

Definition at line 326 of file SVFType.h.

327 {
328 return node->getKind() == SVFPointerTy;
329 }

◆ print()

void SVF::SVFPointerType::print ( std::ostream & os) const
overridevirtual

Implements SVF::SVFType.

Definition at line 23 of file SVFType.cpp.

24{
25 os << "ptr";
26}

◆ GraphDBClient

friend class GraphDBClient
friend

Definition at line 318 of file SVFType.h.


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