[llvm] 04c4cf4 - Revert "[NFC][AMDGPU] Do not flush after printing every instruction (#95237)"

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 06:24:27 PDT 2024


Author: pvanhout
Date: 2024-06-12T15:24:21+02:00
New Revision: 04c4cf45faea421a20ca7a3a01c1cdbca4f45910

URL: https://github.com/llvm/llvm-project/commit/04c4cf45faea421a20ca7a3a01c1cdbca4f45910
DIFF: https://github.com/llvm/llvm-project/commit/04c4cf45faea421a20ca7a3a01c1cdbca4f45910.diff

LOG: Revert "[NFC][AMDGPU] Do not flush after printing every instruction (#95237)"

This reverts commit ad9fe3b2a949fb3379e0a1bafbcd2ca81f5fa414.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
    llvm/lib/Target/AMDGPU/MCTargetDesc/R600InstPrinter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
index 227b7383e16d5..883b6c4407fe5 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
@@ -43,6 +43,7 @@ void AMDGPUInstPrinter::printRegName(raw_ostream &OS, MCRegister Reg) const {
 void AMDGPUInstPrinter::printInst(const MCInst *MI, uint64_t Address,
                                   StringRef Annot, const MCSubtargetInfo &STI,
                                   raw_ostream &OS) {
+  OS.flush();
   printInstruction(MI, Address, STI, OS);
   printAnnotation(OS, Annot);
 }

diff  --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/R600InstPrinter.cpp b/llvm/lib/Target/AMDGPU/MCTargetDesc/R600InstPrinter.cpp
index 56a23e26b8d9f..22d0594e2b86a 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/R600InstPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/R600InstPrinter.cpp
@@ -21,6 +21,7 @@ using namespace llvm;
 void R600InstPrinter::printInst(const MCInst *MI, uint64_t Address,
                                 StringRef Annot, const MCSubtargetInfo &STI,
                                 raw_ostream &O) {
+  O.flush();
   printInstruction(MI, Address, O);
   printAnnotation(O, Annot);
 }


        


More information about the llvm-commits mailing list