struct PrefetchOpts

Defined at line 397 of file ../../third_party/protobuf/src/src/google/protobuf/port.h

----------------------- Cache-prefetching utilities --------------------------

Public Members

Amount num
Amount from
Locality locality
MemOp mem_op

Enumerations

enum Locality : int
Name Value Comments
kNta 0

Prefetch data into non-temporal cache structure and into a location close
to the processor, minimizing cache pollution.

kLow 1

Prefetch data into L3 cache, or an implementation-specific choice.

kMedium 2

Prefetch data into L3 and L2 cache.

kHigh 3

Prefetch data into all levels of cache.

Indicates the cache locality to prefetch into.

Defined at line 403 of file ../../third_party/protobuf/src/src/google/protobuf/port.h

enum MemOp : int
Name Value
kRead 0
kWrite 1

Indicates the intended memory access type to optimize prefetching for.

Defined at line 415 of file ../../third_party/protobuf/src/src/google/protobuf/port.h

enum Unit : int
Name Value
kBytes 0
kLines 1
kObjects 2

Specifies the unit of `Amount` below.

Defined at line 417 of file ../../third_party/protobuf/src/src/google/protobuf/port.h

Records