|
MLIR 22.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 230 of file BuiltinTypes.h.
|
inlineexplicit |
Build from another RankedTensorType.
Definition at line 233 of file BuiltinTypes.h.
References getElementType(), and getShape().
Referenced by dropDim(), insertDim(), setElementType(), setEncoding(), and setShape().
|
inline |
Build from scratch.
Definition at line 238 of file BuiltinTypes.h.
Erase a dim from shape @pos.
Definition at line 257 of file BuiltinTypes.h.
References Builder().
Referenced by mlir::linalg::DownscaleConv2DOp::returningMatchAndRewrite(), mlir::linalg::DownscaleDepthwiseConv2DNhwcHwcOp::returningMatchAndRewrite(), and mlir::linalg::DownscaleSizeOneWindowed2DConvolution< Conv2DOp, Conv1DOp >::returningMatchAndRewrite().
Insert a val into shape @pos.
Definition at line 264 of file BuiltinTypes.h.
References Builder().
Referenced by mlir::linalg::splitReductionByScaling().
|
inline |
Definition at line 270 of file BuiltinTypes.h.
Definition at line 246 of file BuiltinTypes.h.
References Builder().
Definition at line 251 of file BuiltinTypes.h.
References Builder().
Definition at line 241 of file BuiltinTypes.h.
References Builder().
Referenced by mlir::tensor::computeTransposedType(), mlir::linalg::lowerPack(), mlir::linalg::lowerUnPack(), and permuteShape().