14#ifndef LLVM_ANALYSIS_LOOPPASS_H
15#define LLVM_ANALYSIS_LOOPPASS_H
36 const std::string &Banner)
const override;
60 void preparePassManager(
PMStack &PMS)
override;
74 bool skipLoop(
const Loop *L)
const;
96 void dumpPassStructure(
unsigned Offset)
override;
99 assert(
N < PassVector.size() &&
"Pass number out of range!");
110 void addLoop(
Loop &L);
113 void markLoopAsDeleted(
Loop &L);
116 std::deque<Loop *> LQ;
119 bool CurrentLoopDeleted;
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
Analysis containing CSE Info
static bool runOnFunction(Function &F, bool PostInlining)
Represent the analysis usage information of a pass.
void setPreservesAll()
Set by analyses that do not transform their input at all.
FunctionPass class - This class is used to implement most global optimizations.
Pass * getAsPass() override
PassManagerType getPassManagerType() const override
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
PMDataManager * getAsPMDataManager() override
LoopPass * getContainedPass(unsigned N)
PassManagerType getPotentialPassManagerType() const override
Return what kind of Pass Manager can manage this pass.
virtual bool doInitialization(Loop *L, LPPassManager &LPM)
virtual bool runOnLoop(Loop *L, LPPassManager &LPM)=0
virtual bool doFinalization()
Represents a single loop in the control flow graph.
PMDataManager provides the common place to manage the analysis data used by pass managers.
PMStack - This class implements a stack data structure of PMDataManager pointers.
Pass interface - Implemented by all 'passes'.
virtual bool doInitialization(Module &)
doInitialization - Virtual method overridden by subclasses to do any necessary initialization before ...
virtual bool doFinalization(Module &)
doFinalization - Virtual method overriden by subclasses to do any necessary clean up after all passes...
StringRef - Represent a constant reference to a string, i.e.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
PassManagerType
Different types of internal pass managers.
@ PMT_LoopPassManager
LPPassManager.
bool runOnFunction(Function &F) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
LLVM_ABI LCSSAVerificationPass()