ClearBlue
Public Types | Public Member Functions | Friends
SEGValue Class Reference

Public Types

enum  SEGValueKind { value, basicblock, instruction, function }
 

Public Member Functions

 SEGValue (Value *val)
 Constructor.
 
 ~SEGValue ()
 Destructor.
 
Value * getValue ()
 Get Value.
 
bool hasName () const
 Determine whether Value has its name.
 
StringRef getValueName () const
 Get the name of Value.
 
bool isEqualValue (SEGValue *sValue) const
 Determine whether Value equals to the other Value. More...
 
bool isConstantInt () const
 Determine whether Value is a Constant int.
 
bool isConstantInt (int constantInt) const
 Determine whether Value is a Constant int. More...
 
bool isUndefined () const
 Determine whether Value is undefined.
 
bool isPointerType () const
 Determine whether the type of Value is pointer.
 
bool isConstantPointerNull () const
 Determine whether the type of Value is pointer.
 
bool isInstruction () const
 Determine whether the type of Value is instruction.
 
bool isSame (SEGValue *sValue) const
 Determine whether the instruction equals to the other instruction. More...
 
bool isPhiInst () const
 Determine whether it is a PHI instruction.
 
bool isFreeInst (TargetLibraryInfo *TLI) const
 Determine whether it is a free instruction.
 
bool isLoadInst () const
 Determine whether it is a load instruction.
 
bool isDivInst () const
 Determine whether it is an instruction about division.
 
bool isConstantString ()
 
StringRef getConstantString ()
 
SEGValuegetInstOperand (size_t offset)
 Get the target operand of instruction. More...
 
bool isDerefPtr (SEGValue *sValue) const
 Determine whether the pointer in a dereference instruction points to the specific Value. More...
 
bool isCallOrInvoke () const
 Determine whether CallSite is a CallInst or a InvokeInst.
 
size_t getCallSiteArgSize () const
 Get the argument size of CallSite.
 
bool hasCalledFunction () const
 Determine whether CallSite has a callee function.
 
Function * getCalledFunction () const
 Get the callee function of CallSite.
 
size_t getFuncArgSize () const
 Get the argument size of Function.
 
bool isFuncNthArgument (SEGValue *sValue, size_t offset) const
 Determine whether the Value is one of the arguments of callee function. More...
 
StringRef getFuncName () const
 Get the fucntion name.
 
bool hasFuncName () const
 

Friends

class SEGObject
 
class SEGNodeBase
 
class SEGSiteBase
 

Member Function Documentation

◆ getInstOperand()

SEGValue* SEGValue::getInstOperand ( size_t  offset)
inline

Get the target operand of instruction.

Parameters
offsetthe offset of operand in instruction
Returns
Return SEGValue that contains the target operand.

◆ isConstantInt()

bool SEGValue::isConstantInt ( int  constantInt) const
inline

Determine whether Value is a Constant int.

Parameters
constantIntConstant Int to be compared

◆ isDerefPtr()

bool SEGValue::isDerefPtr ( SEGValue sValue) const
inline

Determine whether the pointer in a dereference instruction points to the specific Value.

Parameters
sValueSEGValue to be compared
Here is the call graph for this function:

◆ isEqualValue()

bool SEGValue::isEqualValue ( SEGValue sValue) const
inline

Determine whether Value equals to the other Value.

Parameters
sValueSEGValue to be compared
Here is the call graph for this function:

◆ isFuncNthArgument()

bool SEGValue::isFuncNthArgument ( SEGValue sValue,
size_t  offset 
) const
inline

Determine whether the Value is one of the arguments of callee function.

Parameters
sValueSEGValue to be compared
offsetthe offset of argument
Here is the call graph for this function:

◆ isSame()

bool SEGValue::isSame ( SEGValue sValue) const
inline

Determine whether the instruction equals to the other instruction.

Parameters
sValueSEGValue to be compared
Here is the call graph for this function:

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