class LoopAccessLegacyAnalysis
Declaration
class LoopAccessLegacyAnalysis : public FunctionPass { /* full declaration omitted */ };
Description
This analysis provides dependence information for the memory accesses of a loop. It runs the analysis for a loop on demand. This can be initiated by querying the loop access info via LAA::getInfo. getInfo return a LoopAccessInfo object. See this class for the specifics of what information is provided.
Declared at: llvm/include/llvm/Analysis/LoopAccessAnalysis.h:723
Inherits from: FunctionPass
Member Variables
- public static char ID
Method Overview
- public LoopAccessLegacyAnalysis()
- public void getAnalysisUsage(llvm::AnalysisUsage & AU) const
- public const llvm::LoopAccessInfo & getInfo(llvm::Loop * L)
- public void print(llvm::raw_ostream & OS, const llvm::Module * M = 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
¶LoopAccessLegacyAnalysis()
LoopAccessLegacyAnalysis()
Declared at: llvm/include/llvm/Analysis/LoopAccessAnalysis.h:727
¶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/LoopAccessAnalysis.h:731
Parameters
¶const llvm::LoopAccessInfo& getInfo(llvm::Loop* L)
const llvm::LoopAccessInfo& getInfo(llvm::Loop* L)
Description
Query the result of the loop access information for the loop \p L. If there is no cached result available run the analysis.
Declared at: llvm/include/llvm/Analysis/LoopAccessAnalysis.h:736
Parameters
- llvm::Loop* L
¶void print(llvm::raw_ostream& OS,
const llvm::Module* M = nullptr) const
void print(llvm::raw_ostream& OS,
const llvm::Module* M = nullptr) const
Description
Print the result of the analysis when invoked with -analyze.
Declared at: llvm/include/llvm/Analysis/LoopAccessAnalysis.h:744
Parameters
- llvm::raw_ostream& OS
- const llvm::Module* M = 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/LoopAccessAnalysis.h:738
¶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/LoopAccessAnalysis.h:729