[llvm] [AMDGPU] Add VDSDIR instructions for GFX12 (PR #75197)
    Carl Ritson via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Dec 13 22:57:42 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);
+  }
+}
+
----------------
perlfu wrote:
Yes zero handling should match IMO.
https://github.com/llvm/llvm-project/pull/75197
    
    
More information about the llvm-commits
mailing list