16 #ifndef LLVM_ANALYSIS_REGIONPASS_H 17 #define LLVM_ANALYSIS_REGIONPASS_H 59 const std::string &Banner)
const override;
90 std::deque<Region*> RQ;
119 assert(N < PassVector.size() &&
"Pass number out of range!");
Pass interface - Implemented by all 'passes'.
PassManagerType getPassManagerType() const override
PassManagerType
Different types of internal pass managers.
This class represents lattice values for constants.
virtual void dumpPassStructure(unsigned Offset=0)
Pass * createPrinterPass(raw_ostream &O, const std::string &Banner) const override
Get a pass to print the LLVM IR in the region.
bool skipRegion(Region &R) const
Optional passes call this function to check whether the pass should be skipped.
The pass manager to schedule RegionPasses.
virtual bool doInitialization(Region *R, RGPassManager &RGM)
virtual bool doFinalization(Module &)
doFinalization - Virtual method overriden by subclasses to do any necessary clean up after all passes...
PMStack - This class implements a stack data structure of PMDataManager pointers. ...
PMDataManager * getAsPMDataManager() override
virtual void getAnalysisUsage(AnalysisUsage &) const
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
virtual bool doFinalization()
Analysis containing CSE Info
virtual bool doInitialization(Module &)
doInitialization - Virtual method overridden by subclasses to do any necessary initialization before ...
static bool runOnFunction(Function &F, bool PostInlining)
void assignPassManager(PMStack &PMS, PassManagerType PMT=PMT_RegionPassManager) override
Assign pass manager to manage this pass.
void preparePassManager(PMStack &PMS) override
Check if available pass managers are suitable for this pass or not.
A pass that runs on each Region in a function.
Pass * getAsPass() override
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
Pass * getContainedPass(unsigned N)
Get passes contained by this manager.
PassManagerType getPotentialPassManagerType() const override
Return what kind of Pass Manager can manage this pass.
virtual bool runOnRegion(Region *R, RGPassManager &RGM)=0
Run the pass on a specific Region.
PMDataManager provides the common place to manage the analysis data used by pass managers.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.