@@ -4390,7 +4390,7 @@ static SDValue getZeroVector(EVT VT, const X86Subtarget *Subtarget,
4390
4390
/// Always build ones vectors as <4 x i32> or <8 x i32>. For 256-bit types with
4391
4391
/// no AVX2 supprt, use two <4 x i32> inserted in a <8 x i32> appropriately.
4392
4392
/// Then bitcast to their original type, ensuring they get CSE'd.
4393
- static SDValue getOnesVector(EVT VT, bool HasInt256, SelectionDAG &DAG,
4393
+ static SDValue getOnesVector(MVT VT, bool HasInt256, SelectionDAG &DAG,
4394
4394
DebugLoc dl) {
4395
4395
assert(VT.isVector() && "Expected a vector type");
4396
4396
@@ -5100,7 +5100,7 @@ X86TargetLowering::LowerVectorBroadcast(SDValue Op, SelectionDAG &DAG) const {
5100
5100
if (!Subtarget->hasFp256())
5101
5101
return SDValue();
5102
5102
5103
- EVT VT = Op.getValueType();
5103
+ MVT VT = Op.getValueType().getSimpleVT ();
5104
5104
DebugLoc dl = Op.getDebugLoc();
5105
5105
5106
5106
assert((VT.is128BitVector() || VT.is256BitVector()) &&
@@ -5298,8 +5298,8 @@ SDValue
5298
5298
X86TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const {
5299
5299
DebugLoc dl = Op.getDebugLoc();
5300
5300
5301
- EVT VT = Op.getValueType();
5302
- EVT ExtVT = VT.getVectorElementType();
5301
+ MVT VT = Op.getValueType().getSimpleVT ();
5302
+ MVT ExtVT = VT.getVectorElementType();
5303
5303
unsigned NumElems = Op.getNumOperands();
5304
5304
5305
5305
// Vectors containing all zeros can be matched by pxor and xorps later
@@ -5630,7 +5630,7 @@ X86TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const {
5630
5630
// to create 256-bit vectors from two other 128-bit ones.
5631
5631
static SDValue LowerAVXCONCAT_VECTORS(SDValue Op, SelectionDAG &DAG) {
5632
5632
DebugLoc dl = Op.getDebugLoc();
5633
- EVT ResVT = Op.getValueType();
5633
+ MVT ResVT = Op.getValueType().getSimpleVT ();
5634
5634
5635
5635
assert(ResVT.is256BitVector() && "Value type must be 256-bit wide");
5636
5636
@@ -7038,10 +7038,10 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const {
7038
7038
SDValue
7039
7039
X86TargetLowering::LowerEXTRACT_VECTOR_ELT_SSE4(SDValue Op,
7040
7040
SelectionDAG &DAG) const {
7041
- EVT VT = Op.getValueType();
7041
+ MVT VT = Op.getValueType().getSimpleVT ();
7042
7042
DebugLoc dl = Op.getDebugLoc();
7043
7043
7044
- if (!Op.getOperand(0).getValueType().is128BitVector())
7044
+ if (!Op.getOperand(0).getValueType().getSimpleVT(). is128BitVector())
7045
7045
return SDValue();
7046
7046
7047
7047
if (VT.getSizeInBits() == 8) {
@@ -7106,7 +7106,7 @@ X86TargetLowering::LowerEXTRACT_VECTOR_ELT(SDValue Op,
7106
7106
return SDValue();
7107
7107
7108
7108
SDValue Vec = Op.getOperand(0);
7109
- EVT VecVT = Vec.getValueType();
7109
+ MVT VecVT = Vec.getValueType().getSimpleVT ();
7110
7110
7111
7111
// If this is a 256-bit vector result, first extract the 128-bit vector and
7112
7112
// then extract the element from the 128-bit vector.
@@ -7133,7 +7133,7 @@ X86TargetLowering::LowerEXTRACT_VECTOR_ELT(SDValue Op,
7133
7133
return Res;
7134
7134
}
7135
7135
7136
- EVT VT = Op.getValueType();
7136
+ MVT VT = Op.getValueType().getSimpleVT ();
7137
7137
DebugLoc dl = Op.getDebugLoc();
7138
7138
// TODO: handle v16i8.
7139
7139
if (VT.getSizeInBits() == 16) {
@@ -7146,7 +7146,7 @@ X86TargetLowering::LowerEXTRACT_VECTOR_ELT(SDValue Op,
7146
7146
MVT::v4i32, Vec),
7147
7147
Op.getOperand(1)));
7148
7148
// Transform it so it match pextrw which produces a 32-bit result.
7149
- EVT EltVT = MVT::i32;
7149
+ MVT EltVT = MVT::i32;
7150
7150
SDValue Extract = DAG.getNode(X86ISD::PEXTRW, dl, EltVT,
7151
7151
Op.getOperand(0), Op.getOperand(1));
7152
7152
SDValue Assert = DAG.getNode(ISD::AssertZext, dl, EltVT, Extract,
@@ -7161,7 +7161,7 @@ X86TargetLowering::LowerEXTRACT_VECTOR_ELT(SDValue Op,
7161
7161
7162
7162
// SHUFPS the element to the lowest double word, then movss.
7163
7163
int Mask[4] = { static_cast<int>(Idx), -1, -1, -1 };
7164
- EVT VVT = Op.getOperand(0).getValueType();
7164
+ MVT VVT = Op.getOperand(0).getValueType().getSimpleVT ();
7165
7165
SDValue Vec = DAG.getVectorShuffle(VVT, dl, Op.getOperand(0),
7166
7166
DAG.getUNDEF(VVT), Mask);
7167
7167
return DAG.getNode(ISD::EXTRACT_VECTOR_ELT, dl, VT, Vec,
@@ -7180,7 +7180,7 @@ X86TargetLowering::LowerEXTRACT_VECTOR_ELT(SDValue Op,
7180
7180
// Note if the lower 64 bits of the result of the UNPCKHPD is then stored
7181
7181
// to a f64mem, the whole operation is folded into a single MOVHPDmr.
7182
7182
int Mask[2] = { 1, -1 };
7183
- EVT VVT = Op.getOperand(0).getValueType();
7183
+ MVT VVT = Op.getOperand(0).getValueType().getSimpleVT ();
7184
7184
SDValue Vec = DAG.getVectorShuffle(VVT, dl, Op.getOperand(0),
7185
7185
DAG.getUNDEF(VVT), Mask);
7186
7186
return DAG.getNode(ISD::EXTRACT_VECTOR_ELT, dl, VT, Vec,
@@ -7193,8 +7193,8 @@ X86TargetLowering::LowerEXTRACT_VECTOR_ELT(SDValue Op,
7193
7193
SDValue
7194
7194
X86TargetLowering::LowerINSERT_VECTOR_ELT_SSE4(SDValue Op,
7195
7195
SelectionDAG &DAG) const {
7196
- EVT VT = Op.getValueType();
7197
- EVT EltVT = VT.getVectorElementType();
7196
+ MVT VT = Op.getValueType().getSimpleVT ();
7197
+ MVT EltVT = VT.getVectorElementType();
7198
7198
DebugLoc dl = Op.getDebugLoc();
7199
7199
7200
7200
SDValue N0 = Op.getOperand(0);
@@ -7247,8 +7247,8 @@ X86TargetLowering::LowerINSERT_VECTOR_ELT_SSE4(SDValue Op,
7247
7247
7248
7248
SDValue
7249
7249
X86TargetLowering::LowerINSERT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const {
7250
- EVT VT = Op.getValueType();
7251
- EVT EltVT = VT.getVectorElementType();
7250
+ MVT VT = Op.getValueType().getSimpleVT ();
7251
+ MVT EltVT = VT.getVectorElementType();
7252
7252
7253
7253
DebugLoc dl = Op.getDebugLoc();
7254
7254
SDValue N0 = Op.getOperand(0);
@@ -7296,7 +7296,7 @@ X86TargetLowering::LowerINSERT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const {
7296
7296
static SDValue LowerSCALAR_TO_VECTOR(SDValue Op, SelectionDAG &DAG) {
7297
7297
LLVMContext *Context = DAG.getContext();
7298
7298
DebugLoc dl = Op.getDebugLoc();
7299
- EVT OpVT = Op.getValueType();
7299
+ MVT OpVT = Op.getValueType().getSimpleVT ();
7300
7300
7301
7301
// If this is a 256-bit vector result, first insert into a 128-bit
7302
7302
// vector and then insert into the 256-bit vector.
0 commit comments