|
MLIR 22.0.0git
|
ShapedTypeComponents that represents the components of a ShapedType. More...
#include "mlir/Interfaces/InferTypeOpInterface.h"
Public Member Functions | |
| ShapedTypeComponents () | |
| Default construction is an unranked shape. | |
| ShapedTypeComponents (Type elementType) | |
| ShapedTypeComponents (ShapedType shapedType) | |
| ShapedTypeComponents (ShapeAdaptor adaptor) | |
| template<typename Arg, typename = std::enable_if_t< std::is_constructible<ShapeStorageT, Arg>::value>> | |
| ShapedTypeComponents (Arg &&arg, Type elementType=nullptr, Attribute attr=nullptr) | |
| ShapedTypeComponents (ArrayRef< int64_t > vec, Type elementType=nullptr, Attribute attr=nullptr) | |
| ArrayRef< int64_t > | getDims () const |
| Return the dimensions of the shape. | |
| bool | hasRank () const |
| Return whether the shape has a rank. | |
| Type | getElementType () const |
| Return the element type component. | |
| Attribute | getAttribute () const |
| Return the raw attribute component. | |
Friends | |
| class | ShapeAdaptor |
ShapedTypeComponents that represents the components of a ShapedType.
The components consist of
Definition at line 107 of file InferTypeOpInterface.h.
|
inline |
Default construction is an unranked shape.
Definition at line 113 of file InferTypeOpInterface.h.
References nullptr.
|
inline |
Definition at line 114 of file InferTypeOpInterface.h.
|
inline |
Definition at line 116 of file InferTypeOpInterface.h.
References nullptr.
|
inline |
Definition at line 122 of file InferTypeOpInterface.h.
References mlir::ShapeAdaptor::getDims(), mlir::ShapeAdaptor::getElementType(), mlir::ShapeAdaptor::hasRank(), nullptr, and ShapeAdaptor.
|
inline |
Definition at line 130 of file InferTypeOpInterface.h.
References true.
|
inline |
Definition at line 134 of file InferTypeOpInterface.h.
References true.
|
inline |
Return the raw attribute component.
Definition at line 153 of file InferTypeOpInterface.h.
Return the dimensions of the shape.
Requires: shape is ranked.
Definition at line 141 of file InferTypeOpInterface.h.
|
inline |
Return the element type component.
Definition at line 150 of file InferTypeOpInterface.h.
|
inline |
Return whether the shape has a rank.
Definition at line 147 of file InferTypeOpInterface.h.
|
friend |
Definition at line 156 of file InferTypeOpInterface.h.
References ShapeAdaptor.
Referenced by ShapeAdaptor, and ShapedTypeComponents().