[llvm] [DAG] Adding MVT::widenIntegerElementType to widen both Scalar and Vectors of integer type. (PR #207148)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 2 10:07:10 PDT 2026
================
@@ -272,6 +272,20 @@ namespace llvm {
return MVT::getVectorVT(EltVT, EltCnt * 2);
}
+ // Return a VT for an Integer or vetor of integer type doubled in size
+ MVT widenIntegerElementType() const {
+ const MVT BaseTy = getScalarType();
----------------
RKSimon wrote:
```suggestion
MVT BaseTy = getScalarType();
```
https://github.com/llvm/llvm-project/pull/207148
More information about the llvm-commits
mailing list