logos.lang.hint

Module lang · package logos-lang

Functions

fnblack_box

fn black_box(x: T) -> T

Returns x unchanged, as an optimization barrier the compiler cannot fold across calls.

fnspin_loop

fn spin_loop() -> void

Hints that the caller is in a busy-wait spin loop. No-op today; backend would emit pause (x86) / yield (AArch64) here.

fnunreachable_unchecked

fn unreachable_unchecked() -> void

Asserts this point is unreachable; diverges via abort() if control reaches it anyway.