15 #ifndef LLVM_ANALYSIS_CFG_H
16 #define LLVM_ANALYSIS_CFG_H
37 SmallVectorImpl<std::pair<const BasicBlock *, const BasicBlock *> > &
50 bool AllowIdenticalEdges =
false);
68 const DominatorTree *DT = 0,
69 const LoopInfo *
LI = 0);
78 const DominatorTree *DT = 0,
79 const LoopInfo *
LI = 0);
unsigned GetSuccessorNumber(BasicBlock *BB, BasicBlock *Succ)
LoopInfoBase< BlockT, LoopT > * LI
void FindFunctionBackedges(const Function &F, SmallVectorImpl< std::pair< const BasicBlock *, const BasicBlock * > > &Result)
bool isPotentiallyReachable(const Instruction *From, const Instruction *To, const DominatorTree *DT=0, const LoopInfo *LI=0)
Determine whether instruction 'To' is reachable from 'From', returning true if uncertain.
bool isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum, bool AllowIdenticalEdges=false)