Browse Source

nir: add nir_foreach_phi_src_safe()

Signed-off-by: Connor Abbott <connor.w.abbott@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
tags/11.1-branchpoint
Connor Abbott 10 years ago
parent
commit
f41e108d8b
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/glsl/nir/nir.h

+ 2
- 0
src/glsl/nir/nir.h View File

@@ -1101,6 +1101,8 @@ typedef struct {

#define nir_foreach_phi_src(phi, entry) \
foreach_list_typed(nir_phi_src, entry, node, &(phi)->srcs)
#define nir_foreach_phi_src_safe(phi, entry) \
foreach_list_typed_safe(nir_phi_src, entry, node, &(phi)->srcs)

typedef struct {
nir_instr instr;

Loading…
Cancel
Save