22 #define DEBUG_TYPE "postdomtree" 24 #ifdef EXPENSIVE_CHECKS 37 "Post-Dominator Tree Construction",
true,
true)
81 OS <<
"PostDominatorTree for function: " << F.
getName() <<
"\n";
PostDominatorTree run(Function &F, FunctionAnalysisManager &)
Run the analysis pass over a function and produce a post dominator tree.
PassT::Result & getResult(IRUnitT &IR, ExtraArgTs... ExtraArgs)
Get the result of an analysis pass for a given IR unit.
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
void recalculate(ParentType &Func)
recalculate - compute a dominator tree for the given function
PostDominatorTreePrinterPass(raw_ostream &OS)
void verifyAnalysis() const override
verifyAnalysis() - This member can be implemented by a analysis pass to check state of analysis infor...
bool verify(VerificationLevel VL=VerificationLevel::Full) const
verify - checks if the tree is correct.
A set of analyses that are preserved following a run of a transformation pass.
PostDominatorTreeWrapperPass()
void print(raw_ostream &OS, const Module *) const override
print - Print out the internal state of the pass.
FunctionPass class - This class is used to implement most global optimizations.
static void print(raw_ostream &Out, object::Archive::Kind Kind, T Val)
bool VerifyDomInfo
Enables verification of dominator trees.
INITIALIZE_PASS(PostDominatorTreeWrapperPass, "postdomtree", "Post-Dominator Tree Construction", true, true) bool PostDominatorTree
bool runOnFunction(Function &F) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass...
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
void print(raw_ostream &O) const
print - Convert to human readable form
Analysis pass which computes a PostDominatorTree.
static constexpr bool ExpensiveChecksEnabled
PostDominatorTree Class - Concrete subclass of DominatorTree that is used to compute the post-dominat...
Represents analyses that only rely on functions' control flow.
StringRef getName() const
Return a constant reference to the value's name.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This templated class represents "all analyses that operate over <a particular IR unit>" (e...
FunctionPass * createPostDomTree()
This class implements an extremely fast bulk output stream that can only output to a stream...
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
A container for analyses that lazily runs them and caches their results.
This header defines various interfaces for pass management in LLVM.
A special type used by analysis passes to provide an address that identifies that particular analysis...