[llvm] [VPlan] Support struct return types for widen intrinsics (NFC). (PR #165218)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 6 06:36:29 PST 2025


================
@@ -164,6 +164,11 @@ LLVM_ABI bool
 isVectorIntrinsicWithOverloadTypeAtArg(Intrinsic::ID ID, int OpdIdx,
                                        const TargetTransformInfo *TTI);
 
+/// Identifies if the vector form of the intrinsic that returns a struct has
+/// a scalar element at the struct element index \p RetIdx.
+LLVM_ABI bool isVectorIntrinsicWithStructReturnScalarAtField(Intrinsic::ID ID,
----------------
MacDue wrote:

You may need to move this to `llvm/include/llvm/IR/VectorTypeUtils.h` (same for the impl) to avoid linker issues. 

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


More information about the llvm-commits mailing list