LLVM: lib/Transforms/Scalar/LoopDataPrefetch.cpp File Reference (original) (raw)

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...
Variables
static cl::opt< bool > PrefetchWrites ("loop-prefetch-writes", cl::Hidden, cl::init(false), cl::desc("Prefetch write addresses"))
static cl::opt< unsigned > PrefetchDistance ("prefetch-distance", cl::desc("Number of instructions to prefetch ahead"), cl::Hidden)
static cl::opt< unsigned > MinPrefetchStride ("min-prefetch-stride", cl::desc("Min stride to add prefetches"), cl::Hidden)
static cl::opt< unsigned > MaxPrefetchIterationsAhead ("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

DEBUG_TYPE

#define DEBUG_TYPE "loop-data-prefetch"

INITIALIZE_PASS_BEGIN()

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

STATISTIC()

STATISTIC ( NumPrefetches ,
"Number of prefetches inserted"
)

false

loop data Loop Data false

MaxPrefetchIterationsAhead

MinPrefetchStride

prefetch

Prefetch

PrefetchDistance

PrefetchWrites