agx: Add phi pseudo instruction

For SSA.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16268>
This commit is contained in:
Alyssa Rosenzweig
2022-04-12 21:41:34 -04:00
parent 2a4a8a8902
commit d285c63417

View File

@@ -255,3 +255,7 @@ op("or", _, srcs = 2)
op("p_combine", _, srcs = 4) op("p_combine", _, srcs = 4)
op("p_split", _, srcs = 1, dests = 4) op("p_split", _, srcs = 1, dests = 4)
op("p_extract", _, srcs = 1, imms = [COMPONENT]) 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)