[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 11:35:30 PDT 2024
================
@@ -2157,6 +2221,16 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
break;
case Intrinsic::spv_thread_id:
return selectSpvThreadId(ResVReg, ResType, I);
+ case Intrinsic::spv_fdot:
+ return BuildMI(BB, I, I.getDebugLoc(), TII.get(SPIRV::OpDot))
----------------
farzonl wrote:
no i'm saying create a function so that its cleaner to asserts on the number of operands and the validity of those operands.
https://github.com/llvm/llvm-project/pull/104656
More information about the llvm-commits
mailing list