leo_passes::loop_unrolling::duplicate

Function duplicate

Source
pub fn duplicate(
    block: Block,
    symbol_table: &mut SymbolTable,
    node_builder: &NodeBuilder,
) -> Block
Expand description

Duplicate this block, recursively giving new NodeIDs into scopes, and duplicating the new scopes in the SymbolTable.