LLVM
15.0.0git
|
#include "CodeGen/AsmPrinter/PseudoProbePrinter.h"
Public Member Functions | |
PseudoProbeHandler (AsmPrinter *A) | |
~PseudoProbeHandler () override | |
void | emitPseudoProbe (uint64_t Guid, uint64_t Index, uint64_t Type, uint64_t Attr, const DILocation *DebugLoc) |
void | setSymbolSize (const MCSymbol *Sym, uint64_t Size) override |
For symbols that have a size designated (e.g. More... | |
void | endModule () override |
Emit all sections that should come after the content. More... | |
void | beginFunction (const MachineFunction *MF) override |
Gather pre-function debug information. More... | |
void | endFunction (const MachineFunction *MF) override |
Gather post-function debug information. More... | |
void | beginInstruction (const MachineInstr *MI) override |
Process beginning of an instruction. More... | |
void | endInstruction () override |
Process end of an instruction. More... | |
![]() | |
virtual | ~AsmPrinterHandler () |
Pin vtable to this file. More... | |
virtual void | beginModule (Module *M) |
virtual void | markFunctionEnd () |
virtual void | beginFragment (const MachineBasicBlock *MBB, ExceptionSymbolProvider ESP) |
virtual void | endFragment () |
virtual void | beginFunclet (const MachineBasicBlock &MBB, MCSymbol *Sym=nullptr) |
Emit target-specific EH funclet machinery. More... | |
virtual void | endFunclet () |
virtual void | beginBasicBlock (const MachineBasicBlock &MBB) |
Process beginning of a basic block during basic block sections. More... | |
virtual void | endBasicBlock (const MachineBasicBlock &MBB) |
Process end of a basic block during basic block sections. More... | |
Definition at line 24 of file PseudoProbePrinter.h.
|
inline |
Definition at line 31 of file PseudoProbePrinter.h.
|
overridedefault |
|
inlineoverridevirtual |
Gather pre-function debug information.
Every beginFunction(MF) call should be followed by an endFunction(MF) call.
Implements llvm::AsmPrinterHandler.
Definition at line 40 of file PseudoProbePrinter.h.
|
inlineoverridevirtual |
Process beginning of an instruction.
Implements llvm::AsmPrinterHandler.
Definition at line 42 of file PseudoProbePrinter.h.
void PseudoProbeHandler::emitPseudoProbe | ( | uint64_t | Guid, |
uint64_t | Index, | ||
uint64_t | Type, | ||
uint64_t | Attr, | ||
const DILocation * | DebugLoc | ||
) |
Definition at line 25 of file PseudoProbePrinter.cpp.
References llvm::SmallVectorImpl< T >::emplace_back(), llvm::PseudoProbeDwarfDiscriminator::extractProbeIndex(), llvm::GlobalValue::getGUID(), llvm::DIScope::getName(), llvm::DIScope::getScope(), llvm::AsmPrinter::OutStreamer, and llvm::reverse().
Referenced by llvm::AsmPrinter::emitPseudoProbe().
|
inlineoverridevirtual |
Gather post-function debug information.
Please note that some AsmPrinter implementations may not call beginFunction at all.
Implements llvm::AsmPrinterHandler.
Definition at line 41 of file PseudoProbePrinter.h.
|
inlineoverridevirtual |
Process end of an instruction.
Implements llvm::AsmPrinterHandler.
Definition at line 43 of file PseudoProbePrinter.h.
|
inlineoverridevirtual |
Emit all sections that should come after the content.
Implements llvm::AsmPrinterHandler.
Definition at line 39 of file PseudoProbePrinter.h.
|
inlineoverridevirtual |
For symbols that have a size designated (e.g.
common symbols), this tracks that size.
Implements llvm::AsmPrinterHandler.
Definition at line 38 of file PseudoProbePrinter.h.