9#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYASMPRINTER_H
10#define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYASMPRINTER_H
19class WebAssemblyTargetStreamer;
25 bool signaturesEmitted =
false;
29 std::unique_ptr<MCStreamer> Streamer)
34 return "WebAssembly Assembly Printer";
47 return AsmPrinter::runOnMachineFunction(MF);
54 void emitEndOfAsmFile(
Module &M)
override;
55 void EmitProducerInfo(
Module &M);
56 void EmitTargetFeatures(
Module &M);
57 void EmitFunctionAttributes(
Module &M);
60 void emitJumpTableInfo()
override;
62 void emitFunctionBodyStart()
override;
69 MVT getRegType(
unsigned RegNo)
const;
74 bool &InvokeDetected);
76 void emitDecls(
const Module &M);
unsigned const MachineRegisterInfo * MRI
#define LLVM_LIBRARY_VISIBILITY
static void emitConstantPool(MCStreamer &Streamer, MCSection *Section, ConstantPool &CP)
static yaml::StringValue regToString(Register Reg, const TargetRegisterInfo &TRI)
This file declares WebAssembly-specific per-machine-function information.
This file declares the WebAssembly-specific subclass of TargetSubtarget.
This class is intended to be used as a driving class for all asm writers.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
Ty * getInfo()
getInfo - Keep track of various per-function pieces of information for backends that would like to do...
Representation of each machine instruction.
MachineOperand class - Representation of each machine instruction operand.
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
A Module instance is used to store all the information related to an LLVM module.
StringRef - Represent a constant reference to a string, i.e.
Primary interface to the complete machine description for the target machine.
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
const WebAssemblySubtarget & getSubtarget() const
WebAssemblyAsmPrinter(TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer)
bool runOnMachineFunction(MachineFunction &MF) override
Emit the specified function out to the OutStreamer.
This class is derived from MachineFunctionInfo and contains private WebAssembly-specific information ...
WebAssembly-specific streamer interface, to implement support WebAssembly-specific assembly directive...
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.