LLVM API Documentation
#include <PassSupport.h>
Public Member Functions | |
| RegisterPass (const char *PassArg, const char *Name, bool CFGOnly=false, bool is_analysis=false) | |
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:
static RegisterPass<PassClassName> tmp("passopt", "My Name");
Definition at line 168 of file PassSupport.h.
| llvm::RegisterPass< passName >::RegisterPass | ( | const char * | PassArg, | |
| const char * | Name, | |||
| bool | CFGOnly = false, |
|||
| bool | is_analysis = false | |||
| ) | [inline] |
Definition at line 171 of file PassSupport.h.