function volatile_write

@intrinsic(volatile_write)
fn volatile_write<T>(ptr: &T, v: T) { .. }
Expand

Stores v in ptr in a volatile way. This causes the compiler to not reorder or remove writes.