[llvm] [SandboxVec][LoadStoreVec] Support constant vectors of mixed types (PR #224890)

Anshil Gandhi via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 8 03:00:00 PDT 2026


================
@@ -79,6 +81,12 @@ template <typename T, size_t N> BndlRef(const T (&Arr)[N]) -> BndlRef<T>;
 
 class InstrMaps;
 
+/// \Returns the combined vector type for \p Bndl, even when the element types
+/// differ. For example: i8,i8,i16 will return <4 x i8>. Mixed float/integer
+/// bundles are combined into an integer vector.
+LLVM_ABI Type *getCombinedVectorTypeFor(ArrayRef<Value *> Bndl,
----------------
gandhi56 wrote:

I moved it because the element types were templated and I need `Context` to define the `IntegerType`.

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


More information about the llvm-commits mailing list