diff options
| author | David Greene <greened@obbligato.org> | 2007-08-21 14:57:58 +0000 |
|---|---|---|
| committer | David Greene <greened@obbligato.org> | 2007-08-21 14:57:58 +0000 |
| commit | 80defa5a62a563b0cc69a5235e24fba80bdf2e2f (patch) | |
| tree | e60d8210e770bb2cfe5fc6ac9c339b90f6ddf54f /llvm | |
| parent | 85e9b4336a1c6f9e22978f1f6894027773622495 (diff) | |
| download | bcm5719-llvm-80defa5a62a563b0cc69a5235e24fba80bdf2e2f.tar.gz bcm5719-llvm-80defa5a62a563b0cc69a5235e24fba80bdf2e2f.zip | |
Doxygenize comments.
llvm-svn: 41222
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/PassNameParser.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/llvm/include/llvm/Support/PassNameParser.h b/llvm/include/llvm/Support/PassNameParser.h index 37f07972713..312a8a6f11b 100644 --- a/llvm/include/llvm/Support/PassNameParser.h +++ b/llvm/include/llvm/Support/PassNameParser.h @@ -89,12 +89,12 @@ public: } }; -//===----------------------------------------------------------------------===// -// 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 @@ public: 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: |

