Skip to content

Commit af04600

Browse files
committed
[VE] Clean existing code in develop branch
Change the order of functions and statements to reduce the number of conflicts between upstream and develop branch.
1 parent dacf306 commit af04600

File tree

4 files changed

+1047
-1037
lines changed

4 files changed

+1047
-1037
lines changed

llvm/lib/Target/VE/VECustomDAG.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ template <typename ElemT> ElemT &ref_to(std::unique_ptr<ElemT> &UP) {
4343
}
4444
/// } Helpers
4545

46-
class VESubtarget;
47-
48-
using PosOpt = Optional<unsigned>;
49-
50-
/// } Broadcast, Shuffle, Mask Analysis
51-
5246
/// Packing {
5347
using LaneBits = std::bitset<256>;
5448

@@ -125,6 +119,8 @@ SDValue getUnpackAVL(SDValue N);
125119

126120
/// } Packing
127121

122+
using PosOpt = Optional<unsigned>;
123+
128124
//// VVP Machinery {
129125
// VVP property queries
130126
PosOpt getVVPOpcode(unsigned OpCode);
@@ -142,8 +138,8 @@ bool isVVP(unsigned Opcode);
142138
bool isVVPTernaryOp(unsigned Opcode);
143139
bool isVVPBinaryOp(unsigned Opcode);
144140
bool isVVPUnaryOp(unsigned Opcode);
145-
bool isVVPConversionOp(unsigned VVPOC);
146-
bool isVVPReductionOp(unsigned VVPOC);
141+
bool isVVPConversionOp(unsigned Opcode);
142+
bool isVVPReductionOp(unsigned Opcode);
147143

148144
MVT splitVectorType(MVT VT);
149145
EVT splitType(LLVMContext &Ctx, EVT PackedVT, PackElem P);

0 commit comments

Comments
 (0)