[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:37:13 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:
So from what I gather legalizations for when the parameters are not constant will be done in a separate patch sometime in the future?
https://github.com/llvm/llvm-project/pull/124209
    
    
More information about the Mlir-commits
mailing list