9#ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
10#define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZASMPRINTER_H
34 assert(TS &&
"do not have a target streamer");
53 class AssociatedDataAreaTable {
55 using DisplacementTable =
56 MapVector<std::pair<const MCSymbol *, unsigned>,
uint32_t>;
62 DisplacementTable Displacements;
69 AssociatedDataAreaTable(
uint64_t PointerSize) : PointerSize(PointerSize) {}
74 uint32_t insert(
const MachineOperand MO);
82 uint32_t insert(
const MCSymbol *Sym,
unsigned SlotKind);
86 const DisplacementTable &getTable()
const {
return Displacements; }
88 uint32_t getNextDisplacement()
const {
return NextDisplacement; }
91 AssociatedDataAreaTable ADATable;
96 DenseMap<const GlobalObject *, SmallVector<const GlobalAlias *, 1>>
101 void emitADASection();
102 void emitIDRLSection(
Module &M);
114 bool IsCtor)
override;
115 void emitEndOfAsmFile(
Module &M)
override;
130 bool doInitialization(
Module &M)
override;
131 void emitFunctionEntryLabel()
override;
132 void emitFunctionBodyEnd()
override;
133 void emitStartOfAsmFile(
Module &M)
override;
140 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.
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.
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.