clang  3.7.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
clang::threadSafety::til::Phi Class Reference

#include <ThreadSafetyTIL.h>

Inheritance diagram for clang::threadSafety::til::Phi:
[legend]
Collaboration diagram for clang::threadSafety::til::Phi:
[legend]

Public Types

enum  Status { PH_MultiVal = 0, PH_SingleVal, PH_Incomplete }
 
typedef SimpleArray< SExpr * > ValArray
 

Public Member Functions

 Phi ()
 
 Phi (MemRegionRef A, unsigned Nvals)
 
 Phi (const Phi &P, ValArray &&Vs)
 
const ValArrayvalues () const
 
ValArrayvalues ()
 
Status status () const
 
void setStatus (Status s)
 
const clang::ValueDeclclangDecl () const
 Return the clang declaration of the variable for this Phi node, if any. More...
 
void setClangDecl (const clang::ValueDecl *Cvd)
 Set the clang variable associated with this Phi node. More...
 
template<class V >
V::R_SExpr traverse (V &Vs, typename V::R_Ctx Ctx)
 
template<class C >
C::CType compare (const Phi *E, C &Cmp) const
 
- Public Member Functions inherited from clang::threadSafety::til::SExpr
TIL_Opcode opcode () const
 
void * operator new (size_t S, MemRegionRef &R)
 
void operator delete (void *)=delete
 SExpr objects cannot be deleted. More...
 
unsigned id () const
 
BasicBlockblock () const
 
void setID (BasicBlock *B, unsigned id)
 Set the basic block and instruction ID for this expression. More...
 

Static Public Member Functions

static bool classof (const SExpr *E)
 

Additional Inherited Members

- Protected Member Functions inherited from clang::threadSafety::til::SExpr
 SExpr (TIL_Opcode Op)
 
 SExpr (const SExpr &E)
 
- Protected Attributes inherited from clang::threadSafety::til::SExpr
const unsigned char Opcode
 
unsigned char Reserved
 
unsigned short Flags
 
unsigned SExprID
 
BasicBlockBlock
 

Detailed Description

Phi Node, for code in SSA form. Each Phi node has an array of possible values that it can take, depending on where control flow comes from.

Definition at line 1298 of file ThreadSafetyTIL.h.

Member Typedef Documentation

Definition at line 1300 of file ThreadSafetyTIL.h.

Member Enumeration Documentation

Enumerator
PH_MultiVal 
PH_SingleVal 
PH_Incomplete 

Definition at line 1305 of file ThreadSafetyTIL.h.

Constructor & Destructor Documentation

clang::threadSafety::til::Phi::Phi ( )
inline

Definition at line 1313 of file ThreadSafetyTIL.h.

clang::threadSafety::til::Phi::Phi ( MemRegionRef  A,
unsigned  Nvals 
)
inline

Definition at line 1315 of file ThreadSafetyTIL.h.

clang::threadSafety::til::Phi::Phi ( const Phi P,
ValArray &&  Vs 
)
inline

Definition at line 1317 of file ThreadSafetyTIL.h.

Member Function Documentation

const clang::ValueDecl* clang::threadSafety::til::Phi::clangDecl ( ) const
inline

Return the clang declaration of the variable for this Phi node, if any.

Definition at line 1327 of file ThreadSafetyTIL.h.

static bool clang::threadSafety::til::Phi::classof ( const SExpr E)
inlinestatic

Definition at line 1311 of file ThreadSafetyTIL.h.

References clang::threadSafety::til::SExpr::opcode().

template<class C >
C::CType clang::threadSafety::til::Phi::compare ( const Phi E,
C &  Cmp 
) const
inline

Definition at line 1344 of file ThreadSafetyTIL.h.

void clang::threadSafety::til::Phi::setClangDecl ( const clang::ValueDecl Cvd)
inline

Set the clang variable associated with this Phi node.

Definition at line 1330 of file ThreadSafetyTIL.h.

void clang::threadSafety::til::Phi::setStatus ( Status  s)
inline
Status clang::threadSafety::til::Phi::status ( ) const
inline
template<class V >
V::R_SExpr clang::threadSafety::til::Phi::traverse ( V &  Vs,
typename V::R_Ctx  Ctx 
)
inline
const ValArray& clang::threadSafety::til::Phi::values ( ) const
inline
ValArray& clang::threadSafety::til::Phi::values ( )
inline

Definition at line 1321 of file ThreadSafetyTIL.h.


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