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 d45fae6 commit 28cc956Copy full SHA for 28cc956
llvm/unittests/Support/MachineValueType.h
@@ -246,6 +246,14 @@ namespace llvm::tmp {
246
return getVectorVT(EltVT, EltCnt.divideCoefficientBy(2));
247
}
248
249
+ // Return a VT for a vector type with the same element type but
250
+ // double the number of elements.
251
+ MVT getDoubleNumVectorElementsVT() const {
252
+ MVT EltVT = getVectorElementType();
253
+ auto EltCnt = getVectorElementCount();
254
+ return MVT::getVectorVT(EltVT, EltCnt * 2);
255
+ }
256
+
257
/// Returns true if the given vector is a power of 2.
258
bool isPow2VectorType() const {
259
unsigned NElts = getVectorMinNumElements();
0 commit comments