LLVM 17.0.0git
|
#include "llvm/IR/SSAContext.h"
Public Types | |
using | BlockT = BasicBlock |
using | FunctionT = Function |
using | InstructionT = Instruction |
using | ValueRefT = Value * |
using | ConstValueRefT = const Value * |
using | UseT = Use |
using | DominatorTreeT = DominatorTreeBase< BlockT, false > |
Public Member Functions | |
void | setFunction (Function &Fn) |
Function * | getFunction () const |
const BasicBlock * | getDefBlock (const Value *value) const |
Printable | print (const BasicBlock *Block) const |
Printable | print (const Instruction *Inst) const |
Printable | print (const Value *Value) const |
Static Public Member Functions | |
static BasicBlock * | getEntryBlock (Function &F) |
static const BasicBlock * | getEntryBlock (const Function &F) |
static void | appendBlockDefs (SmallVectorImpl< Value * > &defs, BasicBlock &block) |
static void | appendBlockDefs (SmallVectorImpl< const Value * > &defs, const BasicBlock &block) |
static void | appendBlockTerms (SmallVectorImpl< Instruction * > &terms, BasicBlock &block) |
static void | appendBlockTerms (SmallVectorImpl< const Instruction * > &terms, const BasicBlock &block) |
static bool | comesBefore (const Instruction *lhs, const Instruction *rhs) |
static bool | isConstantOrUndefValuePhi (const Instruction &Instr) |
Static Public Attributes | |
static Value * | ValueRefNull = nullptr |
Definition at line 37 of file SSAContext.h.
using llvm::GenericSSAContext< Function >::BlockT = BasicBlock |
Definition at line 41 of file SSAContext.h.
using llvm::GenericSSAContext< Function >::ConstValueRefT = const Value * |
Definition at line 45 of file SSAContext.h.
using llvm::GenericSSAContext< Function >::DominatorTreeT = DominatorTreeBase<BlockT, false> |
Definition at line 48 of file SSAContext.h.
using llvm::GenericSSAContext< Function >::FunctionT = Function |
Definition at line 42 of file SSAContext.h.
using llvm::GenericSSAContext< Function >::InstructionT = Instruction |
Definition at line 43 of file SSAContext.h.
using llvm::GenericSSAContext< Function >::UseT = Use |
Definition at line 47 of file SSAContext.h.
using llvm::GenericSSAContext< Function >::ValueRefT = Value * |
Definition at line 44 of file SSAContext.h.
|
static |
Definition at line 49 of file SSAContext.cpp.
References block, instr, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
|
static |
Definition at line 37 of file SSAContext.cpp.
References block, instr, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
|
static |
Definition at line 63 of file SSAContext.cpp.
References block, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
|
static |
Definition at line 58 of file SSAContext.cpp.
References block, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
|
static |
Definition at line 74 of file SSAContext.cpp.
References llvm::Instruction::comesBefore().
const BasicBlock * SSAContext::getDefBlock | ( | const Value * | value | ) | const |
Definition at line 68 of file SSAContext.cpp.
References value.
|
static |
Definition at line 33 of file SSAContext.cpp.
References F.
|
static |
Definition at line 29 of file SSAContext.cpp.
References F.
|
inline |
Definition at line 51 of file SSAContext.h.
References F.
|
static |
Definition at line 78 of file SSAContext.cpp.
Printable SSAContext::print | ( | const BasicBlock * | Block | ) | const |
Definition at line 92 of file SSAContext.cpp.
References llvm::Value::getName(), llvm::BasicBlock::getParent(), getParent(), and llvm::Value::hasName().
Printable SSAContext::print | ( | const Instruction * | Inst | ) | const |
Definition at line 88 of file SSAContext.cpp.
References llvm::print().
Definition at line 84 of file SSAContext.cpp.
void SSAContext::setFunction | ( | Function & | Fn | ) |
Definition at line 27 of file SSAContext.cpp.
References F.
|
static |
Definition at line 46 of file SSAContext.h.