43 X(
"erlang",
"erlang-compatible garbage collector");
56 for (GCModuleInfo::FuncInfoVec::iterator FI = Info.
funcinfo_begin(),
100 unsigned RegisteredArgs = IntPtrSize == 4 ? 5 : 6;
116 OS.
AddComment(
"stack index (offset / wordsize)");
117 AP.
emitInt16(LI->StackOffset / IntPtrSize);
const TargetLoweringObjectFile & getObjFileLowering() const
Return information about object file lowering.
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
size_t live_size(const iterator &p) const
std::unique_ptr< MCStreamer > OutStreamer
This is the MCStreamer object for the file we are generating.
This class represents lattice values for constants.
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. ...
void linkErlangGCPrinter()
Creates an erlang-compatible metadata printer.
const DataLayout & getDataLayout() const
Get the data layout for the module's target platform.
An analysis pass which caches information about the entire Module.
virtual void AddComment(const Twine &T, bool EOL=true)
Add a textual comment.
const std::string & getName() const
Return the name of the GC strategy.
Analysis containing CSE Info
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...
Streaming machine code generation interface.
const Function & getFunction() const
getFunction - Return the function to which this metadata applies.
unsigned getPointerSize(unsigned AS=0) const
Layout pointer size FIXME: The defaults need to be removed once all of the backends/clients are updat...
virtual void SwitchSection(MCSection *Section, const MCExpr *Subsection=nullptr)
Set the current section where code is being emitted to Section.
void EmitAlignment(unsigned NumBits, const GlobalObject *GV=nullptr) const
Emit an alignment directive to the specified power of two boundary.
GCStrategy & getStrategy()
getStrategy - Return the GC strategy for the function.
This class is intended to be used as a driving class for all asm writers.
MCContext & getContext() const
FuncInfoVec::iterator funcinfo_begin()
live_iterator live_begin(const iterator &p)
live_begin/live_end - Iterators for live roots at a given safe point.
Module.h This file contains the declarations for the Module class.
FuncInfoVec::iterator funcinfo_end()
iterator begin()
begin/end - Iterators for safe points.
std::vector< GCPoint >::iterator iterator
uint64_t getFrameSize() const
getFrameSize/setFrameSize - Records the function's frame size.
MCSectionELF * getELFSection(const Twine &Section, unsigned Type, unsigned Flags)
std::vector< GCRoot >::const_iterator live_iterator
live_iterator live_end(const iterator &p)
Garbage collection metadata for a single function.
A static registration template.
void emitInt16(int Value) const
Emit a short directive and value.