24 #ifndef LLVM_ANALYSIS_IDF_H 25 #define LLVM_ANALYSIS_IDF_H 45 template <
class NodeTy,
bool IsPostDom>
49 : DT(DT), useLiveIn(
false) {}
67 LiveInBlocks = &Blocks;
74 LiveInBlocks =
nullptr;
Compute iterated dominance frontiers using a linear time algorithm.
IDFCalculator(DominatorTreeBase< BasicBlock, IsPostDom > &DT)
A templated base class for SmallPtrSet which provides the typesafe interface that is common across al...
void setDefiningBlocks(const SmallPtrSetImpl< BasicBlock *> &Blocks)
Give the IDF calculator the set of blocks in which the value is defined.
Core dominator tree base class.
void resetLiveInBlocks()
Reset the live-in block set to be empty, and tell the IDF calculator to not use liveness anymore...
void setLiveInBlocks(const SmallPtrSetImpl< BasicBlock *> &Blocks)
Give the IDF calculator the set of blocks in which the value is live on entry to the block...
void calculate(SmallVectorImpl< BasicBlock *> &IDFBlocks)
Calculate iterated dominance frontiers.
IDFCalculator< BasicBlock *, false > ForwardIDFCalculator
IDFCalculator< Inverse< BasicBlock * >, true > ReverseIDFCalculator
Determine the iterated dominance frontier, given a set of defining blocks, and optionally, a set of live-in blocks.