[llvm] [RISCV] Fix and refactor Zvk sched classes (PR #86519)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 12:00:55 PDT 2024
================
@@ -237,22 +237,18 @@ multiclass VPseudoUnaryV_S_NoMask_Zvk<LMULInfo m, string Constraint = ""> {
multiclass VPseudoVALU_V_NoMask_Zvk<string Constraint = ""> {
foreach m = MxListVF4 in {
defvar mx = m.MX;
- defvar WriteVIALUV_MX = !cast<SchedWrite>("WriteVIALUV_" # mx);
- defvar ReadVIALUV_MX = !cast<SchedRead>("ReadVIALUV_" # mx);
-
defm "" : VPseudoUnaryV_V_NoMask_Zvk<m, Constraint>,
- Sched<[WriteVIALUV_MX, ReadVIALUV_MX, ReadVIALUV_MX, ReadVMask]>;
+ SchedUnary<"WriteVIALUV", "ReadVIALUV", mx,
+ forceMergeOpRead=true>;
}
}
multiclass VPseudoVALU_S_NoMask_Zvk<string Constraint = ""> {
foreach m = MxListVF4 in {
defvar mx = m.MX;
- defvar WriteVIALUV_MX = !cast<SchedWrite>("WriteVIALUV_" # mx);
- defvar ReadVIALUV_MX = !cast<SchedRead>("ReadVIALUV_" # mx);
-
defm "" : VPseudoUnaryV_S_NoMask_Zvk<m, Constraint>,
- Sched<[WriteVIALUV_MX, ReadVIALUV_MX, ReadVIALUV_MX, ReadVMask]>;
+ SchedUnary<"WriteVIALUV", "ReadVIALUV", mx,
+ forceMergeOpRead=true>;
----------------
topperc wrote:
Same here
https://github.com/llvm/llvm-project/pull/86519
More information about the llvm-commits
mailing list