Skip to content

Commit 3046fb6

Browse files
committed
[RISCV] Rename timm5 to tsimm5 to better reflect that it is a signed immediate.
1 parent a8eb741 commit 3046fb6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def VCIX_XV : VCIXType<0b0010>;
2727
def VCIX_XVV : VCIXType<0b1010>;
2828
def VCIX_XVW : VCIXType<0b1111>;
2929

30-
// The payload and timm5 operands are all marked as ImmArg in the IR
30+
// The payload and tsimm5 operands are all marked as ImmArg in the IR
3131
// intrinsic and will be target constant, so use TImmLeaf rather than ImmLeaf.
3232
def payload1 : Operand<XLenVT>, TImmLeaf<XLenVT, [{return isUInt<1>(Imm);}]> {
3333
let ParserMatchClass = UImmAsmOperand<1>;
@@ -50,7 +50,7 @@ def payload5 : Operand<XLenVT>, TImmLeaf<XLenVT, [{return isUInt<5>(Imm);}]> {
5050
let OperandNamespace = "RISCVOp";
5151
}
5252

53-
def timm5 : Operand<XLenVT>, TImmLeaf<XLenVT, [{return isInt<5>(Imm);}]> {
53+
def tsimm5 : Operand<XLenVT>, TImmLeaf<XLenVT, [{return isInt<5>(Imm);}]> {
5454
let ParserMatchClass = SImmAsmOperand<5>;
5555
let EncoderMethod = "getImmOpValue";
5656
let DecoderMethod = "decodeSImmOperand<5>";
@@ -330,12 +330,12 @@ multiclass VPseudoVC_XVW<LMULInfo m, DAGOperand RS1Class,
330330
let Predicates = [HasVendorXSfvcp] in {
331331
foreach m = MxList in {
332332
defm X : VPseudoVC_X<m, GPR>;
333-
defm I : VPseudoVC_X<m, timm5>;
333+
defm I : VPseudoVC_X<m, tsimm5>;
334334
defm XV : VPseudoVC_XV<m, GPR>;
335-
defm IV : VPseudoVC_XV<m, timm5>;
335+
defm IV : VPseudoVC_XV<m, tsimm5>;
336336
defm VV : VPseudoVC_XV<m, m.vrclass>;
337337
defm XVV : VPseudoVC_XVV<m, GPR>;
338-
defm IVV : VPseudoVC_XVV<m, timm5>;
338+
defm IVV : VPseudoVC_XVV<m, tsimm5>;
339339
defm VVV : VPseudoVC_XVV<m, m.vrclass>;
340340
}
341341
foreach f = FPList in {
@@ -346,7 +346,7 @@ let Predicates = [HasVendorXSfvcp] in {
346346
}
347347
foreach m = MxListW in {
348348
defm XVW : VPseudoVC_XVW<m, GPR>;
349-
defm IVW : VPseudoVC_XVW<m, timm5>;
349+
defm IVW : VPseudoVC_XVW<m, tsimm5>;
350350
defm VVW : VPseudoVC_XVW<m, m.vrclass>;
351351
}
352352
foreach f = FPListW in {
@@ -475,12 +475,12 @@ multiclass VPatVC_XVV<string intrinsic_suffix, string instruction_suffix,
475475
let Predicates = [HasVendorXSfvcp] in {
476476
foreach vti = AllIntegerVectors in {
477477
defm : VPatVC_X<"x", "X", vti, vti.Scalar, vti.ScalarRegClass>;
478-
defm : VPatVC_X<"i", "I", vti, XLenVT, timm5>;
478+
defm : VPatVC_X<"i", "I", vti, XLenVT, tsimm5>;
479479
defm : VPatVC_XV<"xv", "XV", vti, vti.Scalar, vti.ScalarRegClass>;
480-
defm : VPatVC_XV<"iv", "IV", vti, XLenVT, timm5>;
480+
defm : VPatVC_XV<"iv", "IV", vti, XLenVT, tsimm5>;
481481
defm : VPatVC_XV<"vv", "VV", vti, vti.Vector, vti.RegClass>;
482482
defm : VPatVC_XVV<"xvv", "XVV", vti, vti, vti.Scalar, vti.ScalarRegClass>;
483-
defm : VPatVC_XVV<"ivv", "IVV", vti, vti, XLenVT, timm5>;
483+
defm : VPatVC_XVV<"ivv", "IVV", vti, vti, XLenVT, tsimm5>;
484484
defm : VPatVC_XVV<"vvv", "VVV", vti, vti, vti.Vector, vti.RegClass>;
485485
if !ge(vti.SEW, 16) then {
486486
defm : VPatVC_XV<"fv", "F" # vti.SEW # "V", vti,
@@ -495,7 +495,7 @@ let Predicates = [HasVendorXSfvcp] in {
495495
defvar vti = VtiToWti.Vti;
496496
defvar wti = VtiToWti.Wti;
497497
defm : VPatVC_XVV<"xvw", "XVW", wti, vti, vti.Scalar, vti.ScalarRegClass>;
498-
defm : VPatVC_XVV<"ivw", "IVW", wti, vti, XLenVT, timm5>;
498+
defm : VPatVC_XVV<"ivw", "IVW", wti, vti, XLenVT, tsimm5>;
499499
defm : VPatVC_XVV<"vvw", "VVW", wti, vti, vti.Vector, vti.RegClass>;
500500
if !ge(vti.SEW, 16) then {
501501
defm : VPatVC_XVV<"fvw", "F" # vti.SEW # "VW", wti, vti,

0 commit comments

Comments
 (0)