LLVM API Documentation
#include <PassSupport.h>
Protected Member Functions | |
| RegisterAGBase (const char *Name, intptr_t InterfaceID, intptr_t PassID=0, bool isDefault=false) | |
If no analysis implementing the interface is available, a default implementation is created and added. A pass registers itself as the default implementation by specifying 'true' as the second template argument of this class.
In addition to registering itself as an analysis group member, a pass must register itself normally as well. Passes may be members of multiple groups and may still be "required" specifically by name.
The actual interface may also be registered as well (by not specifying the second template argument). The interface should be registered to associate a nice name with the interface.
Definition at line 199 of file PassSupport.h.
| RegisterAGBase::RegisterAGBase | ( | const char * | Name, | |
| intptr_t | InterfaceID, | |||
| intptr_t | PassID = 0, |
|||
| bool | isDefault = false | |||
| ) | [explicit, protected] |
Definition at line 230 of file Pass.cpp.
References llvm::PassInfo::addInterfaceImplemented(), getPassRegistrar(), llvm::PassInfo::isAnalysisGroup(), llvm::Pass::lookupPassInfo(), and llvm::PassInfo::registerPass().