clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions
clang::threadSafety::til::Phi Class Reference

#include <ThreadSafetyTIL.h>

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

List of all members.

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.
void setClangDecl (const clang::ValueDecl *Cvd)
 Set the clang variable associated with this Phi node.
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

Static Public Member Functions

static bool classof (const SExpr *E)

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


Member Typedef Documentation

Definition at line 1301 of file ThreadSafetyTIL.h.


Member Enumeration Documentation

Enumerator:
PH_MultiVal 
PH_SingleVal 
PH_Incomplete 

Definition at line 1306 of file ThreadSafetyTIL.h.


Constructor & Destructor Documentation

Definition at line 1314 of file ThreadSafetyTIL.h.

Definition at line 1316 of file ThreadSafetyTIL.h.

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

Definition at line 1318 of file ThreadSafetyTIL.h.


Member Function Documentation

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

Definition at line 1328 of file ThreadSafetyTIL.h.

static bool clang::threadSafety::til::Phi::classof ( const SExpr E) [inline, static]

Definition at line 1312 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 1345 of file ThreadSafetyTIL.h.

Set the clang variable associated with this Phi node.

Definition at line 1331 of file ThreadSafetyTIL.h.

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

Definition at line 1334 of file ThreadSafetyTIL.h.

Definition at line 1322 of file ThreadSafetyTIL.h.


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