For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
PrefetchCache
struct PrefetchCache
Prefetch cache type.
Fields
- value (
Int32): The cache prefetch. It should be in [0, 1].
Implemented traits
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime members
DATA
comptime DATA = PrefetchCache(1)
The data prefetching option.
INSTRUCTION
comptime INSTRUCTION = PrefetchCache(0)
The instruction prefetching option.
Methods
__init__
__init__(value: Int) -> Self
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].