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:
2a4a8a8
)
agx: Add phi pseudo instruction
author
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Wed, 13 Apr 2022 01:41:34 +0000
(21:41 -0400)
committer
Alyssa Rosenzweig
<alyssa@rosenzweig.io>
Mon, 2 May 2022 01:58:29 +0000
(21:58 -0400)
For SSA.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16268>
src/asahi/compiler/agx_opcodes.py
patch
|
blob
|
history
diff --git
a/src/asahi/compiler/agx_opcodes.py
b/src/asahi/compiler/agx_opcodes.py
index
da4b48b
..
cb98bf6
100644
(file)
--- a/
src/asahi/compiler/agx_opcodes.py
+++ b/
src/asahi/compiler/agx_opcodes.py
@@
-255,3
+255,7
@@
op("or", _, srcs = 2)
op("p_combine", _, srcs = 4)
op("p_split", _, srcs = 1, dests = 4)
op("p_extract", _, srcs = 1, imms = [COMPONENT])
+
+# Phis are special-cased in the IR as they (uniquely) can take an unbounded
+# number of source.
+op("phi", _, srcs = 0)