projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb18119
)
nir: Add foreach_register helper macros
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 14 Dec 2016 04:54:38 +0000
(20:54 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 30 Dec 2016 00:02:44 +0000
(16:02 -0800)
src/compiler/nir/nir.h
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir.h
b/src/compiler/nir/nir.h
index c97eff5fbbcd327f0a7d7e903dab1dba03bdf2e4..71983be0344f13c4a3a6859017d81c361f0da04a 100644
(file)
--- 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,