24 #ifndef LLVM_ANALYSIS_IDF_H 25 #define LLVM_ANALYSIS_IDF_H 46 template <
class NodeTy,
bool IsPostDom>
50 : DT(DT), GD(nullptr), useLiveIn(
false) {}
54 : DT(DT), GD(GD), useLiveIn(
false) {}
72 LiveInBlocks = &Blocks;
79 LiveInBlocks =
nullptr;
This class represents lattice values for constants.
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.
IDFCalculator(DominatorTreeBase< BasicBlock, IsPostDom > &DT, const GraphDiff< BasicBlock *, IsPostDom > *GD)