pan/bi: Add phi nodes
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 19 May 2022 16:49:48 +0000 (12:49 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 16:03:23 +0000 (16:03 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>

src/panfrost/bifrost/ISA.xml
src/panfrost/bifrost/bi_printer.c.py

index e5c600c..f1e9083 100644 (file)
     </mod>
   </ins>
 
+  <ins name="+PHI" pseudo="true" variable_srcs="true"/>
+
   <ins name="+COLLECT.i32" pseudo="true" variable_srcs="true"/>
 
   <ins name="+SPLIT.i32" pseudo="true" variable_dests="true">
index b4cc3d8..3912235 100644 (file)
@@ -179,7 +179,7 @@ bi_print_instr(const bi_instr *I, FILE *fp)
     if (I->flow)
         fprintf(fp, ".flow%u", I->flow);
 
-    if (I->op == BI_OPCODE_COLLECT_I32) {
+    if (I->op == BI_OPCODE_COLLECT_I32 || I->op == BI_OPCODE_PHI) {
         for (unsigned i = 0; i < I->nr_srcs; ++i) {
             if (i > 0)
                 fputs(", ", fp);