LLVM  4.0.0
Public Member Functions | List of all members
llvm::PassRegistrationListener Struct Reference

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). More...

#include <PassSupport.h>

Inheritance diagram for llvm::PassRegistrationListener:
[legend]

Public Member Functions

 PassRegistrationListener ()
 
virtual ~PassRegistrationListener ()
 
virtual void passRegistered (const PassInfo *)
 Callback functions - These functions are invoked whenever a pass is loaded or removed from the current executable. More...
 
void enumeratePasses ()
 enumeratePasses - Iterate over the registered passes, calling the passEnumerate callback on each PassInfo object. More...
 
virtual void passEnumerate (const PassInfo *)
 passEnumerate - Callback function invoked when someone calls enumeratePasses on this PassRegistrationListener object. More...
 

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 210 of file PassSupport.h.

Constructor & Destructor Documentation

llvm::PassRegistrationListener::PassRegistrationListener ( )
inline

Definition at line 211 of file PassSupport.h.

virtual llvm::PassRegistrationListener::~PassRegistrationListener ( )
inlinevirtual

Definition at line 212 of file PassSupport.h.

Member Function Documentation

void PassRegistrationListener::enumeratePasses ( )

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

Definition at line 235 of file Pass.cpp.

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

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

virtual void llvm::PassRegistrationListener::passEnumerate ( const PassInfo )
inlinevirtual

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

Reimplemented in llvm::PassNameParser.

Definition at line 227 of file PassSupport.h.

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

virtual void llvm::PassRegistrationListener::passRegistered ( const PassInfo )
inlinevirtual

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

Reimplemented in llvm::PassNameParser.

Definition at line 217 of file PassSupport.h.


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