[llvm] [NFC][Scalarizer][TargetTransformInfo] Add `isVectorIntrinsicWithOverloadTypeAtArg` api (PR #114849)

Chris B via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 14:41:19 PST 2024


================
@@ -152,7 +152,8 @@ bool isVectorIntrinsicWithScalarOpAtArg(Intrinsic::ID ID,
 
 /// Identifies if the vector form of the intrinsic is overloaded on the type of
 /// the operand at index \p OpdIdx, or on the return type if \p OpdIdx is -1.
-bool isVectorIntrinsicWithOverloadTypeAtArg(Intrinsic::ID ID, int OpdIdx);
+bool isVectorIntrinsicWithOverloadTypeAtArg(
+    Intrinsic::ID ID, int OpdIdx, const TargetTransformInfo *TTI = nullptr);
----------------
llvm-beanz wrote:

I don't think this should be optional. In any case where this argument matters it would be a bug to not pass it.

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


More information about the llvm-commits mailing list