Skip to main content
Log in

Mojo module

intrinsics

Defines intrinsics.

You can import these APIs from the sys package. For example:

from sys import PrefetchLocality
from sys import PrefetchLocality

Structs

Functions

  • compressed_store: Compresses the lanes of value, skipping mask lanes, and stores at addr.
  • gather: Reads scalar values from a SIMD vector, and gathers them into one vector.
  • llvm_intrinsic: Calls an LLVM intrinsic with no arguments.
  • masked_load: Loads data from memory and return it, replacing masked lanes with values from the passthrough vector.
  • masked_store: Stores a value at a memory location, skipping masked lanes.
  • prefetch: Prefetches an instruction or data into cache before it is used.
  • scatter: Takes scalar values from a SIMD vector and scatters them into a vector of pointers.
  • strided_load: Loads values from addr according to a specific stride.
  • strided_store: Loads values from addr according to a specific stride.

Was this page helpful?