[llvm] [NFC][Scalarizer][TargetTransformInfo] Add `isVectorIntrinsicWithOverloadTypeAtArg` api (PR #114849)
Finn Plummer via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 11:09:45 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);
----------------
inbelic wrote:
Could also do with an `std::optional` pointer here, not sure on what is preferred.
https://github.com/llvm/llvm-project/pull/114849
More information about the llvm-commits
mailing list