[clang] [llvm] [HLSL][SPIRV]Add SPIRV generation for HLSL dot (PR #104656)
Greg Roth via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 19 11:33:09 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))
----------------
pow2clk wrote:
I don't mind creating a float function to expand the fdot. I don't think you're suggesting that I have one call for float and integer as that's the opposite of what you suggested [here](https://github.com/llvm/llvm-project/pull/102872#discussion_r1714053193). Are the checks you're referring to the asserts?
https://github.com/llvm/llvm-project/pull/104656
More information about the cfe-commits
mailing list