LLVM 19.0.0git
Public Member Functions | List of all members
llvm::AsmPrinterHandler Class Referenceabstract

Collects and handles AsmPrinter objects required to build debug or EH information. More...

#include "llvm/CodeGen/AsmPrinterHandler.h"

Inheritance diagram for llvm::AsmPrinterHandler:
Inheritance graph
[legend]

Public Member Functions

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.
 

Detailed Description

Collects and handles AsmPrinter objects required to build debug or EH information.

Definition at line 33 of file AsmPrinterHandler.h.

Constructor & Destructor Documentation

◆ ~AsmPrinterHandler()

AsmPrinterHandler::~AsmPrinterHandler ( )
virtualdefault

Pin vtable to this file.

Member Function Documentation

◆ beginBasicBlockSection()

virtual void llvm::AsmPrinterHandler::beginBasicBlockSection ( const MachineBasicBlock MBB)
inlinevirtual

Process the beginning of a new basic-block-section within a function.

Always called immediately after beginFunction for the first basic-block. When basic-block-sections are enabled, called before the first block of each such section.

Reimplemented in llvm::DebugHandlerBase, and llvm::DwarfCFIException.

Definition at line 62 of file AsmPrinterHandler.h.

◆ beginFunclet()

virtual void llvm::AsmPrinterHandler::beginFunclet ( const MachineBasicBlock MBB,
MCSymbol Sym = nullptr 
)
inlinevirtual

Emit target-specific EH funclet machinery.

Reimplemented in llvm::WinException.

Definition at line 72 of file AsmPrinterHandler.h.

◆ beginFunction()

virtual void llvm::AsmPrinterHandler::beginFunction ( const MachineFunction MF)
pure virtual

Gather pre-function debug information.

Every beginFunction(MF) call should be followed by an endFunction(MF) call.

Implemented in llvm::DebugHandlerBase, llvm::DwarfCFIException, llvm::ARMException, llvm::AIXException, llvm::PseudoProbeHandler, llvm::WasmException, llvm::WinCFGuard, and llvm::WinException.

◆ beginInstruction()

virtual void llvm::AsmPrinterHandler::beginInstruction ( const MachineInstr MI)
pure virtual

◆ beginModule()

virtual void llvm::AsmPrinterHandler::beginModule ( Module M)
inlinevirtual

Reimplemented in llvm::DebugHandlerBase, llvm::CodeViewDebug, and llvm::DwarfDebug.

Definition at line 41 of file AsmPrinterHandler.h.

◆ endBasicBlockSection()

virtual void llvm::AsmPrinterHandler::endBasicBlockSection ( const MachineBasicBlock MBB)
inlinevirtual

Process the end of a basic-block-section within a function.

When basic-block-sections are enabled, called after the last block in each such section (including the last section in the function). When basic-block-sections are disabled, called at the end of a function, immediately prior to markFunctionEnd.

Reimplemented in llvm::DebugHandlerBase, and llvm::DwarfCFIException.

Definition at line 69 of file AsmPrinterHandler.h.

◆ endFunclet()

virtual void llvm::AsmPrinterHandler::endFunclet ( )
inlinevirtual

Reimplemented in llvm::WinException.

Definition at line 74 of file AsmPrinterHandler.h.

◆ endFunction()

virtual void llvm::AsmPrinterHandler::endFunction ( const MachineFunction MF)
pure virtual

◆ endInstruction()

virtual void llvm::AsmPrinterHandler::endInstruction ( )
pure virtual

Process end of an instruction.

Implemented in llvm::DebugHandlerBase, llvm::EHStreamer, llvm::PseudoProbeHandler, and llvm::WinCFGuard.

◆ endModule()

virtual void llvm::AsmPrinterHandler::endModule ( )
pure virtual

◆ markFunctionEnd()

void AsmPrinterHandler::markFunctionEnd ( )
virtual

Reimplemented in llvm::ARMException, and llvm::WinException.

Definition at line 4188 of file AsmPrinter.cpp.

◆ setSymbolSize()

virtual void llvm::AsmPrinterHandler::setSymbolSize ( const MCSymbol Sym,
uint64_t  Size 
)
pure virtual

For symbols that have a size designated (e.g.

common symbols), this tracks that size.

Implemented in llvm::CodeViewDebug, llvm::DwarfDebug, llvm::EHStreamer, llvm::PseudoProbeHandler, llvm::WinCFGuard, and llvm::BTFDebug.


The documentation for this class was generated from the following files: