Prelude
Use use archmage::prelude::*; in kernels to import #[attune], attuned!,
reattune!, and the token names. Import generic vector types and backend traits
explicitly when using those spellings. define(...) supplies body-local aliases
without vector imports.
The first kernel shows the minimal
imports with define(f32x8). The generic helper
adds magetypes::simd::{backends::F32x4Backend, generic::f32x4}.
An import does not enable CPU features. #[attune] establishes the relevant
function contexts.
For direct intrinsics, import_intrinsics on #[attune] imports
the appropriate combined intrinsic namespace. Reference-based memory wrappers
are available for supported operations; not every raw pointer intrinsic has a
safe wrapper. Consult the intrinsics browser.