Go to the source code of this file.
|
| static VectorType | trimLeadingUnitDims (VectorType oldType, bool trimOnlyOneDim=false, bool allowRank0=false) |
| static SmallVector< int64_t > | splatZero (int64_t rank) |
| | Return a smallVector of size rank containing all zeros.
|
| static Operation * | createWithProperties (OpBuilder &builder, Operation *op, ValueRange operands, TypeRange resultTypes) |
| static Value | dropLeadingUnitDimViaShapeCastOrExtract (RewriterBase &rewriter, Location loc, mlir::Value oldVal) |
| static Value | restoreLeadingUnitDimViaShapeCastOrBcast (RewriterBase &rewriter, Location loc, mlir::Value oldVal, mlir::Type newTy) |
| static Value | dropLeadingOneDimsFromOperand (OpBuilder &b, Location loc, Value operand, int64_t nDropped) |
◆ DEBUG_TYPE
| #define DEBUG_TYPE "vector-drop-unit-dim" |
◆ createWithProperties()
◆ dropLeadingOneDimsFromOperand()
◆ dropLeadingUnitDimViaShapeCastOrExtract()
◆ restoreLeadingUnitDimViaShapeCastOrBcast()
◆ splatZero()
◆ trimLeadingUnitDims()
| VectorType trimLeadingUnitDims |
( |
VectorType | oldType, |
|
|
bool | trimOnlyOneDim = false, |
|
|
bool | allowRank0 = false ) |
|
static |