12 #include "llvm/Config/llvm-config.h" 34 "Dominance Frontier Construction",
true,
true)
39 DominanceFrontierWrapperPass::DominanceFrontierWrapperPass()
50 DF.
analyze(getAnalysis<DominatorTreeWrapperPass>().getDomTree());
63 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) 93 OS <<
"DominanceFrontier for function: " << F.
getName() <<
"\n";
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
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.
INITIALIZE_PASS_BEGIN(DominanceFrontierWrapperPass, "domfrontier", "Dominance Frontier Construction", true, true) INITIALIZE_PASS_END(DominanceFrontierWrapperPass
A Module instance is used to store all the information related to an LLVM module. ...
Analysis pass which computes a DominatorTree.
PreservedAnalysisChecker getChecker() const
Build a checker for this PreservedAnalyses and the specified analysis type.
AnalysisUsage & addRequired()
#define INITIALIZE_PASS_DEPENDENCY(depName)
void print(raw_ostream &OS) const
print - Convert to human readable form
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Analysis pass which computes a DominanceFrontier.
Dominance Frontier Construction
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
A set of analyses that are preserved following a run of a transformation pass.
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
static void print(raw_ostream &Out, object::Archive::Kind Kind, T Val)
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
DominanceFrontierPrinterPass(raw_ostream &OS)
INITIALIZE_PASS_END(RegBankSelect, DEBUG_TYPE, "Assign register bank of generic virtual registers", false, false) RegBankSelect
void analyze(DomTreeT &DT)
void initializeDominanceFrontierWrapperPassPass(PassRegistry &)
DominanceFrontier run(Function &F, FunctionAnalysisManager &AM)
Run the analysis pass over a function and produce a dominator tree.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
void print(raw_ostream &OS, const Module *=nullptr) const override
print - Print out the internal state of the pass.
bool runOnFunction(Function &) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass...
bool invalidate(Function &F, const PreservedAnalyses &PA, FunctionAnalysisManager::Invalidator &)
Handle invalidation explicitly.
void setPreservesAll()
Set by analyses that do not transform their input at all.
Represents analyses that only rely on functions' control flow.
void releaseMemory() override
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...
StringRef getName() const
Return a constant reference to the value's name.
API to communicate dependencies between analyses during invalidation.
This templated class represents "all analyses that operate over <a particular IR unit>" (e...
This class implements an extremely fast bulk output stream that can only output to a stream...
A container for analyses that lazily runs them and caches their results.
Legacy analysis pass which computes a DominatorTree.
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...