[clang] [llvm] [HLSL][SPIRV]Add SPIRV generation for HLSL dot (PR #104656)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 12:27:14 PDT 2024


================
@@ -363,9 +382,13 @@ static bool expandIntrinsic(Function &F, CallInst *Orig) {
   case Intrinsic::dx_normalize:
     Result = expandNormalizeIntrinsic(Orig);
     break;
+  case Intrinsic::dx_fdot:
+    Result =
+        expandFloatDotIntrinsic(Orig, Orig->getOperand(0), Orig->getOperand(1));
----------------
farzonl wrote:

you are right that is a little weird maybe, a function overload would be better? Its a nitpick so feel free to ignore.

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


More information about the llvm-commits mailing list