| |
| #ifndef AMDGPUINSTPRINTER_H |
| #define AMDGPUINSTPRINTER_H |
| |
| #include "llvm/ADT/StringRef.h" |
| #include "llvm/MC/MCInstPrinter.h" |
| #include "llvm/Support/raw_ostream.h" |
| |
| namespace llvm { |
| |
| class AMDGPUInstPrinter : public MCInstPrinter { |
| public: |
| AMDGPUInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, |
| const MCRegisterInfo &MRI) |
| : MCInstPrinter(MAI, MII, MRI) {} |
| |
| //Autogenerated by tblgen |
| void printInstruction(const MCInst *MI, raw_ostream &O); |
| static const char *getRegisterName(unsigned RegNo); |
| |
| // virtual void printRegName(raw_ostream &OS, unsigned RegNo) const; |
| virtual void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot); |
| |
| private: |
| void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O); |
| // void printUnsignedImm(const MCInst *MI, int OpNo, raw_ostream &O); |
| void printMemOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O); |
| |
| |
| }; |
| |
| } // End namespace llvm |
| |
| #endif // AMDGPUINSTRPRINTER_H |