LLVM API Documentation

Public Member Functions
llvm::PassArgFilter< Args > Class Template Reference

#include <LegacyPassNameParser.h>

List of all members.

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 132 of file LegacyPassNameParser.h.


Member Function Documentation

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: