Skip to content

Commit 8542b5a

Browse files
committed
More Whitespace, Flags Type
1 parent 7d27be2 commit 8542b5a

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

llvm/include/llvm/CodeGen/SDNodeInfo.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ struct SDTypeConstraint {
5555
MVT::SimpleValueType VT;
5656
};
5757

58+
using SDNodeTSFlags = uint32_t;
59+
5860
struct SDNodeDesc {
5961
uint16_t NumResults;
6062
int16_t NumOperands;
6163
uint32_t Properties;
6264
uint32_t Flags;
63-
uint32_t TSFlags;
65+
SDNodeTSFlags TSFlags;
6466
unsigned NameOffset;
6567
unsigned ConstraintOffset;
6668
unsigned ConstraintCount;

llvm/lib/Target/RISCV/RISCVInstrInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//===----------------------------------------------------------------------===//
1616

1717
class RVSDNode<string opcode, SDTypeProfile type_profile,
18-
list<SDNodeProperty> properties = []>
18+
list<SDNodeProperty> properties = []>
1919
: SDNode<"RISCVISD::" # opcode, type_profile, properties> {
2020
bit HasPassthruOp = false;
2121
bit HasMaskOp = false;

llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3003,9 +3003,10 @@ foreach vti = !listconcat(AllFloatVectors, AllBFloatVectors) in {
30033003
// Matches the semantics of the vid.v instruction, with a mask and VL
30043004
// operand.
30053005
let HasMaskOp = true in
3006-
def riscv_vid_vl : RVSDNode<"VID_VL", SDTypeProfile<1, 2,
3007-
[SDTCisVec<0>, SDTCVecEltisVT<1, i1>,
3008-
SDTCisSameNumEltsAs<0, 1>, SDTCisVT<2, XLenVT>]>, []>;
3006+
def riscv_vid_vl : RVSDNode<"VID_VL", SDTypeProfile<1, 2, [SDTCisVec<0>,
3007+
SDTCVecEltisVT<1, i1>,
3008+
SDTCisSameNumEltsAs<0, 1>,
3009+
SDTCisVT<2, XLenVT>]>>;
30093010

30103011
def SDTRVVSlide : SDTypeProfile<1, 6, [
30113012
SDTCisVec<0>, SDTCisSameAs<1, 0>, SDTCisSameAs<2, 0>, SDTCisVT<3, XLenVT>,
@@ -3061,6 +3062,3 @@ defm : VPatSlide1VL_VX<riscv_slide1up_vl, "PseudoVSLIDE1UP">;
30613062
defm : VPatSlide1VL_VF<riscv_fslide1up_vl, "PseudoVFSLIDE1UP">;
30623063
defm : VPatSlide1VL_VX<riscv_slide1down_vl, "PseudoVSLIDE1DOWN">;
30633064
defm : VPatSlide1VL_VF<riscv_fslide1down_vl, "PseudoVFSLIDE1DOWN">;
3064-
3065-
3066-

llvm/lib/Target/RISCV/RISCVInstrInfoXRivos.td

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,17 @@ def RI_VEXTRACT : CustomRivosXVI<0b010111, OPMVV, (outs GPR:$rd),
135135
// XLenVT sign extended from the vector element size. VEXTRACT does *not*
136136
// have a VL operand.
137137
def ri_vextract : RVSDNode<"RI_VEXTRACT",
138-
SDTypeProfile<1, 2, [SDTCisInt<0>, SDTCisVec<1>,
139-
SDTCisInt<2>,
140-
SDTCisInt<1>]>>;
138+
SDTypeProfile<1, 2, [SDTCisInt<0>, SDTCisVec<1>,
139+
SDTCisInt<2>,
140+
SDTCisInt<1>]>>;
141141

142142
// RI_VINSERT_VL matches the semantics of ri.vinsert.v.x. It carries a VL operand.
143143
def ri_vinsert_vl : RVSDNode<"RI_VINSERT_VL",
144-
SDTypeProfile<1, 5, [SDTCisSameAs<0, 1>,
145-
SDTCisInt<0>,
146-
SDTCisVT<2, XLenVT>,
147-
SDTCisVT<3, XLenVT>,
148-
SDTCisVT<4, XLenVT>]>>;
144+
SDTypeProfile<1, 5, [SDTCisSameAs<0, 1>,
145+
SDTCisInt<0>,
146+
SDTCisVT<2, XLenVT>,
147+
SDTCisVT<3, XLenVT>,
148+
SDTCisVT<4, XLenVT>]>>;
149149

150150
let Predicates = [HasVendorXRivosVisni], mayLoad = 0, mayStore = 0,
151151
hasSideEffects = 0, HasSEWOp = 1 in

llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ def SDT_StorePair : SDTypeProfile<0, 4, [SDTCisSameAs<0, 1>,
2424
SDTCisVT<3, XLenVT>]>;
2525

2626
def th_lwud : RVSDNode<"TH_LWUD", SDT_LoadPair,
27-
[SDNPHasChain, SDNPMayLoad, SDNPMemOperand]>;
27+
[SDNPHasChain, SDNPMayLoad, SDNPMemOperand]>;
2828
def th_lwd : RVSDNode<"TH_LWD", SDT_LoadPair,
29-
[SDNPHasChain, SDNPMayLoad, SDNPMemOperand]>;
29+
[SDNPHasChain, SDNPMayLoad, SDNPMemOperand]>;
3030
def th_ldd : RVSDNode<"TH_LDD", SDT_LoadPair,
31-
[SDNPHasChain, SDNPMayLoad, SDNPMemOperand]>;
31+
[SDNPHasChain, SDNPMayLoad, SDNPMemOperand]>;
3232
def th_swd : RVSDNode<"TH_SWD", SDT_StorePair,
33-
[SDNPHasChain, SDNPMayStore, SDNPMemOperand]>;
33+
[SDNPHasChain, SDNPMayStore, SDNPMemOperand]>;
3434
def th_sdd : RVSDNode<"TH_SDD", SDT_StorePair,
35-
[SDNPHasChain, SDNPMayStore, SDNPMemOperand]>;
35+
[SDNPHasChain, SDNPMayStore, SDNPMemOperand]>;
3636

3737
def ImmThreeAsmOperand : AsmOperandClass {
3838
let Name = "ImmThree";

llvm/lib/Target/RISCV/RISCVSelectionDAGInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace llvm {
1818

1919
namespace RISCVISD {
2020
// RISCVISD Node TSFlags
21-
enum : unsigned {
21+
enum : llvm::SDNodeTSFlags {
2222
HasPassthruOpMask = 1 << 0,
2323
HasMaskOpMask = 1 << 1,
2424
};

0 commit comments

Comments
 (0)