LLVM API Documentation
#include <PassSupport.h>
Inheritance diagram for llvm::RegisterPassBase:
Public Member Functions | |
const PassInfo * | getPassInfo () const |
RegisterPassBase () | |
~RegisterPassBase () | |
Protected Member Functions | |
void | registerPass (PassInfo *) |
void | unregisterPass (PassInfo *) |
void | setOnlyUsesCFG () |
Protected Attributes | |
PassInfo * | PIObj |
static RegisterPass<YourPassClassName> tmp("passopt", "My Pass Name");
This statement will cause your pass to be created by calling the default constructor exposed by the pass. If you have a different constructor that must be called, create a global constructor function (which takes the arguments you need and returns a Pass*) and register your pass like this:
Pass *createMyPass(foo &opt) { return new MyPass(opt); } static RegisterPass<PassClassName> tmp("passopt", "My Name", createMyPass);
Definition at line 149 of file PassSupport.h.
|
Definition at line 154 of file PassSupport.h. |
|
Definition at line 155 of file PassSupport.h. References PIObj, and unregisterPass(). |
|
getPassInfo - Get the pass info for the registered class... Definition at line 152 of file PassSupport.h. References PIObj. |
|
Definition at line 333 of file Pass.cpp. References E, llvm::PassInfo::getTypeInfo(), I, and PIObj. Referenced by llvm::RegisterAGBase::RegisterAGBase(), llvm::RegisterAnalysis< PassName >::RegisterAnalysis(), llvm::RegisterLLC< PassName >::RegisterLLC(), llvm::RegisterOpt< PassName >::RegisterOpt(), and llvm::RegisterPass< PassName >::RegisterPass(). |
|
setOnlyUsesCFG - Notice that this pass only depends on the CFG, so transformations that do not modify the CFG do not invalidate this pass. Definition at line 40 of file Pass.cpp. References getCFGOnlyAnalyses(), and PIObj. Referenced by llvm::RegisterAnalysis< PassName >::RegisterAnalysis(), and llvm::RegisterOpt< PassName >::RegisterOpt(). |
|
Definition at line 349 of file Pass.cpp. References E, llvm::PassInfo::getTypeInfo(), and I. Referenced by llvm::RegisterAGBase::~RegisterAGBase(), and ~RegisterPassBase(). |
|
Definition at line 160 of file PassSupport.h. Referenced by getPassInfo(), llvm::RegisterAGBase::RegisterAGBase(), registerPass(), setOnlyUsesCFG(), and ~RegisterPassBase(). |