Skip to main content

token_target_features_boundary

Attribute Macro token_target_features_boundary 

Source
#[token_target_features_boundary]
Available on crate feature macros only.
Expand description

Descriptive alias for [arcane].

Generates a safe wrapper around a #[target_feature] inner function. The token type in your signature determines which CPU features are enabled. Creates an LLVM optimization boundary — use [token_target_features] (alias for [rite]) for inner helpers to avoid this.

Since Rust 1.85, value-based SIMD intrinsics are safe inside #[target_feature] functions. This macro generates the #[target_feature] wrapper so you never need to write unsafe for SIMD code.

See [arcane] for full documentation and examples.