Skip to main content
Log in

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 = 0: No locality.
  • LOW = 1: Low locality.
  • MEDIUM = 2: Medium locality.
  • HIGH = 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__(inout self: 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?