10 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYASMPRINTER_H
11 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYASMPRINTER_H
20 class WebAssemblyFunctionInfo;
21 class WebAssemblyTargetStreamer;
22 class WebAssemblyMCInstLower;
31 std::unique_ptr<MCStreamer> Streamer)
33 Subtarget(nullptr),
MRI(nullptr), MFI(nullptr) {}
36 return "WebAssembly Assembly Printer";
56 void EmitEndOfAsmFile(
Module &M)
override;
57 void EmitJumpTableInfo()
override;
58 void EmitConstantPool()
override;
59 void EmitFunctionBodyStart()
override;
60 void EmitFunctionBodyEnd()
override;
64 unsigned AsmVariant,
const char *ExtraCode,
67 unsigned AsmVariant,
const char *ExtraCode,
70 MVT getRegType(
unsigned RegNo)
const;
A Module instance is used to store all the information related to an LLVM module. ...
const WebAssemblySubtarget & getSubtarget() const
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
Base class for the full range of assembler expressions which are needed for parsing.
WebAssemblyAsmPrinter(TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer)
bool runOnMachineFunction(MachineFunction &MF) override
Emit the specified function out to the OutStreamer.
WebAssembly-specific streamer interface, to implement support WebAssembly-specific assembly directive...
unsigned const MachineRegisterInfo * MRI
This is an important base class in LLVM.
This class is intended to be used as a driving class for all asm writers.
Ty * getInfo()
getInfo - Keep track of various per-function pieces of information for backends that would like to do...
#define LLVM_LIBRARY_VISIBILITY
LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked into a shared library...
This file declares the WebAssembly-specific subclass of TargetSubtarget.
MachineOperand class - Representation of each machine instruction operand.
bool runOnMachineFunction(MachineFunction &MF) override
Emit the specified function out to the OutStreamer.
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
Representation of each machine instruction.
This class is derived from MachineFunctionInfo and contains private WebAssembly-specific information ...
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
This class implements an extremely fast bulk output stream that can only output to a stream...
Primary interface to the complete machine description for the target machine.
StringRef - Represent a constant reference to a string, i.e.