LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::FilteredPassNameParser< Filter > Class Template Reference

===-------------------------------------------------------------------—===// FilteredPassNameParser class - Make use of the pass registration mechanism to automatically add a command line argument to opt for each pass that satisfies a filter criteria. More...

#include "llvm/IR/LegacyPassNameParser.h"

Inheritance diagram for llvm::FilteredPassNameParser< Filter >:
Inheritance graph
[legend]
Collaboration diagram for llvm::FilteredPassNameParser< Filter >:
Collaboration graph
[legend]

Public Member Functions

bool ignorablePassImpl (const PassInfo *P) const override
 
- Public Member Functions inherited from llvm::PassNameParser
 PassNameParser (cl::Option &O)
 
 ~PassNameParser () override
 
void initialize ()
 
bool ignorablePass (const PassInfo *P) const
 
void passRegistered (const PassInfo *P) override
 Callback functions - These functions are invoked whenever a pass is loaded or removed from the current executable. More...
 
void passEnumerate (const PassInfo *P) override
 passEnumerate - Callback function invoked when someone calls enumeratePasses on this PassRegistrationListener object. More...
 
void printOptionInfo (const cl::Option &O, size_t GlobalWidth) const override
 
- Public Member Functions inherited from llvm::PassRegistrationListener
 PassRegistrationListener ()=default
 
virtual ~PassRegistrationListener ()=default
 
void enumeratePasses ()
 enumeratePasses - Iterate over the registered passes, calling the passEnumerate callback on each PassInfo object. More...
 
- Public Member Functions inherited from llvm::cl::parser< const PassInfo *>
 parser (Option &O)
 
unsigned getNumOptions () const override
 
StringRef getOption (unsigned N) const override
 
StringRef getDescription (unsigned N) const override
 
const GenericOptionValuegetOptionValue (unsigned N) const override
 
bool parse (Option &O, StringRef ArgName, StringRef Arg, const PassInfo * &V)
 
void addLiteralOption (StringRef Name, const DT &V, StringRef HelpStr)
 addLiteralOption - Add an entry to the mapping table. More...
 
void removeLiteralOption (StringRef Name)
 removeLiteralOption - Remove the specified option. More...
 
- Public Member Functions inherited from llvm::cl::generic_parser_base
 generic_parser_base (Option &O)
 
virtual ~generic_parser_base ()=default
 
virtual size_t getOptionWidth (const Option &O) const
 
void printGenericOptionDiff (const Option &O, const GenericOptionValue &V, const GenericOptionValue &Default, size_t GlobalWidth) const
 
template<class AnyOptionValue >
void printOptionDiff (const Option &O, const AnyOptionValue &V, const AnyOptionValue &Default, size_t GlobalWidth) const
 
void initialize ()
 
void getExtraOptionNames (SmallVectorImpl< StringRef > &OptionNames)
 
enum ValueExpected getValueExpectedFlagDefault () const
 
unsigned findOption (StringRef Name)
 

Additional Inherited Members

- Public Types inherited from llvm::cl::parser< const PassInfo *>
using parser_data_type = const PassInfo *
 
- Protected Attributes inherited from llvm::cl::parser< const PassInfo *>
SmallVector< OptionInfo, 8 > Values
 
- Protected Attributes inherited from llvm::cl::generic_parser_base
OptionOwner
 

Detailed Description

template<typename Filter>
class llvm::FilteredPassNameParser< Filter >

===-------------------------------------------------------------------—===// FilteredPassNameParser class - Make use of the pass registration mechanism to automatically add a command line argument to opt for each pass that satisfies a filter criteria.

Filter should return true for passes to be registered as command-line options.

Definition at line 103 of file LegacyPassNameParser.h.

Member Function Documentation

◆ ignorablePassImpl()

template<typename Filter >
bool llvm::FilteredPassNameParser< Filter >::ignorablePassImpl ( const PassInfo P) const
inlineoverridevirtual

Reimplemented from llvm::PassNameParser.

Definition at line 108 of file LegacyPassNameParser.h.


The documentation for this class was generated from the following file: