X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTarget%2FWebAssembly%2FInstPrinter%2FWebAssemblyInstPrinter.h;h=20569da0b110d5871a525511e7624f60cebf41bd;hp=4c54a525577de1c757a341f594e7837e521385aa;hb=001f3417071d4d6b08cc0dcd1dc03f5f90fe7623;hpb=b18e7bdac85c58f5b3389e579b3abe9e78ad3f9a diff --git a/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.h b/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.h index 4c54a525577..20569da0b11 100644 --- a/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.h +++ b/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.h @@ -17,13 +17,14 @@ #include "llvm/MC/MCInstPrinter.h" #include "llvm/Support/raw_ostream.h" +#include "llvm/CodeGen/MachineValueType.h" namespace llvm { class MCOperand; class MCSubtargetInfo; -class WebAssemblyInstPrinter : public MCInstPrinter { +class WebAssemblyInstPrinter final : public MCInstPrinter { public: WebAssemblyInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI); @@ -32,11 +33,20 @@ public: void printInst(const MCInst *MI, raw_ostream &OS, StringRef Annot, const MCSubtargetInfo &STI) override; + // Used by tblegen code. + void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O); + // Autogenerated by tblgen. void printInstruction(const MCInst *MI, raw_ostream &O); static const char *getRegisterName(unsigned RegNo); }; +namespace WebAssembly { + +const char *TypeToString(MVT Ty); + +} // end namespace WebAssembly + } // end namespace llvm #endif