MLIR
20.0.0git
|
This class implements a command-line parser specifically for MLIR pass names. More...
#include "mlir/Pass/PassRegistry.h"
Public Member Functions | |
PassNameCLParser (StringRef arg, StringRef description) | |
Construct a parser with the given command line description. More... | |
~PassNameCLParser () | |
bool | hasAnyOccurrences () const |
Returns true if this parser contains any valid options to add. More... | |
bool | contains (const PassRegistryEntry *entry) const |
Returns true if the given pass registry entry was registered at the top-level of the parser, i.e. More... | |
This class implements a command-line parser specifically for MLIR pass names.
It registers a cl option with a given argument and description that accepts a comma delimited list of pass names.
Definition at line 279 of file PassRegistry.h.
PassNameCLParser::PassNameCLParser | ( | StringRef | arg, |
StringRef | description | ||
) |
Construct a parser with the given command line description.
Construct a pass pipeline parser with the given command line description.
Definition at line 1033 of file PassRegistry.cpp.
|
default |
bool PassNameCLParser::contains | ( | const PassRegistryEntry * | entry | ) | const |
Returns true if the given pass registry entry was registered at the top-level of the parser, i.e.
not within an explicit textual pipeline.
Definition at line 1047 of file PassRegistry.cpp.
bool PassNameCLParser::hasAnyOccurrences | ( | ) | const |
Returns true if this parser contains any valid options to add.
Definition at line 1041 of file PassRegistry.cpp.