Skip to main content

loops

Function loops 

Source
pub fn loops(func: &mut Func)
Expand description

Rewrites every read modify write this machine has no instruction for into a loop around the compare and exchange, and leaves the rest of them alone.

The function is changed in place. It gains two blocks and loses one instruction for each one rewritten, and every function without one of these is untouched.