Skip to content

Commit 5e94163

Browse files
committed
[RISCV] Rename VPatBinarySwapped to VPatBinaryMSwapped. NFC
This class is most closely related to VPatBinaryM.
1 parent 7d203b1 commit 5e94163

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4161,15 +4161,15 @@ class VPatBinaryNoMaskTURoundingMode<string intrinsic_name,
41614161
GPR:$vl, sew, TU_MU)>;
41624162

41634163

4164-
// Same as above but source operands are swapped.
4165-
class VPatBinaryNoMaskSwapped<string intrinsic_name,
4166-
string inst,
4167-
ValueType result_type,
4168-
ValueType op1_type,
4169-
ValueType op2_type,
4170-
int sew,
4171-
VReg op1_reg_class,
4172-
DAGOperand op2_kind> :
4164+
// Same as VPatBinaryM but source operands are swapped.
4165+
class VPatBinaryMSwapped<string intrinsic_name,
4166+
string inst,
4167+
ValueType result_type,
4168+
ValueType op1_type,
4169+
ValueType op2_type,
4170+
int sew,
4171+
VReg op1_reg_class,
4172+
DAGOperand op2_kind> :
41734173
Pat<(result_type (!cast<Intrinsic>(intrinsic_name)
41744174
(op2_type op2_kind:$rs2),
41754175
(op1_type op1_reg_class:$rs1),
@@ -4248,7 +4248,7 @@ class VPatBinaryMaskTARoundingMode<string intrinsic_name,
42484248
(XLenVT timm:$round),
42494249
GPR:$vl, sew, (XLenVT timm:$policy))>;
42504250

4251-
// Same as above but source operands are swapped.
4251+
// Same as VPatBinaryMask but source operands are swapped.
42524252
class VPatBinaryMaskSwapped<string intrinsic_name,
42534253
string inst,
42544254
ValueType result_type,
@@ -4798,18 +4798,18 @@ multiclass VPatBinaryRoundingMode<string intrinsic,
47984798
op2_kind>;
47994799
}
48004800

4801-
multiclass VPatBinarySwapped<string intrinsic,
4802-
string inst,
4803-
ValueType result_type,
4804-
ValueType op1_type,
4805-
ValueType op2_type,
4806-
ValueType mask_type,
4807-
int sew,
4808-
VReg result_reg_class,
4809-
VReg op1_reg_class,
4810-
DAGOperand op2_kind> {
4811-
def : VPatBinaryNoMaskSwapped<intrinsic, inst, result_type, op1_type, op2_type,
4812-
sew, op1_reg_class, op2_kind>;
4801+
multiclass VPatBinaryMSwapped<string intrinsic,
4802+
string inst,
4803+
ValueType result_type,
4804+
ValueType op1_type,
4805+
ValueType op2_type,
4806+
ValueType mask_type,
4807+
int sew,
4808+
VReg result_reg_class,
4809+
VReg op1_reg_class,
4810+
DAGOperand op2_kind> {
4811+
def : VPatBinaryMSwapped<intrinsic, inst, result_type, op1_type, op2_type,
4812+
sew, op1_reg_class, op2_kind>;
48134813
def : VPatBinaryMaskSwapped<intrinsic, inst, result_type, op1_type, op2_type,
48144814
mask_type, sew, result_reg_class, op1_reg_class,
48154815
op2_kind>;
@@ -5406,10 +5406,10 @@ multiclass VPatBinarySwappedM_VV<string intrinsic, string instruction,
54065406
list<VTypeInfo> vtilist> {
54075407
foreach vti = vtilist in
54085408
let Predicates = GetVTypePredicates<vti>.Predicates in
5409-
defm : VPatBinarySwapped<intrinsic, instruction # "_VV_" # vti.LMul.MX,
5410-
vti.Mask, vti.Vector, vti.Vector, vti.Mask,
5411-
vti.Log2SEW, VR,
5412-
vti.RegClass, vti.RegClass>;
5409+
defm : VPatBinaryMSwapped<intrinsic, instruction # "_VV_" # vti.LMul.MX,
5410+
vti.Mask, vti.Vector, vti.Vector, vti.Mask,
5411+
vti.Log2SEW, VR,
5412+
vti.RegClass, vti.RegClass>;
54135413
}
54145414

54155415
multiclass VPatBinaryM_VX<string intrinsic, string instruction,

0 commit comments

Comments
 (0)