Lines Matching defs:sliceOp
264 matchAndRewrite(tosa::SliceOp sliceOp, OpAdaptor adaptor,
266 Location loc = sliceOp.getLoc();
268 ShapedType resultType = cast<ShapedType>(sliceOp.getType());
275 if (!matchPattern(sliceOp.getStart(), m_Constant(&startElems)))
277 sliceOp, "start of slice must be a static ranked shape");
279 if (!matchPattern(sliceOp.getSize(), m_Constant(&sizeElems)))
281 sliceOp, "size of slice must be a static ranked shape");
289 strides.resize(cast<ShapedType>(sliceOp.getType()).getRank(), 1);
306 sliceOp.getLoc(), sliceOp.getType(), input, ValueRange({}), dynSizes,
311 rewriter.replaceOp(sliceOp, newSliceOp.getResult());
314 Operation *startConstShape = sliceOp.getStart().getDefiningOp();
318 Operation *sizeConstShape = sliceOp.getSize().getDefiningOp();