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:
25020c1
)
nir: Add a nir_after_instr_and_phis helper
author
Jesse Natalie
<jenatali@microsoft.com>
Mon, 8 Mar 2021 22:15:05 +0000
(14:15 -0800)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 9 Mar 2021 01:41:32 +0000
(
01:41
+0000)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9464>
src/compiler/nir/nir.h
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir.h
b/src/compiler/nir/nir.h
index
acb6877
..
4145a34
100644
(file)
--- a/
src/compiler/nir/nir.h
+++ b/
src/compiler/nir/nir.h
@@
-3770,6
+3770,15
@@
nir_after_phis(nir_block *block)
}
static inline nir_cursor
+nir_after_instr_and_phis(nir_instr *instr)
+{
+ if (instr->type == nir_instr_type_phi)
+ return nir_after_phis(instr->block);
+ else
+ return nir_after_instr(instr);
+}
+
+static inline nir_cursor
nir_after_cf_node_and_phis(nir_cf_node *node)
{
if (node->type == nir_cf_node_block)