[clang] [llvm] [HLSL][SPIRV][DXIL] Implement `dot4add_i8packed` intrinsic (PR #113623)

Greg Roth via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 1 14:59:20 PDT 2024


================
@@ -2527,6 +2640,11 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
   case Intrinsic::spv_udot:
   case Intrinsic::spv_sdot:
     return selectIntegerDot(ResVReg, ResType, I);
+  case Intrinsic::spv_dot4add_i8packed:
+    if (STI.canUseExtension(SPIRV::Extension::SPV_KHR_integer_dot_product) ||
----------------
pow2clk wrote:

Nice to have this option. Now that we do, it would be nice to update the regular dot product to use this in the integer cases, but that can be left for a different change.

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


More information about the cfe-commits mailing list