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:773

Inherits from: FunctionPass

Member Variables

private DenseMap<llvm::Loop*, std::unique_ptr<LoopAccessInfo>> LoopAccessInfoMap
The cache.
private llvm::ScalarEvolution* SE = nullptr
private const llvm::TargetLibraryInfo* TLI = nullptr
private llvm::AAResults* AA = nullptr
private llvm::DominatorTree* DT = nullptr
private llvm::LoopInfo* LI = nullptr
public static char ID

Method Overview

Inherited from FunctionPass:

Inherited from Pass:

Methods

LoopAccessLegacyAnalysis()

Declared at: llvm/include/llvm/Analysis/LoopAccessAnalysis.h:777

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:781

Parameters

llvm::AnalysisUsage& AU

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:786

Parameters

llvm::Loop* L

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:794

Parameters

llvm::raw_ostream& OS
const llvm::Module* M = nullptr

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:788

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:779

Parameters

llvm::Function& F