LLVM 22.0.0git
LoopDataPrefetch.cpp File Reference

Go to the source code of this file.

Classes

struct  Prefetch
 A record for a potential prefetch made during the initial scan of the loop. More...

Macros

#define DEBUG_TYPE   "loop-data-prefetch"

Functions

 STATISTIC (NumPrefetches, "Number of prefetches inserted")
 INITIALIZE_PASS_BEGIN (LoopDataPrefetchLegacyPass, "loop-data-prefetch", "Loop Data Prefetch", false, false) INITIALIZE_PASS_END(LoopDataPrefetchLegacyPass

Variables

static cl::opt< boolPrefetchWrites ("loop-prefetch-writes", cl::Hidden, cl::init(false), cl::desc("Prefetch write addresses"))
static cl::opt< unsignedPrefetchDistance ("prefetch-distance", cl::desc("Number of instructions to prefetch ahead"), cl::Hidden)
static cl::opt< unsignedMinPrefetchStride ("min-prefetch-stride", cl::desc("Min stride to add prefetches"), cl::Hidden)
static cl::opt< unsignedMaxPrefetchIterationsAhead ("max-prefetch-iters-ahead", cl::desc("Max number of iterations to prefetch ahead"), cl::Hidden)
loop data prefetch
loop data Loop Data Prefetch
loop data Loop Data false

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "loop-data-prefetch"

Definition at line 33 of file LoopDataPrefetch.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( LoopDataPrefetchLegacyPass ,
"loop-data-prefetch" ,
"Loop Data Prefetch" ,
false ,
false  )

◆ STATISTIC()

STATISTIC ( NumPrefetches ,
"Number of prefetches inserted"  )

Variable Documentation

◆ false

loop data Loop Data false

Definition at line 149 of file LoopDataPrefetch.cpp.

◆ MaxPrefetchIterationsAhead

cl::opt< unsigned > MaxPrefetchIterationsAhead("max-prefetch-iters-ahead", cl::desc("Max number of iterations to prefetch ahead"), cl::Hidden) ( "max-prefetch-iters-ahead" ,
cl::desc("Max number of iterations to prefetch ahead") ,
cl::Hidden  )
static

◆ MinPrefetchStride

cl::opt< unsigned > MinPrefetchStride("min-prefetch-stride", cl::desc("Min stride to add prefetches"), cl::Hidden) ( "min-prefetch-stride" ,
cl::desc("Min stride to add prefetches") ,
cl::Hidden  )
static

◆ Prefetch

loop data Loop Data Prefetch

Definition at line 149 of file LoopDataPrefetch.cpp.

◆ prefetch

loop data prefetch

Definition at line 148 of file LoopDataPrefetch.cpp.

◆ PrefetchDistance

cl::opt< unsigned > PrefetchDistance("prefetch-distance", cl::desc("Number of instructions to prefetch ahead"), cl::Hidden) ( "prefetch-distance" ,
cl::desc("Number of instructions to prefetch ahead") ,
cl::Hidden  )
static

◆ PrefetchWrites

cl::opt< bool > PrefetchWrites("loop-prefetch-writes", cl::Hidden, cl::init(false), cl::desc("Prefetch write addresses")) ( "loop-prefetch-writes" ,
cl::Hidden ,
cl::init(false) ,
cl::desc("Prefetch write addresses")  )
static