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

Greg Roth via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 12:31:06 PST 2024


================
@@ -25,6 +25,14 @@ bool DirectXTTIImpl::isTargetIntrinsicWithScalarOpAtArg(Intrinsic::ID ID,
   }
 }
 
+bool DirectXTTIImpl::isVectorIntrinsicWithOverloadTypeAtArg(Intrinsic::ID ID,
+                                                            int ScalarOpdIdx) {
+  switch (ID) {
+  default:
+    return ScalarOpdIdx == -1;
+  }
----------------
pow2clk wrote:

In case anyone else wonders why the switch statement is here, observe the follow-on in #114847

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


More information about the llvm-commits mailing list