Skip to main content
Log in

Mojo struct

CacheOperation

struct CacheOperation

Aliases

  • ALWAYS = 0: Cache at all levels. This will be accessed again.
  • GLOBAL = 1: Cache at global level.
  • STREAMING = 2: Streaming, this is likely to be accessed once.
  • LAST_USE = 3: Indicates the cache line will not be used again.
  • VOLATILE = 4: Don't cache, and fetch again.
  • WRITE_BACK = 5: Write back at all coherent levels.
  • WRITE_THROUGH = 6: Write through to system memory.

Implemented traits

AnyType, Copyable, ExplicitlyCopyable, Movable, UnknownDestructibility

Methods

__eq__

__eq__(self, other: Self) -> Bool

__ne__

__ne__(self, other: Self) -> Bool

__is__

__is__(self, other: Self) -> Bool

__isnot__

__isnot__(self, other: Self) -> Bool

mnemonic

mnemonic(self) -> StringLiteral