LLVM API Documentation

Public Member Functions
llvm::PassRegistrationListener Struct Reference

#include <PassSupport.h>

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

List of all members.

Public Member Functions

 PassRegistrationListener ()
virtual ~PassRegistrationListener ()
virtual void passRegistered (const PassInfo *)
void enumeratePasses ()
virtual void passEnumerate (const PassInfo *)

Detailed Description

PassRegistrationListener class - This class is meant to be derived from by clients that are interested in which passes get registered and unregistered at runtime (which can be because of the RegisterPass constructors being run as the program starts up, or may be because a shared object just got loaded).

Definition at line 217 of file PassSupport.h.


Constructor & Destructor Documentation

Definition at line 219 of file PassSupport.h.

Definition at line 220 of file PassSupport.h.


Member Function Documentation

enumeratePasses - Iterate over the registered passes, calling the passEnumerate callback on each PassInfo object.

Definition at line 222 of file Pass.cpp.

References llvm::PassRegistry::enumerateWith(), and llvm::PassRegistry::getPassRegistry().

Referenced by llvm::PassNameParser::initialize().

virtual void llvm::PassRegistrationListener::passEnumerate ( const PassInfo ) [inline, virtual]

passEnumerate - Callback function invoked when someone calls enumeratePasses on this PassRegistrationListener object.

Reimplemented in llvm::PassNameParser.

Definition at line 235 of file PassSupport.h.

Referenced by llvm::PassRegistry::enumerateWith().

virtual void llvm::PassRegistrationListener::passRegistered ( const PassInfo ) [inline, virtual]

Callback functions - These functions are invoked whenever a pass is loaded or removed from the current executable.

Reimplemented in llvm::PassNameParser.

Definition at line 225 of file PassSupport.h.


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