MLIR  20.0.0git
Public Member Functions | List of all members
mlir::detail::PassOptions::ListOption< DataType, OptionParser > Class Template Reference

This class represents a specific pass option that contains a list of values of the provided data type. More...

#include "mlir/Pass/PassOptions.h"

+ Inheritance diagram for mlir::detail::PassOptions::ListOption< DataType, OptionParser >:

Public Member Functions

template<typename... Args>
 ListOption (PassOptions &parent, StringRef arg, Args &&...args)
 
 ~ListOption () override=default
 
ListOption< DataType, OptionParser > & operator= (const ListOption< DataType, OptionParser > &other)
 
bool handleOccurrence (unsigned pos, StringRef argName, StringRef arg) override
 
ListOption< DataType, OptionParser > & operator= (ArrayRef< DataType > values)
 Allow assigning from an ArrayRef. More...
 
MutableArrayRef< DataType > operator* ()
 Allow accessing the data held by this option. More...
 
ArrayRef< DataType > operator* () const
 

Detailed Description

template<typename DataType, typename OptionParser = OptionParser<DataType>>
class mlir::detail::PassOptions::ListOption< DataType, OptionParser >

This class represents a specific pass option that contains a list of values of the provided data type.

The elements within the textual form of this option are parsed assuming they are comma-separated. Delimited sub-ranges within individual elements of the list may contain commas that are not treated as separators for the top-level list.

Definition at line 242 of file PassOptions.h.

Constructor & Destructor Documentation

◆ ListOption()

template<typename DataType , typename OptionParser = OptionParser<DataType>>
template<typename... Args>
mlir::detail::PassOptions::ListOption< DataType, OptionParser >::ListOption ( PassOptions parent,
StringRef  arg,
Args &&...  args 
)
inline

Definition at line 247 of file PassOptions.h.

◆ ~ListOption()

template<typename DataType , typename OptionParser = OptionParser<DataType>>
mlir::detail::PassOptions::ListOption< DataType, OptionParser >::~ListOption ( )
overridedefault

Member Function Documentation

◆ handleOccurrence()

template<typename DataType , typename OptionParser = OptionParser<DataType>>
bool mlir::detail::PassOptions::ListOption< DataType, OptionParser >::handleOccurrence ( unsigned  pos,
StringRef  argName,
StringRef  arg 
)
inlineoverride

◆ operator*() [1/2]

template<typename DataType , typename OptionParser = OptionParser<DataType>>
MutableArrayRef<DataType> mlir::detail::PassOptions::ListOption< DataType, OptionParser >::operator* ( )
inline

Allow accessing the data held by this option.

Definition at line 287 of file PassOptions.h.

◆ operator*() [2/2]

template<typename DataType , typename OptionParser = OptionParser<DataType>>
ArrayRef<DataType> mlir::detail::PassOptions::ListOption< DataType, OptionParser >::operator* ( ) const
inline

Definition at line 290 of file PassOptions.h.

◆ operator=() [1/2]

template<typename DataType , typename OptionParser = OptionParser<DataType>>
ListOption<DataType, OptionParser>& mlir::detail::PassOptions::ListOption< DataType, OptionParser >::operator= ( ArrayRef< DataType >  values)
inline

Allow assigning from an ArrayRef.

Definition at line 280 of file PassOptions.h.

◆ operator=() [2/2]

template<typename DataType , typename OptionParser = OptionParser<DataType>>
ListOption<DataType, OptionParser>& mlir::detail::PassOptions::ListOption< DataType, OptionParser >::operator= ( const ListOption< DataType, OptionParser > &  other)
inline

Definition at line 261 of file PassOptions.h.


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