[llvm] [TableGen] Added submulticlass typechecking to template arg values. (PR #112904)

via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 20 10:10:25 PDT 2024


================
@@ -319,7 +319,7 @@ multiclass
 multiclass
     VOP2eInst<string opName, VOPProfile P, SDPatternOperator node = null_frag,
               string revOp = opName, bit useSGPRInput = !eq(P.NumSrcArgs, 3)>
-    : VOP2eInst_Base<opName, P, -1, "", node, revOp, useSGPRInput>;
+    : VOP2eInst_Base<opName, P, -1, "v_cndmask_b16", node, revOp, useSGPRInput>;
----------------
jofrn wrote:

We can pass vOPDName explicitly here in order to give this "fake" record more information, `defm V_CNDMASK_B16 : VOP2eInst <"v_cndmask_b16", VOP2e_I16_I16_I16_I1_fake16>;`. I do not see it as necessary though. The opcode is used in one location and it would not have been able to query this information before this change anyway. `VOPDOp` is given a value of `-1`, indicating a fake record as well.

https://github.com/llvm/llvm-project/pull/112904


More information about the llvm-commits mailing list