9#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
10#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
36 assert(TS &&
"do not have a target streamer");
55 class AssociatedDataAreaTable {
57 using DisplacementTable =
58 MapVector<std::pair<const MCSymbol *, unsigned>,
uint32_t>;
64 DisplacementTable Displacements;
71 AssociatedDataAreaTable(
uint64_t PointerSize) : PointerSize(PointerSize) {}
76 uint32_t insert(
const MachineOperand MO);
84 uint32_t insert(
const MCSymbol *Sym,
unsigned SlotKind);
88 const DisplacementTable &getTable()
const {
return Displacements; }
90 uint32_t getNextDisplacement()
const {
return NextDisplacement; }
93 AssociatedDataAreaTable ADATable;
98 DenseMap<const GlobalObject *, SmallVector<const GlobalAlias *, 1>>
106 MCSymbol *PersonalityRoutine =
nullptr;
108 int64_t OffsetFPR = 0;
109 int64_t OffsetVR = 0;
110 uint64_t CallFrameSize = 0;
111 unsigned SizeOfFnParams = 0;
112 uint32_t FrameAndFPROffset;
113 uint32_t FrameAndVROffset;
114 uint16_t SavedGPRMask = 0;
115 uint16_t SavedFPRMask = 0;
116 uint8_t SavedVRMask = 0;
117 uint8_t FrameReg = 0;
118 uint8_t AllocaReg = 0;
119 bool IsVarArg =
false;
120 bool HasStackProtector =
false;
122 SmallVector<PPA1Info, 0> DeferredPPA1;
124 void calculatePPA1();
125 void emitPPA1(PPA1Info &Info);
127 void emitADASection();
128 void emitIDRLSection(
Module &M);
140 bool IsCtor)
override;
141 void emitEndOfAsmFile(
Module &M)
override;
156 bool doInitialization(
Module &M)
override;
157 void emitFunctionEntryLabel()
override;
158 void emitFunctionBodyEnd()
override;
159 void emitStartOfAsmFile(
Module &M)
override;
166 void emitCallInformation(CallType CT);
173 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.