Changeset View
Changeset View
Standalone View
Standalone View
include/llvm/Transforms/Utils/SSAUpdaterImpl.h
Context not available. | |||||
typedef typename Traits::BlkT BlkT; | typedef typename Traits::BlkT BlkT; | ||||
typedef typename Traits::ValT ValT; | typedef typename Traits::ValT ValT; | ||||
typedef typename Traits::PhiT PhiT; | typedef typename Traits::PhiT PhiT; | ||||
typedef typename Traits::PhiItT PhiItT; | |||||
/// BBInfo - Per-basic block information used internally by SSAUpdaterImpl. | /// BBInfo - Per-basic block information used internally by SSAUpdaterImpl. | ||||
/// The predecessors of each block are cached here since pred_iterator is | /// The predecessors of each block are cached here since pred_iterator is | ||||
Context not available. | |||||
/// FindExistingPHI - Look through the PHI nodes in a block to see if any of | /// FindExistingPHI - Look through the PHI nodes in a block to see if any of | ||||
/// them match what is needed. | /// them match what is needed. | ||||
void FindExistingPHI(BlkT *BB, BlockListTy *BlockList) { | void FindExistingPHI(BlkT *BB, BlockListTy *BlockList) { | ||||
for (typename BlkT::iterator BBI = BB->begin(), BBE = BB->end(); | for (PhiItT BBI = Traits::PhiItT_begin(BB), BBE = Traits::PhiItT_end(BB); | ||||
BBI != BBE; ++BBI) { | BBI != BBE; ++BBI) { | ||||
PhiT *SomePHI = Traits::InstrIsPHI(&*BBI); | PhiT *SomePHI = Traits::InstrIsPHI(&*BBI); | ||||
if (!SomePHI) | if (!SomePHI) | ||||
Context not available. |