MLIR
20.0.0git
|
This is a builder type that keeps local references to arguments. More...
#include "mlir/IR/BuiltinTypes.h"
Public Member Functions | |
Builder (VectorType other) | |
Build from another VectorType. More... | |
Builder (ArrayRef< int64_t > shape, Type elementType, ArrayRef< bool > scalableDims={}) | |
Build from scratch. More... | |
Builder & | setShape (ArrayRef< int64_t > newShape, ArrayRef< bool > newIsScalableDim={}) |
Builder & | setElementType (Type newElementType) |
Builder & | dropDim (unsigned pos) |
Erase a dim from shape @pos. More... | |
Builder & | setDim (unsigned pos, int64_t val) |
Set a dim in shape @pos to val. More... | |
operator VectorType () | |
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 317 of file BuiltinTypes.h.
|
inlineexplicit |
Build from another VectorType.
Definition at line 320 of file BuiltinTypes.h.
|
inline |
Build from scratch.
Definition at line 325 of file BuiltinTypes.h.
|
inline |
Erase a dim from shape @pos.
Definition at line 342 of file BuiltinTypes.h.
References mlir::CopyOnWriteArrayRef< T >::empty(), and mlir::CopyOnWriteArrayRef< T >::erase().
Referenced by reshapeLoad(), and reshapeStore().
|
inline |
Definition at line 357 of file BuiltinTypes.h.
References mlir::get().
|
inline |
Set a dim in shape @pos to val.
Definition at line 351 of file BuiltinTypes.h.
Definition at line 336 of file BuiltinTypes.h.
|
inline |
Definition at line 329 of file BuiltinTypes.h.