class IntervalPartition
Declaration
class IntervalPartition : public FunctionPass { /* full declaration omitted */ };
Description
FunctionPass class - This class is used to implement most global optimizations. Optimizations should subclass this class if they meet the following constraints: 1. Optimizations are organized globally, i.e., a function at a time 2. Optimizing a function does not cause the addition or removal of any functions in the module
Declared at: llvm/include/llvm/Analysis/IntervalPartition.h:42
Inherits from: FunctionPass
Member Variables
- public static char ID
Method Overview
- public IntervalPartition()
- public IntervalPartition(llvm::IntervalPartition & I, bool)
- public void getAnalysisUsage(llvm::AnalysisUsage & AU) const
- public inline llvm::Interval * getBlockInterval(llvm::BasicBlock * BB)
- public const std::vector<Interval *> & getIntervals() const
- public inline llvm::Interval * getRootInterval()
- public bool isDegeneratePartition()
- public void print(llvm::raw_ostream & O, const llvm::Module * = nullptr) const
- public void releaseMemory()
- public bool runOnFunction(llvm::Function & F)
Inherited from FunctionPass:
- public assignPassManager
- public createPrinterPass
- public getPotentialPassManagerType
- public runOnFunction
- protected skipFunction
Inherited from Pass:
- public assignPassManager
- public createPass
- public createPrinterPass
- public doFinalization
- public doInitialization
- public dump
- public dumpPassStructure
- public getAdjustedAnalysisPointer
- public getAnalysis
- public getAnalysis
- public getAnalysisID
- public getAnalysisID
- public getAnalysisIfAvailable
- public getAnalysisUsage
- public getAsImmutablePass
- public getAsPMDataManager
- public getPassID
- public getPassKind
- public getPassName
- public getPotentialPassManagerType
- public getResolver
- public lookupPassInfo
- public lookupPassInfo
- public mustPreserveAnalysisID
- public preparePassManager
- public print
- public releaseMemory
- public setResolver
- public verifyAnalysis
Methods
¶IntervalPartition()
IntervalPartition()
Declared at: llvm/include/llvm/Analysis/IntervalPartition.h:53
¶IntervalPartition(llvm::IntervalPartition& I,
bool)
IntervalPartition(llvm::IntervalPartition& I,
bool)
Declared at: llvm/include/llvm/Analysis/IntervalPartition.h:61
Parameters
- llvm::IntervalPartition& I
- bool
¶void getAnalysisUsage(
llvm::AnalysisUsage& AU) const
void getAnalysisUsage(
llvm::AnalysisUsage& AU) const
Description
getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis <AnalysisType >() function, below.
Declared at: llvm/include/llvm/Analysis/IntervalPartition.h:83
Parameters
¶inline llvm::Interval* getBlockInterval(
llvm::BasicBlock* BB)
inline llvm::Interval* getBlockInterval(
llvm::BasicBlock* BB)
Declared at: llvm/include/llvm/Analysis/IntervalPartition.h:77
Parameters
- llvm::BasicBlock* BB
¶const std::vector<Interval*>& getIntervals() const
const std::vector<Interval*>& getIntervals() const
Declared at: llvm/include/llvm/Analysis/IntervalPartition.h:88
¶inline llvm::Interval* getRootInterval()
inline llvm::Interval* getRootInterval()
Declared at: llvm/include/llvm/Analysis/IntervalPartition.h:68
¶bool isDegeneratePartition()
bool isDegeneratePartition()
Declared at: llvm/include/llvm/Analysis/IntervalPartition.h:72
¶void print(llvm::raw_ostream& O,
const llvm::Module* = nullptr) const
void print(llvm::raw_ostream& O,
const llvm::Module* = nullptr) const
Description
print - Print out the internal state of the pass. This is called by Analyze to print out the contents of an analysis. Otherwise it is not necessary to implement this method. Beware that the module pointer MAY be null. This automatically forwards to a virtual function that does not provide the Module* in case the analysis doesn't need it it can just be ignored.
Declared at: llvm/include/llvm/Analysis/IntervalPartition.h:64
Parameters
- llvm::raw_ostream& O
- const llvm::Module* = nullptr
¶void releaseMemory()
void releaseMemory()
Description
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. The default behavior of passes is to hold onto memory for the entire duration of their lifetime (which is the entire compile time). For pipelined passes, this is not a big deal because that memory gets recycled every time the pass is invoked on another program unit. For IP passes, it is more important to free memory when it is unused. Optionally implement this function to release pass memory when it is no longer used.
Declared at: llvm/include/llvm/Analysis/IntervalPartition.h:91
¶bool runOnFunction(llvm::Function& F)
bool runOnFunction(llvm::Function& F)
Description
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.
Declared at: llvm/include/llvm/Analysis/IntervalPartition.h:56