LLVM  8.0.1
Public Member Functions | List of all members
llvm::PassArgFilter< Args > Class Template Reference

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

#include "llvm/IR/LegacyPassNameParser.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 130 of file LegacyPassNameParser.h.

Member Function Documentation

◆ operator()()

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

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