[llvm] [AMDGPU] Add VDSDIR instructions for GFX12 (PR #75197)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 00:29:06 PST 2023


================
@@ -631,6 +631,26 @@ void AMDGPUInstPrinter::printWaitVDST(const MCInst *MI, unsigned OpNo,
   printU4ImmDecOperand(MI, OpNo, O);
 }
 
+void AMDGPUInstPrinter::printWaitVAVDst(const MCInst *MI, unsigned OpNo,
+                                        const MCSubtargetInfo &STI,
+                                        raw_ostream &O) {
+  uint8_t Imm = MI->getOperand(OpNo).getImm();
+  if (Imm != 0) {
+    O << " wait_va_vdst:";
+    printU4ImmDecOperand(MI, OpNo, O);
+  }
+}
+
+void AMDGPUInstPrinter::printWaitVMVSrc(const MCInst *MI, unsigned OpNo,
+                                        const MCSubtargetInfo &STI,
+                                        raw_ostream &O) {
+  uint8_t Imm = MI->getOperand(OpNo).getImm();
+  if (Imm != 0) {
+    O << " wait_vm_vsrc:";
+    printU4ImmDecOperand(MI, OpNo, O);
+  }
+}
+
----------------
jayfoad wrote:

Yeah, that would make sense to me. @perlfu @Sisyph any comments?

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


More information about the llvm-commits mailing list