Mojo struct
PrefetchLocality
The prefetch locality.
The locality, rw, and cache type correspond to LLVM prefetch intrinsic's inputs (see LLVM prefetch locality)
Aliases
NONE = PrefetchLocality(0)
: No locality.LOW = PrefetchLocality(1)
: Low locality.MEDIUM = PrefetchLocality(2)
: Medium locality.HIGH = PrefetchLocality(3)
: Extremely local locality (keep in cache).
Fields
- value (
SIMD[int32, 1]
): The prefetch locality to use. It should be a value in [0, 3].
Implemented traits
AnyType
Methods
__init__
__init__(out self, value: Int)
Constructs a prefetch locality option.
Args:
- value (
Int
): An integer value representing the locality. Should be a value in the range[0, 3]
.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!