Static Value-Flow Analysis
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
SVF::SVFIntegerType Class Reference

#include <SVFType.h>

Inheritance diagram for SVF::SVFIntegerType:
SVF::SVFType

Public Member Functions

 SVFIntegerType (u32_t i, u32_t byteSize=1)
 
void print (std::ostream &os) const override
 
void setSignAndWidth (short sw)
 
bool isSigned () const
 
- 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)
 
StInfogetTypeInfo ()
 
const StInfogetTypeInfo () 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 SVFTypegetSVFPtrType ()
 
static SVFTypegetSVFInt8Type ()
 

Protected Member Functions

short getSignAndWidth () const
 
- Protected Member Functions inherited from SVF::SVFType
 SVFType (bool svt, SVFTyKind k, u32_t i=0, u32_t Sz=1)
 

Private Attributes

short signAndWidth
 For printing.
 

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
 
- 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 336 of file SVFType.h.

Constructor & Destructor Documentation

◆ SVFIntegerType()

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

Definition at line 351 of file SVFType.h.

351: SVFType(true, SVFIntegerTy, i, byteSize) {}
u32_t byteSize
LLVM Byte Size.
Definition SVFType.h:239
SVFType(void)=delete
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:74

Member Function Documentation

◆ classof()

static bool SVF::SVFIntegerType::classof ( const SVFType node)
inlinestatic

Definition at line 352 of file SVFType.h.

353 {
354 return node->getKind() == SVFIntegerTy;
355 }

◆ getSignAndWidth()

short SVF::SVFIntegerType::getSignAndWidth ( ) const
inlineprotected

Definition at line 345 of file SVFType.h.

346 {
347 return signAndWidth;
348 }
short signAndWidth
For printing.
Definition SVFType.h:341

◆ isSigned()

bool SVF::SVFIntegerType::isSigned ( ) const
inline

Definition at line 364 of file SVFType.h.

365 {
366 return signAndWidth < 0;
367 }

◆ print()

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

Implements SVF::SVFType.

Definition at line 29 of file SVFType.cpp.

30{
31 if (signAndWidth < 0)
32 os << 'i' << -signAndWidth;
33 else
34 os << 'u' << signAndWidth;
35}

◆ setSignAndWidth()

void SVF::SVFIntegerType::setSignAndWidth ( short  sw)
inline

Definition at line 359 of file SVFType.h.

360 {
362 }

Friends And Related Symbol Documentation

◆ GraphDBClient

friend class GraphDBClient
friend

Definition at line 338 of file SVFType.h.

Member Data Documentation

◆ signAndWidth

short SVF::SVFIntegerType::signAndWidth
private

For printing.

Definition at line 341 of file SVFType.h.


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