Anonymous View
LLVM 23.0.0git
LoopInfo.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Typedefs

using Direction = Loop::LoopBounds::Direction

Functions

static ValuefindFinalIVValue (const Loop &L, const PHINode &IndVar, const Instruction &StepInst)
 Return the final value of the loop induction variable if found.
static bool isBlockInLCSSAForm (const Loop &L, const BasicBlock &BB, const DominatorTree &DT, bool IgnoreTokens)
 INITIALIZE_PASS_BEGIN (LoopInfoWrapperPass, "loops", "Natural Loop Information", true, true) INITIALIZE_PASS_END(LoopInfoWrapperPass

Variables

static cl::opt< bool, true > VerifyLoopInfoX ("verify-loop-info", cl::location(VerifyLoopInfo), cl::Hidden, cl::desc("Verify loop info (time consuming)"))
static const charLLVMLoopMustProgress = "llvm.loop.mustprogress"
 loops
Natural Loop Information
Natural Loop true

Typedef Documentation

◆ Direction

Definition at line 253 of file LoopInfo.cpp.

Function Documentation

◆ findFinalIVValue()

Value * findFinalIVValue ( const Loop & L,
const PHINode & IndVar,
const Instruction & StepInst )
static

Return the final value of the loop induction variable if found.

Definition at line 207 of file LoopInfo.cpp.

References llvm::User::getOperand().

Referenced by llvm::Loop::LoopBounds::getBounds().

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( LoopInfoWrapperPass ,
"loops" ,
"Natural Loop Information" ,
true ,
true  )

◆ isBlockInLCSSAForm()

Variable Documentation

◆ Information

Natural Loop Information

Definition at line 1246 of file LoopInfo.cpp.

◆ LLVMLoopMustProgress

const char* LLVMLoopMustProgress = "llvm.loop.mustprogress"
static

Definition at line 1183 of file LoopInfo.cpp.

Referenced by llvm::hasMustProgress().

◆ loops

loops

Definition at line 1246 of file LoopInfo.cpp.

◆ true

Natural Loop true

Definition at line 1247 of file LoopInfo.cpp.

◆ VerifyLoopInfoX

cl::opt< bool, true > VerifyLoopInfoX("verify-loop-info", cl::location(VerifyLoopInfo), cl::Hidden, cl::desc("Verify loop info (time consuming)")) ( "verify-loop-info" ,
cl::location(VerifyLoopInfo) ,
cl::Hidden ,
cl::desc("Verify loop info (time consuming)")  )
static