15 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DEBUGHANDLERBASE_H
16 #define LLVM_LIB_CODEGEN_ASMPRINTER_DEBUGHANDLERBASE_H
26 class MachineModuleInfo;
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Collects and handles AsmPrinter objects required to build debug or EH information.
const MachineInstr * CurMI
If nonnull, stores the current machine instruction we're processing.
DebugLoc PrevInstLoc
Previous instruction's location information.
DbgValueHistoryMap DbgValues
History of DBG_VALUE and clobber instructions for each user variable.
void beginFunction(const MachineFunction *MF) override
Gather pre-function debug information.
Holds a subclass of DINode.
DebugHandlerBase(AsmPrinter *A)
void identifyScopeMarkers()
Indentify instructions that are marking the beginning of or ending of a scope.
DenseMap< const MachineInstr *, MCSymbol * > LabelsAfterInsn
Maps instruction with label emitted after instruction.
void requestLabelBeforeInsn(const MachineInstr *MI)
Ensure that a label will be emitted before MI.
static bool fragmentsOverlap(const DIExpression *P1, const DIExpression *P2)
Determine whether two variable fragments overlap.
const MachineBasicBlock * PrevInstBB
AsmPrinter * Asm
Target of debug info emission.
This class is intended to be used as a driving class for all asm writers.
DenseMap< const MachineInstr *, MCSymbol * > LabelsBeforeInsn
Maps instruction with label emitted before instruction.
void beginInstruction(const MachineInstr *MI) override
Process beginning of an instruction.
void endFunction(const MachineFunction *MF) override
Gather post-function debug information.
MCSymbol * getLabelAfterInsn(const MachineInstr *MI)
Return Label immediately following the instruction.
DebugLoc PrologEndLoc
This location indicates end of function prologue and beginning of function body.
void requestLabelAfterInsn(const MachineInstr *MI)
Ensure that a label will be emitted after MI.
Representation of each machine instruction.
LexicalScopes - This class provides interface to collect and use lexical scoping information from mac...
Base class for debug information backends.
void endInstruction() override
Process end of an instruction.
MCSymbol * getLabelBeforeInsn(const MachineInstr *MI)
Return Label preceding the instruction.
static int fragmentCmp(const DIExpression *P1, const DIExpression *P2)
Determine the relative position of the fragments described by P1 and P2.
MachineModuleInfo * MMI
Collected machine module information.
static uint64_t getBaseTypeSize(const DITypeRef TyRef)
If this type is derived from a base type then return base type size.
static GCRegistry::Add< ErlangGC > A("erlang","erlang-compatible garbage collector")
This class contains meta information specific to a module.