Go to the documentation of this file.
14 #ifndef LLVM_ANALYSIS_LOOPPASS_H
15 #define LLVM_ANALYSIS_LOOPPASS_H
35 const std::string &Banner)
const override;
115 std::deque<Loop *> LQ;
118 bool CurrentLoopDeleted;
This is an optimization pass for GlobalISel generic memory operations.
Pass * createPrinterPass(raw_ostream &O, const std::string &Banner) const override
getPrinterPass - Get a pass to print the function corresponding to a Loop.
Represents a single loop in the control flow graph.
virtual bool doInitialization(Loop *L, LPPassManager &LPM)
PassManagerType
Different types of internal pass managers.
LoopPass * getContainedPass(unsigned N)
PMDataManager provides the common place to manage the analysis data used by pass managers.
PMDataManager * getAsPMDataManager() override
void dumpPassStructure(unsigned Offset) override
Print passes managed by this manager.
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
virtual bool runOnLoop(Loop *L, LPPassManager &LPM)=0
bool skipLoop(const Loop *L) const
Optional passes call this function to check whether the pass should be skipped.
Represent the analysis usage information of a pass.
PassManagerType getPotentialPassManagerType() const override
Return what kind of Pass Manager can manage this pass.
This class implements an extremely fast bulk output stream that can only output to a stream.
bool runOnFunction(Function &F) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.
Analysis containing CSE Info
void getAnalysisUsage(AnalysisUsage &Info) const override
Pass Manager itself does not invalidate any analysis info.
void preparePassManager(PMStack &PMS) override
Check if available pass managers are suitable for this pass or not.
Pass * getAsPass() override
void assignPassManager(PMStack &PMS, PassManagerType PMT) override
Assign pass manager to manage this pass.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
virtual bool doFinalization(Module &)
doFinalization - Virtual method overriden by subclasses to do any necessary clean up after all passes...
PassManagerType getPassManagerType() const override
virtual bool doInitialization(Module &)
doInitialization - Virtual method overridden by subclasses to do any necessary initialization before ...
StringRef - Represent a constant reference to a string, i.e.
@ PMT_LoopPassManager
LPPassManager.
PMStack - This class implements a stack data structure of PMDataManager pointers.
virtual bool doFinalization()
void setPreservesAll()
Set by analyses that do not transform their input at all.
void markLoopAsDeleted(Loop &L)
SmallVector< Pass *, 16 > PassVector
bool runOnFunction(Function &F) override
run - Execute all of the passes scheduled for execution.
Pass interface - Implemented by all 'passes'.
FunctionPass class - This class is used to implement most global optimizations.