14 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_INSTPRINTER_WEBASSEMBLYINSTPRINTER_H 15 #define LLVM_LIB_TARGET_WEBASSEMBLY_INSTPRINTER_WEBASSEMBLYINSTPRINTER_H 24 class MCSubtargetInfo;
27 uint64_t ControlFlowCounter = 0;
28 uint64_t EHPadStackCounter = 0;
32 enum EHInstKind { TRY, CATCH, END_TRY };
33 EHInstKind LastSeenEHInst = END_TRY;
56 namespace WebAssembly {
void printWebAssemblySignatureOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O)
void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O)
This class represents lattice values for constants.
void printWebAssemblyP2AlignOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O)
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O)
void printRegName(raw_ostream &OS, unsigned RegNo) const override
Print the assembler register name.
const char * anyTypeToString(unsigned Ty)
WebAssemblyInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII, const MCRegisterInfo &MRI)
std::string signatureToString(const wasm::WasmSignature *Sig)
void printBrList(const MCInst *MI, unsigned OpNo, raw_ostream &O)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Instances of this class represent a single low-level machine instruction.
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
This class is intended to be used as a base class for asm properties and features specific to the tar...
void printInst(const MCInst *MI, uint64_t Address, StringRef Annot, const MCSubtargetInfo &STI, raw_ostream &OS) override
Print the specified MCInst to the specified raw_ostream.
std::string typeListToString(ArrayRef< wasm::ValType > List)
Interface to description of machine instruction set.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
Generic base class for all target subtargets.
This class implements an extremely fast bulk output stream that can only output to a stream...
static const char * getRegisterName(unsigned RegNo)
StringRef - Represent a constant reference to a string, i.e.
const char * typeToString(wasm::ValType Ty)
const MCRegisterInfo & MRI