diff options
author | Jason Ekstrand <[email protected]> | 2016-04-26 18:34:19 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-28 15:54:48 -0700 |
commit | 707e72f13bb78869ee95d3286980bf1709cba6cf (patch) | |
tree | 351ee47ca2ac2b54fb7ef0e8effa65a6e81b2c80 /src/gallium/drivers/vc4/vc4_program.c | |
parent | 261d62de33b6192ec31f034a9897d034a37fa582 (diff) |
nir: Switch the arguments to nir_foreach_instr
This matches the "foreach x in container" pattern found in many other
programming languages. Generated by the following regular expression:
s/nir_foreach_instr(\([^,]*\),\s*\([^,]*\))/nir_foreach_instr(\2, \1)/
and similar expressions for nir_foreach_instr_safe etc.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index 4f6023334cf..58e78b8ed76 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -1694,7 +1694,7 @@ ntq_emit_instr(struct vc4_compile *c, nir_instr *instr) static void ntq_emit_block(struct vc4_compile *c, nir_block *block) { - nir_foreach_instr(block, instr) { + nir_foreach_instr(instr, block) { ntq_emit_instr(c, instr); } } @@ -1781,7 +1781,7 @@ static bool count_nir_instrs_in_block(nir_block *block, void *state) { int *count = (int *) state; - nir_foreach_instr(block, instr) { + nir_foreach_instr(instr, block) { *count = *count + 1; } return true; |