9#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
10#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
37 assert(TS &&
"do not have a target streamer");
56 class AssociatedDataAreaTable {
58 using DisplacementTable =
59 MapVector<std::pair<const MCSymbol *, unsigned>,
uint32_t>;
65 DisplacementTable Displacements;
72 AssociatedDataAreaTable(
uint64_t PointerSize) : PointerSize(PointerSize) {}
77 uint32_t insert(
const MachineOperand MO);
85 uint32_t insert(
const MCSymbol *Sym,
unsigned SlotKind);
89 const DisplacementTable &getTable()
const {
return Displacements; }
91 uint32_t getNextDisplacement()
const {
return NextDisplacement; }
94 AssociatedDataAreaTable ADATable;
96 void emitPPA1(MCSymbol *FnEndSym);
98 void emitADASection();
99 void emitIDRLSection(
Module &M);
104 CurrentFnEPMarkerSym(nullptr), PPA2Sym(nullptr),
111 void emitEndOfAsmFile(
Module &M)
override;
130 void emitFunctionEntryLabel()
override;
131 void emitFunctionBodyEnd()
override;
132 void emitStartOfAsmFile(
Module &M)
override;
135 void emitCallInformation(CallType CT);
142 void emitAttributes(
Module &M);
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
#define LLVM_LIBRARY_VISIBILITY
Machine Check Debug Module
TargetMachine & TM
Target machine description.
void emitXRayTable()
Emit a table with all XRay instrumentation points.
MachineFunction * MF
The current machine function.
bool doInitialization(Module &M) override
Set up the AsmPrinter when we are working on a new module.
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.
std::unique_ptr< MCStreamer > OutStreamer
This is the MCStreamer object for the file we are generating.
unsigned getPointerSize() const
Return the pointer size from the TargetMachine.
Streaming machine code generation interface.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Target specific streamer interface.
Abstract base class for all machine specific constantpool value subclasses.
Representation of each machine instruction.
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.
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
bool runOnMachineFunction(MachineFunction &MF) override
Emit the specified function out to the OutStreamer.
SystemZAsmPrinter(TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer)
bool doInitialization(Module &M) override
Set up the AsmPrinter when we are working on a new module.
Primary interface to the complete machine description for the target machine.
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.