LLVM 18.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. | |
void | endModule () override |
Emit all sections that should come after the content. | |
void | beginFunction (const MachineFunction *MF) override |
Gather pre-function debug information. | |
void | endFunction (const MachineFunction *MF) override |
Gather post-function debug information. | |
void | beginInstruction (const MachineInstr *MI) override |
Process beginning of an instruction. | |
void | endInstruction () override |
Process end of an instruction. | |
![]() | |
virtual | ~AsmPrinterHandler () |
Pin vtable to this file. | |
virtual void | setSymbolSize (const MCSymbol *Sym, uint64_t Size)=0 |
For symbols that have a size designated (e.g. | |
virtual void | beginModule (Module *M) |
virtual void | endModule ()=0 |
Emit all sections that should come after the content. | |
virtual void | beginFunction (const MachineFunction *MF)=0 |
Gather pre-function debug information. | |
virtual void | markFunctionEnd () |
virtual void | endFunction (const MachineFunction *MF)=0 |
Gather post-function debug information. | |
virtual void | beginBasicBlockSection (const MachineBasicBlock &MBB) |
Process the beginning of a new basic-block-section within a function. | |
virtual void | endBasicBlockSection (const MachineBasicBlock &MBB) |
Process the end of a basic-block-section within a function. | |
virtual void | beginFunclet (const MachineBasicBlock &MBB, MCSymbol *Sym=nullptr) |
Emit target-specific EH funclet machinery. | |
virtual void | endFunclet () |
virtual void | beginInstruction (const MachineInstr *MI)=0 |
Process beginning of an instruction. | |
virtual void | endInstruction ()=0 |
Process end of an instruction. | |
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 assert(), llvm::Block, llvm::AsmPrinter::CurrentFnSym, llvm::SmallVectorImpl< T >::emplace_back(), llvm::EnableFSDiscriminator, llvm::PseudoProbeDwarfDiscriminator::extractProbeIndex(), llvm::GlobalValue::getGUID(), Name, llvm::AsmPrinter::OutStreamer, and llvm::reverse().
Referenced by llvm::AsmPrinter::emitPseudoProbe().
|
inlineoverridevirtual |
Gather post-function debug information.
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.