|
MLIR 24.0.0git
|
This is a builder type that keeps local references to arguments. More...
#include "mlir/IR/BuiltinTypes.h"
Public Member Functions | |
| Builder (RankedTensorType other) | |
| Build from another RankedTensorType. | |
| Builder (ArrayRef< int64_t > shape, Type elementType, Attribute encoding) | |
| Build from scratch. | |
| Builder & | setShape (ArrayRef< int64_t > newShape) |
| Builder & | setElementType (Type newElementType) |
| Builder & | setEncoding (Attribute newEncoding) |
| Builder & | dropDim (unsigned pos) |
| Erase a dim from shape @pos. | |
| Builder & | insertDim (int64_t val, unsigned pos) |
| Insert a val into shape @pos. | |
| operator RankedTensorType () | |
This is a builder type that keeps local references to arguments.
Arguments that are passed into the builder must outlive the builder.
Definition at line 232 of file BuiltinTypes.h.
|
inlineexplicit |
Build from another RankedTensorType.
Definition at line 235 of file BuiltinTypes.h.
References getElementType(), and getShape().
Referenced by dropDim(), insertDim(), setElementType(), setEncoding(), and setShape().
|
inline |
Build from scratch.
Definition at line 240 of file BuiltinTypes.h.
Insert a val into shape @pos.
Definition at line 266 of file BuiltinTypes.h.
References Builder().
Referenced by mlir::linalg::splitReductionByScaling().
|
inline |
Definition at line 272 of file BuiltinTypes.h.
Definition at line 248 of file BuiltinTypes.h.
References Builder().
Definition at line 253 of file BuiltinTypes.h.
References Builder().
Definition at line 243 of file BuiltinTypes.h.
References Builder().
Referenced by mlir::tensor::computeTransposedType(), mlir::linalg::lowerPack(), mlir::linalg::lowerUnPack(), and permuteShape().