MLIR 22.0.0git
PassOptions.h File Reference
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/FunctionExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include <memory>

Go to the source code of this file.

Classes

class  mlir::detail::PassOptions
 Base container class and manager for all pass options. More...
class  mlir::detail::PassOptions::Option< DataType, OptionParser >
 This class represents a specific pass option, with a provided data type. More...
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. More...
class  mlir::parser< std::vector< T > >
class  mlir::parser< SmallVector< T, N > >
struct  mlir::OptionValue< mlir::OpPassManager >
class  mlir::parser< mlir::OpPassManager >
struct  mlir::parser< mlir::OpPassManager >::ParsedPassManager
 A utility struct used when parsing a pass manager that prevents the need for a default constructor on OpPassManager. More...

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::detail
 AttrTypeReplacer.
namespace  mlir::detail::pass_options

Typedefs

template<typename T>
using mlir::detail::pass_options::has_stream_operator_trait
 Trait used to detect if a type has a operator<< method.
template<typename T>
using mlir::detail::pass_options::has_stream_operator = llvm::is_detected<has_stream_operator_trait, T>

Functions

LogicalResult mlir::detail::pass_options::parseCommaSeparatedList (llvm::cl::Option &opt, StringRef argName, StringRef optionStr, function_ref< LogicalResult(StringRef)> elementParseFn)
 Parse a string containing a list of comma-delimited elements, invoking the given parser for each sub-element and passing them to the provided element-append functor.
template<typename ElementParser, typename ElementAppendFn>
LogicalResult mlir::detail::pass_options::parseCommaSeparatedList (llvm::cl::Option &opt, StringRef argName, StringRef optionStr, ElementParser &elementParser, ElementAppendFn &&appendFn)
template<typename ParserT>
static void mlir::detail::pass_options::printOptionValue (raw_ostream &os, const bool &value)
 Utility methods for printing option values.
template<typename ParserT>
static void mlir::detail::pass_options::printOptionValue (raw_ostream &os, const std::string &str)
template<typename ParserT, typename DataT>
static void mlir::detail::pass_options::printOptionValue (raw_ostream &os, const DataT &value)