projects
/
platform
/
upstream
/
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
c97eff5
..
71983be
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,