From 09a3585ee95f2eea09f3422427c9bd05183f17dc Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Mon, 26 Jun 2023 08:26:25 -0700 Subject: [PATCH] [RISCV] Rename all TA variants of VPseudoUnaryMask and VPatoUnaryMask [NFC] All of the these pseudo's take their policy from the policy operand via the normal mechanisms, and aren't "tail agnostic" in any particular sense. Note that the existing VPatUnaryMask class was unused, and thus this is just a rename. --- llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td | 56 ++++++++----------------- 1 file changed, 18 insertions(+), 38 deletions(-) diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td index 9b86ce5..24e3929 100644 --- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td +++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td @@ -1068,7 +1068,7 @@ class VPseudoUnaryMask : let UsesMaskPolicy = 1; } -class VPseudoUnaryMaskTA_NoExcept : +class VPseudoUnaryMask_NoExcept : Pseudo<(outs GetVRegNoV0.R:$rd), (ins GetVRegNoV0.R:$merge, OpClass:$rs2, VMaskOp:$vm, AVL:$vl, ixlenimm:$sew, ixlenimm:$policy), []> { @@ -1083,7 +1083,7 @@ class VPseudoUnaryMaskTA_NoExcept : +class VPseudoUnaryMask_FRM : Pseudo<(outs GetVRegNoV0.R:$rd), (ins GetVRegNoV0.R:$merge, OpClass:$rs2, VMaskOp:$vm, ixlenimm:$frm, AVL:$vl, ixlenimm:$sew, ixlenimm:$policy), []> { @@ -3568,8 +3568,8 @@ multiclass VPseudoConversionRM { let VLMul = MInfo.value in { - def "_" # MInfo.MX # "_MASK" : VPseudoUnaryMaskTA_FRM; + def "_" # MInfo.MX # "_MASK" : VPseudoUnaryMask_FRM; } } @@ -3578,7 +3578,7 @@ multiclass VPseudoConversionNoExcept { let VLMul = MInfo.value in { - def "_" # MInfo.MX # "_MASK" : VPseudoUnaryMaskTA_NoExcept; + def "_" # MInfo.MX # "_MASK" : VPseudoUnaryMask_NoExcept; } } @@ -3976,31 +3976,11 @@ class VPatUnaryMask : - Pat<(result_type (!cast(intrinsic_name#"_mask") - (result_type result_reg_class:$merge), - (op2_type op2_reg_class:$rs2), - (mask_type V0), - VLOpFrag)), - (!cast(inst#"_"#kind#"_"#vlmul.MX#"_MASK") - (result_type result_reg_class:$merge), - (op2_type op2_reg_class:$rs2), - (mask_type V0), GPR:$vl, sew)>; - -class VPatUnaryMaskTA : + VReg op2_reg_class, + bit isSEWAware = 0> : Pat<(result_type (!cast(intrinsic_name#"_mask") (result_type result_reg_class:$merge), (op2_type op2_reg_class:$rs2), @@ -4502,8 +4482,8 @@ multiclass VPatUnaryV_M vti.Log2SEW, vti.LMul, VR>; def : VPatUnaryNoMaskTU; - def : VPatUnaryMaskTA; + def : VPatUnaryMask; } } } @@ -4523,9 +4503,9 @@ multiclass VPatUnaryV_VF; - def : VPatUnaryMaskTA; + def : VPatUnaryMask; } } } @@ -4540,9 +4520,9 @@ multiclass VPatUnaryV_V; - def : VPatUnaryMaskTA; + def : VPatUnaryMask; } } } @@ -4750,8 +4730,8 @@ multiclass VPatConversionTA; def : VPatUnaryNoMaskTU; - def : VPatUnaryMaskTA; + def : VPatUnaryMask; } multiclass VPatBinaryV_VV