44 X(
"erlang",
"erlang-compatible garbage collector");
59 for (GCModuleInfo::FuncInfoVec::iterator FI = Info.
funcinfo_begin(),
103 unsigned RegisteredArgs = IntPtrSize == 4 ? 5 : 6;
119 OS.
AddComment(
"stack index (offset / wordsize)");
120 AP.
EmitInt16(LI->StackOffset / IntPtrSize);
virtual void AddComment(const Twine &T)
Add a textual command.
std::unique_ptr< MCStreamer > OutStreamer
This is the MCStreamer object for the file we are generating.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
A Module instance is used to store all the information related to an LLVM module. ...
MCSectionELF * getELFSection(StringRef Section, unsigned Type, unsigned Flags)
void EmitLabelPlusOffset(const MCSymbol *Label, uint64_t Offset, unsigned Size, bool IsSectionRelative=false) const
Emit something like ".long Label+Offset" where the size in bytes of the directive is specified by Siz...
void linkErlangGCPrinter()
Creates an erlang-compatible metadata printer.
std::vector< GCPoint >::iterator iterator
An analysis pass which caches information about the entire Module.
const std::string & getName() const
Return the name of the GC strategy.
void EmitInt16(int Value) const
Emit a short directive and value.
MCContext & getContext() const
Streaming machine code generation interface.
virtual void SwitchSection(MCSection *Section, const MCExpr *Subsection=nullptr)
Set the current section where code is being emitted to Section.
GCStrategy & getStrategy()
getStrategy - Return the GC strategy for the function.
TargetMachine & TM
Target machine description.
This class is intended to be used as a driving class for all asm writers.
uint64_t getFrameSize() const
getFrameSize/setFrameSize - Records the function's frame size.
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang","erlang-compatible garbage collector")
FuncInfoVec::iterator funcinfo_begin()
size_t live_size(const iterator &p) const
void EmitAlignment(unsigned NumBits, const GlobalObject *GO=nullptr) const
Emit an alignment directive to the specified power of two boundary.
const DataLayout * getDataLayout() const
Deprecated in 3.7, will be removed in 3.8.
live_iterator live_begin(const iterator &p)
live_begin/live_end - Iterators for live roots at a given safe point.
FuncInfoVec::iterator funcinfo_end()
iterator begin()
begin/end - Iterators for safe points.
const TargetLoweringObjectFile & getObjFileLowering() const
Return information about object file lowering.
const Function & getFunction() const
getFunction - Return the function to which this metadata applies.
live_iterator live_end(const iterator &p)
Garbage collection metadata for a single function.
unsigned getPointerSize(unsigned AS=0) const
Layout pointer size FIXME: The defaults need to be removed once all of the backends/clients are updat...
std::vector< GCRoot >::const_iterator live_iterator
A static registration template.