[llvm-commits] [llvm] r41222 - /llvm/trunk/include/llvm/Support/PassNameParser.h
David Greene
greened at obbligato.org
Tue Aug 21 07:57:59 PDT 2007
Author: greened
Date: Tue Aug 21 09:57:58 2007
New Revision: 41222
URL: http://llvm.org/viewvc/llvm-project?rev=41222&view=rev
Log:
Doxygenize comments.
Modified:
llvm/trunk/include/llvm/Support/PassNameParser.h
Modified: llvm/trunk/include/llvm/Support/PassNameParser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/PassNameParser.h?rev=41222&r1=41221&r2=41222&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/PassNameParser.h (original)
+++ llvm/trunk/include/llvm/Support/PassNameParser.h Tue Aug 21 09:57:58 2007
@@ -89,12 +89,12 @@
}
};
-//===----------------------------------------------------------------------===//
-// 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.
-//
+///===----------------------------------------------------------------------===//
+/// 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.
+///
template<typename Filter>
class FilteredPassNameParser : public PassNameParser {
private:
@@ -104,22 +104,22 @@
bool ignorablePassImpl(const PassInfo *P) const { return !filter(*P); }
};
-//===----------------------------------------------------------------------===//
-// 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("LLVM optimizations available:"));
-//
-// Only the -anders_aa and -dse options will be available to the user.
-//
+///===----------------------------------------------------------------------===//
+/// 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.
+///
template<const char *Args>
class PassArgFilter {
public:
More information about the llvm-commits
mailing list