Skip to main content
Log in

Mojo struct

PrefetchCache

@register_passable(trivial) struct PrefetchCache

Prefetch cache type.

Aliases

  • INSTRUCTION = PrefetchCache(0): The instruction prefetching option.
  • DATA = PrefetchCache(1): The data prefetching option.

Fields

  • value (SIMD[int32, 1]): The cache prefetch. It should be in [0, 1].

Implemented traits

AnyType, UnknownDestructibility

Methods

__init__

@implicit __init__(out self, value: Int)

Constructs a prefetch option.

Args:

  • value (Int): An integer value representing the prefetch cache option to be used. Should be a value in the range [0, 1].