clang API Documentation
#include <ThreadSafetyTIL.h>
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 ValArray & | values () const |
ValArray & | values () |
Status | status () const |
void | setStatus (Status s) |
const clang::ValueDecl * | clangDecl () 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) |
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.
Definition at line 1301 of file ThreadSafetyTIL.h.
Definition at line 1306 of file ThreadSafetyTIL.h.
clang::threadSafety::til::Phi::Phi | ( | ) | [inline] |
Definition at line 1314 of file ThreadSafetyTIL.h.
clang::threadSafety::til::Phi::Phi | ( | MemRegionRef | A, |
unsigned | Nvals | ||
) | [inline] |
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.
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 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().
C::CType clang::threadSafety::til::Phi::compare | ( | const Phi * | E, |
C & | Cmp | ||
) | const [inline] |
Definition at line 1345 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 1331 of file ThreadSafetyTIL.h.
void clang::threadSafety::til::Phi::setStatus | ( | Status | s | ) | [inline] |
Definition at line 1325 of file ThreadSafetyTIL.h.
References clang::threadSafety::til::SExpr::Flags.
Referenced by clang::threadSafety::til::simplifyIncompleteArg().
Status clang::threadSafety::til::Phi::status | ( | ) | const [inline] |
Definition at line 1324 of file ThreadSafetyTIL.h.
References clang::threadSafety::til::SExpr::Flags.
Referenced by clang::threadSafety::til::PrettyPrinter< StdPrinter, std::ostream >::printPhi(), and clang::threadSafety::til::simplifyIncompleteArg().
V::R_SExpr clang::threadSafety::til::Phi::traverse | ( | V & | Vs, |
typename V::R_Ctx | Ctx | ||
) | [inline] |
Definition at line 1334 of file ThreadSafetyTIL.h.
const ValArray& clang::threadSafety::til::Phi::values | ( | ) | const [inline] |
Definition at line 1321 of file ThreadSafetyTIL.h.
Referenced by clang::threadSafety::til::PrettyPrinter< StdPrinter, std::ostream >::printPhi(), and clang::threadSafety::til::simplifyIncompleteArg().
ValArray& clang::threadSafety::til::Phi::values | ( | ) | [inline] |
Definition at line 1322 of file ThreadSafetyTIL.h.