[Mlir-commits] [mlir] [mlir][tosa] Change the start and size of slice to tosa shape type (PR #124209)
Georgios Pinitas
llvmlistbot at llvm.org
Mon Jan 27 11:56:58 PST 2025
================
@@ -268,12 +268,28 @@ class SliceConverter : public OpConversionPattern<tosa::SliceOp> {
ShapedType resultType = cast<ShapedType>(sliceOp.getType());
if (llvm::isa<UnrankedTensorType>(resultType))
return failure();
+
+ ElementsAttr StartElems;
+ ElementsAttr SizeElems;
+
+ if (!matchPattern(sliceOp.getStart(), m_Constant(&StartElems)))
----------------
GeorgeARM wrote:
Ack
https://github.com/llvm/llvm-project/pull/124209
More information about the Mlir-commits
mailing list