LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 *P)
virtual void passUnregistered (const PassInfo *P)
void enumeratePasses ()
virtual void passEnumerate (const PassInfo *P)

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). Deriving from the PassRegistationListener class automatically registers your object to receive callbacks indicating when passes are loaded and removed.

Definition at line 364 of file PassSupport.h.


Constructor & Destructor Documentation

PassRegistrationListener::PassRegistrationListener  ) 
 

PassRegistrationListener ctor - Add the current object to the list of PassRegistrationListeners...

Definition at line 469 of file Pass.cpp.

PassRegistrationListener::~PassRegistrationListener  )  [virtual]
 

dtor - Remove object from list of listeners...

Definition at line 475 of file Pass.cpp.

References I.


Member Function Documentation

void PassRegistrationListener::enumeratePasses  ) 
 

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

Definition at line 491 of file Pass.cpp.

References E, I, and passEnumerate().

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

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

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

Reimplemented in llvm::PassNameParser.

Definition at line 388 of file PassSupport.h.

Referenced by enumeratePasses().

virtual void llvm::PassRegistrationListener::passRegistered const PassInfo P  )  [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 377 of file PassSupport.h.

virtual void llvm::PassRegistrationListener::passUnregistered const PassInfo P  )  [inline, virtual]
 

Reimplemented in llvm::PassNameParser.

Definition at line 378 of file PassSupport.h.


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