MLIR 22.0.0git
mlir::PassNameCLParser Class Reference

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.
 ~PassNameCLParser ()
bool hasAnyOccurrences () const
 Returns true if this parser contains any valid options to add.
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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ PassNameCLParser()

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 1035 of file PassRegistry.cpp.

References true.

◆ ~PassNameCLParser()

PassNameCLParser::~PassNameCLParser ( )
default

Member Function Documentation

◆ contains()

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 1049 of file PassRegistry.cpp.

◆ hasAnyOccurrences()

bool PassNameCLParser::hasAnyOccurrences ( ) const

Returns true if this parser contains any valid options to add.

Definition at line 1043 of file PassRegistry.cpp.


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