MLIR  16.0.0git
Public Member Functions | List of all members
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. 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...
 

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

References ~PassNameCLParser().

◆ ~PassNameCLParser()

PassNameCLParser::~PassNameCLParser ( )
default

Referenced by PassNameCLParser().

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

◆ hasAnyOccurrences()

bool PassNameCLParser::hasAnyOccurrences ( ) const

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

Definition at line 951 of file PassRegistry.cpp.


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