class LoopInfoWrapperPass

Declaration

class LoopInfoWrapperPass : public FunctionPass { /* full declaration omitted */ };

Description

The legacy pass manager's analysis pass to compute loop information.

Declared at: llvm/include/llvm/Analysis/LoopInfo.h:1290

Inherits from: FunctionPass

Member Variables

private llvm::LoopInfo LI
public static char ID

Method Overview

Inherited from FunctionPass:

Inherited from Pass:

Methods

LoopInfoWrapperPass()

Declared at: llvm/include/llvm/Analysis/LoopInfo.h:1296

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/LoopInfo.h:1310

Parameters

llvm::AnalysisUsage& AU

llvm::LoopInfo& getLoopInfo()

Declared at: llvm/include/llvm/Analysis/LoopInfo.h:1298

const llvm::LoopInfo& getLoopInfo() const

Declared at: llvm/include/llvm/Analysis/LoopInfo.h:1299

void print(llvm::raw_ostream& O,
           const llvm::Module* M = 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/LoopInfo.h:1308

Parameters

llvm::raw_ostream& O
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/LoopInfo.h:1306

bool runOnFunction(llvm::Function& F)

Description

Calculate the natural loop information for a given function.

Declared at: llvm/include/llvm/Analysis/LoopInfo.h:1302

Parameters

llvm::Function& F

void verifyAnalysis() const

Description

verifyAnalysis() - This member can be implemented by a analysis pass to check state of analysis information.

Declared at: llvm/include/llvm/Analysis/LoopInfo.h:1304