[clang] [llvm] [HLSL][SPIRV][DXIL] Implement `dot4add_i8packed` intrinsic (PR #113623)
Steven Perron via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 31 12:29:39 PDT 2024
================
@@ -1694,6 +1701,110 @@ bool SPIRVInstructionSelector::selectIntegerDot(Register ResVReg,
return Result;
}
+template <bool Signed>
+bool SPIRVInstructionSelector::selectDot4AddPacked(Register ResVReg,
+ const SPIRVType *ResType,
+ MachineInstr &I) const {
+ assert(I.getNumOperands() == 5);
+ assert(I.getOperand(2).isReg());
+ assert(I.getOperand(3).isReg());
+ assert(I.getOperand(4).isReg());
+ MachineBasicBlock &BB = *I.getParent();
+
+ Register Dot = MRI->createVirtualRegister(&SPIRV::IDRegClass);
+ bool Result = BuildMI(BB, I, I.getDebugLoc(), TII.get(SPIRV::OpDot))
----------------
s-perron wrote:
No you do not have to update the mlir code.
https://github.com/llvm/llvm-project/pull/113623
More information about the cfe-commits
mailing list