MLIR 22.0.0git
mlir::tblgen::NamedTypeConstraint Struct Reference

#include "mlir/TableGen/Argument.h"

Public Member Functions

bool hasPredicate () const
bool isOptional () const
bool isVariadic () const
bool isVariadicOfVariadic () const
bool isVariableLength () const

Public Attributes

llvm::StringRef name
TypeConstraint constraint

Detailed Description

Definition at line 44 of file Argument.h.

Member Function Documentation

◆ hasPredicate()

bool NamedTypeConstraint::hasPredicate ( ) const

Definition at line 18 of file Argument.cpp.

References constraint.

◆ isOptional()

bool NamedTypeConstraint::isOptional ( ) const

Definition at line 22 of file Argument.cpp.

References constraint.

Referenced by isVariableLength().

◆ isVariableLength()

bool mlir::tblgen::NamedTypeConstraint::isVariableLength ( ) const
inline

Definition at line 56 of file Argument.h.

References isOptional(), and isVariadic().

◆ isVariadic()

◆ isVariadicOfVariadic()

bool NamedTypeConstraint::isVariadicOfVariadic ( ) const

Definition at line 26 of file Argument.cpp.

References constraint.

Member Data Documentation

◆ constraint

◆ name

llvm::StringRef mlir::tblgen::NamedTypeConstraint::name

Definition at line 58 of file Argument.h.


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