MLIR  20.0.0git
Public Member Functions | List of all members
mlir::tblgen::Builder::Parameter Class Reference

This class represents a single parameter to a builder method. More...

#include "mlir/TableGen/Builder.h"

Public Member Functions

StringRef getCppType () const
 Return a string containing the C++ type of this parameter. More...
 
std::optional< StringRef > getName () const
 Return an optional string containing the name of this parameter. More...
 
std::optional< StringRef > getDefaultValue () const
 Return an optional string containing the default value to use for this parameter. More...
 

Detailed Description

This class represents a single parameter to a builder method.

Definition at line 36 of file Builder.h.

Member Function Documentation

◆ getCppType()

StringRef Builder::Parameter::getCppType ( ) const

Return a string containing the C++ type of this parameter.

Definition at line 26 of file Builder.cpp.

◆ getDefaultValue()

std::optional< StringRef > Builder::Parameter::getDefaultValue ( ) const

Return an optional string containing the default value to use for this parameter.

Definition at line 42 of file Builder.cpp.

References mlir::tblgen::Builder::def.

◆ getName()

std::optional<StringRef> mlir::tblgen::Builder::Parameter::getName ( ) const
inline

Return an optional string containing the name of this parameter.

If std::nullopt, no name was specified for this parameter by the user.

Definition at line 43 of file Builder.h.


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