We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d27be2 commit 8542b5aCopy full SHA for 8542b5a
llvm/include/llvm/CodeGen/SDNodeInfo.h
@@ -55,12 +55,14 @@ struct SDTypeConstraint {
55
MVT::SimpleValueType VT;
56
};
57
58
+using SDNodeTSFlags = uint32_t;
59
+
60
struct SDNodeDesc {
61
uint16_t NumResults;
62
int16_t NumOperands;
63
uint32_t Properties;
64
uint32_t Flags;
- uint32_t TSFlags;
65
+ SDNodeTSFlags TSFlags;
66
unsigned NameOffset;
67
unsigned ConstraintOffset;
68
unsigned ConstraintCount;
llvm/lib/Target/RISCV/RISCVInstrInfo.td
@@ -15,7 +15,7 @@
15
//===----------------------------------------------------------------------===//
16
17
class RVSDNode<string opcode, SDTypeProfile type_profile,
18
- list<SDNodeProperty> properties = []>
+ list<SDNodeProperty> properties = []>
19
: SDNode<"RISCVISD::" # opcode, type_profile, properties> {
20
bit HasPassthruOp = false;
21
bit HasMaskOp = false;
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
@@ -3003,9 +3003,10 @@ foreach vti = !listconcat(AllFloatVectors, AllBFloatVectors) in {
3003
// Matches the semantics of the vid.v instruction, with a mask and VL
3004
// operand.
3005
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>]>, []>;
+def riscv_vid_vl : RVSDNode<"VID_VL", SDTypeProfile<1, 2, [SDTCisVec<0>,
+ SDTCVecEltisVT<1, i1>,
+ SDTCisSameNumEltsAs<0, 1>,
3009
+ SDTCisVT<2, XLenVT>]>>;
3010
3011
def SDTRVVSlide : SDTypeProfile<1, 6, [
3012
SDTCisVec<0>, SDTCisSameAs<1, 0>, SDTCisSameAs<2, 0>, SDTCisVT<3, XLenVT>,
@@ -3061,6 +3062,3 @@ defm : VPatSlide1VL_VX<riscv_slide1up_vl, "PseudoVSLIDE1UP">;
3061
3062
defm : VPatSlide1VL_VF<riscv_fslide1up_vl, "PseudoVFSLIDE1UP">;
3063
defm : VPatSlide1VL_VX<riscv_slide1down_vl, "PseudoVSLIDE1DOWN">;
3064
defm : VPatSlide1VL_VF<riscv_fslide1down_vl, "PseudoVFSLIDE1DOWN">;
-
3065
3066
llvm/lib/Target/RISCV/RISCVInstrInfoXRivos.td
@@ -135,17 +135,17 @@ def RI_VEXTRACT : CustomRivosXVI<0b010111, OPMVV, (outs GPR:$rd),
135
// XLenVT sign extended from the vector element size. VEXTRACT does *not*
136
// have a VL operand.
137
def ri_vextract : RVSDNode<"RI_VEXTRACT",
138
- SDTypeProfile<1, 2, [SDTCisInt<0>, SDTCisVec<1>,
139
- SDTCisInt<2>,
140
- SDTCisInt<1>]>>;
+ SDTypeProfile<1, 2, [SDTCisInt<0>, SDTCisVec<1>,
+ SDTCisInt<2>,
+ SDTCisInt<1>]>>;
141
142
// RI_VINSERT_VL matches the semantics of ri.vinsert.v.x. It carries a VL operand.
143
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>]>>;
+ SDTypeProfile<1, 5, [SDTCisSameAs<0, 1>,
+ SDTCisInt<0>,
+ SDTCisVT<2, XLenVT>,
+ SDTCisVT<3, XLenVT>,
+ SDTCisVT<4, XLenVT>]>>;
149
150
let Predicates = [HasVendorXRivosVisni], mayLoad = 0, mayStore = 0,
151
hasSideEffects = 0, HasSEWOp = 1 in
llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td
@@ -24,15 +24,15 @@ def SDT_StorePair : SDTypeProfile<0, 4, [SDTCisSameAs<0, 1>,
24
SDTCisVT<3, XLenVT>]>;
25
26
def th_lwud : RVSDNode<"TH_LWUD", SDT_LoadPair,
27
- [SDNPHasChain, SDNPMayLoad, SDNPMemOperand]>;
+ [SDNPHasChain, SDNPMayLoad, SDNPMemOperand]>;
28
def th_lwd : RVSDNode<"TH_LWD", SDT_LoadPair,
29
30
def th_ldd : RVSDNode<"TH_LDD", SDT_LoadPair,
31
32
def th_swd : RVSDNode<"TH_SWD", SDT_StorePair,
33
- [SDNPHasChain, SDNPMayStore, SDNPMemOperand]>;
+ [SDNPHasChain, SDNPMayStore, SDNPMemOperand]>;
34
def th_sdd : RVSDNode<"TH_SDD", SDT_StorePair,
35
36
37
def ImmThreeAsmOperand : AsmOperandClass {
38
let Name = "ImmThree";
llvm/lib/Target/RISCV/RISCVSelectionDAGInfo.h
@@ -18,7 +18,7 @@ namespace llvm {
namespace RISCVISD {
// RISCVISD Node TSFlags
-enum : unsigned {
+enum : llvm::SDNodeTSFlags {
22
HasPassthruOpMask = 1 << 0,
23
HasMaskOpMask = 1 << 1,
0 commit comments