9#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYASMPRINTER_H
10#define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYASMPRINTER_H
32 bool signaturesEmitted =
false;
36 std::unique_ptr<MCStreamer> Streamer)
38 MRI(nullptr), MFI(nullptr) {}
41 return "WebAssembly Assembly Printer";
52 MRI = &
MF.getRegInfo();
61 void emitEndOfAsmFile(
Module &M)
override;
62 void EmitProducerInfo(
Module &M);
63 void EmitTargetFeatures(
Module &M);
64 void EmitFunctionAttributes(
Module &M);
67 void emitJumpTableInfo()
override;
69 void emitFunctionBodyStart()
override;
76 MVT getRegType(
unsigned RegNo)
const;
81 bool &InvokeDetected);
83 void emitDecls(
const Module &M);
#define LLVM_LIBRARY_VISIBILITY
static void emitConstantPool(MCStreamer &Streamer, MCSection *Section, ConstantPool &CP)
This header defines various interfaces for pass management in LLVM.
ModuleAnalysisManager MAM
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.
TargetMachine & TM
Target machine description.
MachineFunction * MF
The current machine function.
AsmPrinter(TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer, char &ID=AsmPrinter::ID)
bool runOnMachineFunction(MachineFunction &MF) override
Emit the specified function out to the OutStreamer.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
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.
A set of analyses that are preserved following a run of a transformation pass.
Represent a constant reference to a string, i.e.
Primary interface to the complete machine description for the target machine.
PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM)
PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM)
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
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.
Pass manager infrastructure for declaring and invalidating analyses.
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< MachineFunction > MachineFunctionAnalysisManager
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
AnalysisManager< Module > ModuleAnalysisManager
Convenience typedef for the Module analysis manager.
Implement std::hash so that hash_code can be used in STL containers.
A CRTP mix-in for passes that should not be skipped.