clang  8.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
Collaboration diagram for clang::threadSafety::til::Phi:
Collaboration graph

Public Types

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

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 ValueDeclclangDecl () const
 Return the clang declaration of the variable for this Phi node, if any. More...
void setClangDecl (const 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
 SExpr ()=delete
TIL_Opcode opcode () const
void * operator new (size_t S, MemRegionRef &R)
void * operator new (size_t)=delete
 SExpr objects must be created in an arena. More...
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 = 0
unsigned short Flags = 0
unsigned SExprID = 0
BasicBlockBlock = nullptr

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

Member Typedef Documentation

◆ ValArray

Definition at line 1294 of file ThreadSafetyTIL.h.

Member Enumeration Documentation

◆ Status


Definition at line 1299 of file ThreadSafetyTIL.h.

Constructor & Destructor Documentation

◆ Phi() [1/3]

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

Definition at line 1305 of file ThreadSafetyTIL.h.

◆ Phi() [2/3]

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

Definition at line 1306 of file ThreadSafetyTIL.h.

◆ Phi() [3/3]

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

Definition at line 1307 of file ThreadSafetyTIL.h.

Member Function Documentation

◆ clangDecl()

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

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

Definition at line 1318 of file ThreadSafetyTIL.h.

◆ classof()

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

Definition at line 1309 of file ThreadSafetyTIL.h.

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

◆ compare()

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

Definition at line 1334 of file ThreadSafetyTIL.h.

◆ setClangDecl()

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

Set the clang variable associated with this Phi node.

Definition at line 1321 of file ThreadSafetyTIL.h.

◆ setStatus()

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

Definition at line 1315 of file ThreadSafetyTIL.h.

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

◆ status()

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

◆ traverse()

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

Definition at line 1324 of file ThreadSafetyTIL.h.

◆ values() [1/2]

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

◆ values() [2/2]

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

Definition at line 1312 of file ThreadSafetyTIL.h.

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