MLIR
20.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. More... | |
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. More... | |
bool | hasRank () const |
Return whether the shape has a rank. More... | |
Type | getElementType () const |
Return the element type component. More... | |
Attribute | getAttribute () const |
Return the raw attribute component. More... | |
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.
|
inline |
Definition at line 114 of file InferTypeOpInterface.h.
|
inline |
Definition at line 116 of file InferTypeOpInterface.h.
|
inline |
Definition at line 122 of file InferTypeOpInterface.h.
References mlir::ShapeAdaptor::getDims(), mlir::ShapeAdaptor::getElementType(), and mlir::ShapeAdaptor::hasRank().
|
inline |
Definition at line 130 of file InferTypeOpInterface.h.
|
inline |
Definition at line 134 of file InferTypeOpInterface.h.
|
inline |
Return the raw attribute component.
Definition at line 153 of file InferTypeOpInterface.h.
|
inline |
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.