Skip to main content
Log in

Mojo struct

PrefetchRW

@register_passable(trivial) struct PrefetchRW

Prefetch read or write.

Fields

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

Implemented traits

AnyType, Copyable, Movable, UnknownDestructibility

Aliases

READ

alias READ = PrefetchRW(0)

Read prefetch.

WRITE

alias WRITE = PrefetchRW(1)

Write prefetch.

Methods

__init__

__init__(value: Int) -> Self

Constructs a prefetch read-write option.

Args:

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