LLVM API Documentation
#include <PassSupport.h>
Public Member Functions | |
PassRegistrationListener () | |
virtual | ~PassRegistrationListener () |
virtual void | passRegistered (const PassInfo *) |
void | enumeratePasses () |
virtual void | passEnumerate (const PassInfo *) |
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 PassRegistrationListener class automatically registers your object to receive callbacks indicating when passes are loaded and removed.
Definition at line 312 of file PassSupport.h.
PassRegistrationListener::PassRegistrationListener | ( | ) |
PassRegistrationListener ctor - Add the current object to the list of PassRegistrationListeners...
Definition at line 205 of file Pass.cpp.
References llvm::PassRegistry::addRegistrationListener(), and llvm::PassRegistry::getPassRegistry().
|
virtual |
dtor - Remove object from list of listeners...
Definition at line 210 of file Pass.cpp.
References llvm::PassRegistry::getPassRegistry(), and llvm::PassRegistry::removeRegistrationListener().
void PassRegistrationListener::enumeratePasses | ( | ) |
enumeratePasses - Iterate over the registered passes, calling the passEnumerate callback on each PassInfo object.
Definition at line 217 of file Pass.cpp.
References llvm::PassRegistry::enumerateWith(), and llvm::PassRegistry::getPassRegistry().
Referenced by llvm::PassNameParser::initialize().
|
inlinevirtual |
passEnumerate - Callback function invoked when someone calls enumeratePasses on this PassRegistrationListener object.
Reimplemented in llvm::PassNameParser.
Definition at line 335 of file PassSupport.h.
Referenced by llvm::PassRegistry::enumerateWith().
|
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 325 of file PassSupport.h.