15#ifndef LLVM_ANALYSIS_REGIONPASS_H
16#define LLVM_ANALYSIS_REGIONPASS_H
58 const std::string &Banner)
const override;
71 void preparePassManager(
PMStack &PMS)
override;
73 void assignPassManager(
PMStack &PMS,
84 bool skipRegion(
Region &R)
const;
89 std::deque<Region*> RQ;
112 void dumpPassStructure(
unsigned Offset)
override;
116 assert(
N < PassVector.size() &&
"Pass number out of range!");
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.
FunctionPass class - This class is used to implement most global optimizations.
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...
The pass manager to schedule RegionPasses.
PMDataManager * getAsPMDataManager() override
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
Pass * getContainedPass(unsigned N)
Get passes contained by this manager.
PassManagerType getPassManagerType() const override
Pass * getAsPass() override
A pass that runs on each Region in a function.
virtual bool doFinalization()
virtual bool doInitialization(Region *R, RGPassManager &RGM)
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.
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_RegionPassManager
RGPassManager.