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;
99 DenseMap<const GlobalObject *, SmallVector<const GlobalAlias *, 1>>
102 void emitPPA1(MCSymbol *FnEndSym);
104 void emitADASection();
105 void emitIDRLSection(
Module &M);
110 CurrentFnEPMarkerSym(nullptr), PPA2Sym(nullptr),
118 bool IsCtor)
override;
119 void emitEndOfAsmFile(
Module &M)
override;
134 bool doInitialization(
Module &M)
override;
135 void emitFunctionEntryLabel()
override;
136 void emitFunctionBodyEnd()
override;
137 void emitStartOfAsmFile(
Module &M)
override;
144 void emitCallInformation(CallType CT);
151 void emitAttributes(
Module &M);
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
#define LLVM_LIBRARY_VISIBILITY
Machine Check Debug Module
static SDValue lowerConstant(SDValue Op, SelectionDAG &DAG, const RISCVSubtarget &Subtarget)
TargetMachine & TM
Target machine description.
void emitXRayTable()
Emit a table with all XRay instrumentation points.
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.
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.
This is an important base class in LLVM.
A parsed version of the target data layout string in and methods for querying it.
Base class for the full range of assembler expressions which are needed for parsing.
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)
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.