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;
IDFCalculator(DominatorTreeBase< BasicBlock, IsPostDom > &DT)
A templated base class for SmallPtrSet which provides the typesafe interface that is common across al...
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
void calculate(SmallVectorImpl< BasicBlock * > &IDFBlocks)
Calculate iterated dominance frontiers.
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...
Core dominator tree base class.
Function Alias Analysis false
void resetLiveInBlocks()
Reset the live-in block set to be empty, and tell the IDF calculator to not use liveness anymore...
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.
void setDefiningBlocks(const SmallPtrSetImpl< BasicBlock * > &Blocks)
Give the IDF calculator the set of blocks in which the value is defined.