|
MLIR
22.0.0git
|
This class represents a PDLL tuple type, i.e. More...
#include "mlir/Tools/PDLL/AST/Types.h"
Inheritance diagram for mlir::pdll::ast::TupleType:Public Member Functions | |
| ArrayRef< Type > | getElementTypes () const |
| Return the element types of this tuple. More... | |
| ArrayRef< StringRef > | getElementNames () const |
| Return the element names of this tuple. More... | |
| size_t | size () const |
| Return the number of elements within this tuple. More... | |
| bool | empty () const |
| Return if the tuple has no elements. More... | |
Public Member Functions inherited from mlir::pdll::ast::Type | |
| Type (Storage *impl=nullptr) | |
| bool | operator== (const Type &other) const |
| bool | operator!= (const Type &other) const |
| operator bool () const | |
| Storage * | getImpl () const |
| Return the internal storage instance of this type. More... | |
| TypeID | getTypeID () const |
| Return the TypeID instance of this type. More... | |
| void | print (raw_ostream &os) const |
| Print this type to the given stream. More... | |
| Type | refineWith (Type other) const |
| Try to refine this type with the one provided. More... | |
Static Public Member Functions | |
| static TupleType | get (Context &context, ArrayRef< Type > elementTypes, ArrayRef< StringRef > elementNames) |
| Return an instance of the Tuple type. More... | |
| static TupleType | get (Context &context, ArrayRef< Type > elementTypes={}) |
Static Public Member Functions inherited from mlir::pdll::ast::Type::TypeBase< detail::TupleTypeStorage > | |
| static bool | classof (Type type) |
| Provide type casting support. More... | |
Additional Inherited Members | |
Public Types inherited from mlir::pdll::ast::Type::TypeBase< detail::TupleTypeStorage > | |
| using | Base = TypeBase< detail::TupleTypeStorage, Type > |
| using | ImplTy = detail::TupleTypeStorage |
Protected Member Functions inherited from mlir::pdll::ast::Type | |
| template<typename T > | |
| const T * | getImplAs () const |
| Return the internal storage instance of this type reinterpreted as the given derived storage type. More... | |
This class represents a PDLL tuple type, i.e.
an ordered set of element types with optional names.
|
inline |
|
static |
Return an instance of the Tuple type.
Definition at line 144 of file Types.cpp.
References mlir::StorageUniquer::get(), and mlir::pdll::ast::Context::getTypeUniquer().
Referenced by mlir::pdll::ast::TupleExpr::create(), and get().
| ArrayRef< StringRef > TupleType::getElementNames | ( | ) | const |
|
inline |
Return the number of elements within this tuple.
Return the number of element types.
Definition at line 238 of file Types.h.
References getElementTypes().
Referenced by empty().