LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::PassArgFilter< Args > Class Template Reference

#include <PassNameParser.h>

Public Member Functions

bool operator() (const PassInfo &P) const
 

Detailed Description

template<const char * Args>
class llvm::PassArgFilter< Args >

===-------------------------------------------------------------------—===// PassArgFilter - A filter for use with PassNameFilterParser that only accepts a Pass whose Arg matches certain strings.

Use like this:

extern const char AllowedPassArgs[] = "-anders_aa -dse";

static cl::list< const PassInfo*, bool, FilteredPassNameParser<PassArgFilter<AllowedPassArgs> > > PassList(cl::desc("Passes available:"));

Only the -anders_aa and -dse options will be available to the user.

Definition at line 127 of file PassNameParser.h.

Member Function Documentation

template<const char * Args>
bool llvm::PassArgFilter< Args >::operator() ( const PassInfo P) const
inline

Definition at line 129 of file PassNameParser.h.

References llvm::PassInfo::getPassArgument(), and llvm::LibFunc::strstr.


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