[llvm] Add EVT::changeVectorElementCount and MVT:changeVectorElementCount (PR #182266)

Chaitanya Koparkar via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 05:10:28 PST 2026


================
@@ -217,6 +217,13 @@ namespace llvm {
       return VecTy;
     }
 
+    /// Return a VT for a vector type whose attributes match ourselves with
+    /// the exception of the element count that is chosen by the caller.
+    MVT changeVectorElementCount(ElementCount EC) const {
----------------
ckoparkar wrote:

@RKSimon I didn't find a place to use this function, could you please suggest one?

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


More information about the llvm-commits mailing list