Thin IR‐agnostic context for SSA analyses over LLVM IR or Machine IR.
Synopsis
Declared in <llvm/ADT/GenericSSAContext.h>
template<typename _FunctionT>
class GenericSSAContext;
Description
Ideally this should have been a stateless traits class. But the print methods for Machine IR need access to the owning function. So we track that state in the template itself.
We use FunctionT as a template argument and not GenericSSATraits to allow forward declarations using well‐known typenames.
Type Aliases
Name |
Description |
Basic‐block type: a sequence of instructions and a CFG node. |
|
Const SSA value reference (const binds to the pointee, not the pointer). |
|
Dominator tree over this IR's basic blocks. |
|
Function type: a CFG with arguments and return values. |
|
Instruction type that defines one or more SSA values. |
|
Use edge from a defining instruction to a using instruction. |
|
Handle to an SSA value (pointer‐like; Machine IR has no Value object). |
Member Functions
Name |
Description |
|
Constructors |
Return the basic block that defines |
|
Return the function this context is bound to, or null. |
|
|
|
Return a printable operand form of basic block |
Static Member Functions
Name |
Description |
|
|
|
|
Return the intrinsic ID for instruction |
|
Return true if |
|
Return true if |
Static Data Members
Name |
Description |
Null value reference for this IR (default‐constructed ValueRefT). |
Created with MrDocs