[llvm] [RISCV][llvm-mca] Use Sched*MC for Zvk MC instructions and add Zvk tests for P600 (PR #89256)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 18 10:12:36 PDT 2024


================
@@ -71,7 +68,8 @@ class PALUVVNoVm<bits<6> funct6, RISCVVFormat opv, string opcodestr>
 class PALUVVNoVmTernary<bits<6> funct6, RISCVVFormat opv, string opcodestr>
     : RVInstVV<funct6, opv, (outs VR:$vd_wb),
                (ins VR:$vd, VR:$vs2, VR:$vs1),
-               opcodestr, "$vd, $vs2, $vs1"> {
+               opcodestr, "$vd, $vs2, $vs1">,
+      SchedTernaryMC<"WriteVIALUV", "ReadVIALUV", "ReadVIALUV", "ReadVIALUV"> {
----------------
topperc wrote:

I'm not sure this the right layer for this either. You're probably going to need different classes for VGHSH and SHA2 in the future.

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


More information about the llvm-commits mailing list