Skip to main content

Module control_flow

Module control_flow 

Source
Expand description

Control flow HIP emission. Translates WAVE structured control flow instructions

(if/else/endif, loop/endloop, break/continue) into equivalent HIP C++ control flow statements. HIP supports structured control flow natively so the mapping is direct with no branch lowering required, identical to the Metal backend.

Functionsยง

emit_break
emit_continue
emit_else
emit_endif
emit_endloop
emit_if
emit_loop