LLVM API Documentation
Classes | |
class | PHI_iterator |
Public Types | |
typedef BasicBlock | BlkT |
typedef Value * | ValT |
typedef PHINode | PhiT |
typedef succ_iterator | BlkSucc_iterator |
Static Public Member Functions | |
static BlkSucc_iterator | BlkSucc_begin (BlkT *BB) |
static BlkSucc_iterator | BlkSucc_end (BlkT *BB) |
static PHI_iterator | PHI_begin (PhiT *PHI) |
static PHI_iterator | PHI_end (PhiT *PHI) |
static void | FindPredecessorBlocks (BasicBlock *BB, SmallVectorImpl< BasicBlock * > *Preds) |
static Value * | GetUndefVal (BasicBlock *BB, SSAUpdater *Updater) |
static Value * | CreateEmptyPHI (BasicBlock *BB, unsigned NumPreds, SSAUpdater *Updater) |
static void | AddPHIOperand (PHINode *PHI, Value *Val, BasicBlock *Pred) |
static PHINode * | InstrIsPHI (Instruction *I) |
static PHINode * | ValueIsPHI (Value *Val, SSAUpdater *Updater) |
static PHINode * | ValueIsNewPHI (Value *Val, SSAUpdater *Updater) |
static Value * | GetPHIValue (PHINode *PHI) |
Definition at line 208 of file SSAUpdater.cpp.
Definition at line 214 of file SSAUpdater.cpp.
typedef BasicBlock llvm::SSAUpdaterTraits< SSAUpdater >::BlkT |
Definition at line 210 of file SSAUpdater.cpp.
typedef PHINode llvm::SSAUpdaterTraits< SSAUpdater >::PhiT |
Definition at line 212 of file SSAUpdater.cpp.
typedef Value* llvm::SSAUpdaterTraits< SSAUpdater >::ValT |
Definition at line 211 of file SSAUpdater.cpp.
|
inlinestatic |
AddPHIOperand - Add the specified value as an operand of the PHI for the specified predecessor block.
Definition at line 274 of file SSAUpdater.cpp.
References llvm::PHINode::addIncoming().
|
inlinestatic |
Definition at line 215 of file SSAUpdater.cpp.
References llvm::succ_begin().
|
inlinestatic |
Definition at line 216 of file SSAUpdater.cpp.
References llvm::succ_end().
|
inlinestatic |
CreateEmptyPHI - Create a new PHI instruction in the specified block. Reserve space for the operands but do not fill them in yet.
Definition at line 265 of file SSAUpdater.cpp.
References llvm::PHINode::Create(), llvm::BasicBlock::front(), and llvm::TargetOpcode::PHI.
|
inlinestatic |
FindPredecessorBlocks - Put the predecessors of Info->BB into the Preds vector, set Info->NumPreds, and allocate space in Info->Preds.
Definition at line 243 of file SSAUpdater.cpp.
References llvm::BasicBlock::begin(), llvm::pred_begin(), llvm::pred_end(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
|
inlinestatic |
GetPHIValue - For the specified PHI instruction, return the value that it defines.
Definition at line 301 of file SSAUpdater.cpp.
References llvm::TargetOpcode::PHI.
|
inlinestatic |
GetUndefVal - Get an undefined value of the same type as the value being handled.
Definition at line 259 of file SSAUpdater.cpp.
References llvm::UndefValue::get().
|
inlinestatic |
InstrIsPHI - Check if an instruction is a PHI.
Definition at line 280 of file SSAUpdater.cpp.
References llvm::dyn_cast(), and I.
|
inlinestatic |
Definition at line 236 of file SSAUpdater.cpp.
|
inlinestatic |
Definition at line 237 of file SSAUpdater.cpp.
|
inlinestatic |
ValueIsNewPHI - Like ValueIsPHI but also check if the PHI has no source operands, i.e., it was just added.
Definition at line 292 of file SSAUpdater.cpp.
References llvm::PHINode::getNumIncomingValues(), and llvm::TargetOpcode::PHI.
|
inlinestatic |
ValueIsPHI - Check if a value is a PHI.
Definition at line 286 of file SSAUpdater.cpp.
References llvm::dyn_cast().