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

Phi Node, for code in SSA form. More...

#include "clang/Analysis/Analyses/ThreadSafetyTIL.h"

Inheritance diagram for clang::threadSafety::til::Phi:
Inheritance graph
[legend]
Collaboration diagram for clang::threadSafety::til::Phi:
Collaboration graph
[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
 Returns the instruction ID for this expression. More...
 
BasicBlockblock () const
 Returns the block, if this is an instruction in a basic block, otherwise returns null. More...
 
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 1297 of file ThreadSafetyTIL.h.

Member Typedef Documentation

◆ ValArray

Definition at line 1299 of file ThreadSafetyTIL.h.

Member Enumeration Documentation

◆ Status

Enumerator
PH_MultiVal 
PH_SingleVal 
PH_Incomplete 

Definition at line 1304 of file ThreadSafetyTIL.h.

Constructor & Destructor Documentation

◆ Phi() [1/3]

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

Definition at line 1312 of file ThreadSafetyTIL.h.

◆ Phi() [2/3]

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

Definition at line 1314 of file ThreadSafetyTIL.h.

◆ Phi() [3/3]

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

Definition at line 1316 of file ThreadSafetyTIL.h.

Member Function Documentation

◆ clangDecl()

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 1326 of file ThreadSafetyTIL.h.

◆ classof()

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

Definition at line 1310 of file ThreadSafetyTIL.h.

◆ compare()

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

Definition at line 1343 of file ThreadSafetyTIL.h.

◆ setClangDecl()

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

Set the clang variable associated with this Phi node.

Definition at line 1329 of file ThreadSafetyTIL.h.

◆ setStatus()

void clang::threadSafety::til::Phi::setStatus ( Status  s)
inline

Definition at line 1323 of file ThreadSafetyTIL.h.

Referenced by clang::threadSafety::til::simplifyIncompleteArg().

◆ status()

Status clang::threadSafety::til::Phi::status ( ) const
inline

Definition at line 1322 of file ThreadSafetyTIL.h.

Referenced by clang::threadSafety::til::simplifyIncompleteArg().

◆ traverse()

template<class V >
V::R_SExpr clang::threadSafety::til::Phi::traverse ( V &  Vs,
typename V::R_Ctx  Ctx 
)
inline

Definition at line 1332 of file ThreadSafetyTIL.h.

◆ values() [1/2]

const ValArray& clang::threadSafety::til::Phi::values ( ) const
inline

Definition at line 1319 of file ThreadSafetyTIL.h.

Referenced by clang::threadSafety::til::simplifyIncompleteArg().

◆ values() [2/2]

ValArray& clang::threadSafety::til::Phi::values ( )
inline

Definition at line 1320 of file ThreadSafetyTIL.h.


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