[llvm] [DAG] Add MVT::widenIntegerElementType and MVT::widenIntegerVectorElementType (PR #206850)

Chirag Patel via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 05:42:11 PDT 2026


================
@@ -265,6 +265,28 @@ namespace llvm {
       return MVT::getVectorVT(EltVT, EltCnt * 2);
     }
 
+    // Return a VT for an Integer type doubled in size
+    MVT widenIntegerElementType() const {
+      assert(isScalarInteger() && "Not an integer MVT!");
----------------
ChiragPatel8 wrote:

To Clarify, are you asking for SINGLE widenIntegerElementType function which can handle both, scalars AND vectors ? Additionally, using the changes from #206726 to change underlying types?

https://github.com/llvm/llvm-project/pull/206850


More information about the llvm-commits mailing list