LLVM 20.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 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 ()
 

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::DwarfCFIException.

Definition at line 58 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 68 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::DwarfCFIException, llvm::ARMException, llvm::AIXException, llvm::WasmException, llvm::WinCFGuard, and llvm::WinException.

◆ beginModule()

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

Definition at line 37 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::DwarfCFIException.

Definition at line 65 of file AsmPrinterHandler.h.

◆ endFunclet()

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

Reimplemented in llvm::WinException.

Definition at line 70 of file AsmPrinterHandler.h.

◆ endFunction()

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

◆ endModule()

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

Emit all sections that should come after the content.

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

◆ markFunctionEnd()

void AsmPrinterHandler::markFunctionEnd ( )
virtual

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

Definition at line 4185 of file AsmPrinter.cpp.


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