diff options
author | Jason Ekstrand <[email protected]> | 2015-01-20 16:30:14 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-20 16:53:29 -0800 |
commit | 194f6235b32cd0c54547a3913e463cf691d011d6 (patch) | |
tree | d93c654666139b58961430e80433b8342b88a86d /src/glsl/nir/nir.h | |
parent | 169d7e5cb1cce73d39e40717d5f49ac30b626d1b (diff) |
nir: Add a nir_foreach_phi_src helper macro
Reviewed-by: Connor Abbott <cwabbott02gmail.com>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index d5fa0e32623..5ebfc5a1bbc 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -990,6 +990,9 @@ typedef struct { nir_src src; } nir_phi_src; +#define nir_foreach_phi_src(phi, entry) \ + foreach_list_typed(nir_phi_src, entry, node, &(phi)->srcs) + typedef struct { nir_instr instr; |