[Mesa-dev] [PATCH v3 2/4] nir: Add foreach_register helper macros
Jason Ekstrand
jason at jlekstrand.net
Fri Dec 16 19:05:54 UTC 2016
---
src/compiler/nir/nir.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index f1c99ce..9402863 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -373,6 +373,11 @@ typedef struct nir_register {
struct list_head if_uses;
} nir_register;
+#define nir_foreach_register(reg, reg_list) \
+ foreach_list_typed(nir_register, reg, node, reg_list)
+#define nir_foreach_register_safe(reg, reg_list) \
+ foreach_list_typed_safe(nir_register, reg, node, reg_list)
+
typedef enum {
nir_instr_type_alu,
nir_instr_type_call,
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list