[Mlir-commits] [mlir] [mlir][python] enable memref.subview (PR #79393)

Jacques Pienaar llvmlistbot at llvm.org
Wed Jan 24 17:01:53 PST 2024


================
@@ -1,5 +1,74 @@
 #  Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 #  See https://llvm.org/LICENSE.txt for license information.
 #  SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+from typing import Optional, Sequence
 
 from ._memref_ops_gen import *
+from ..ir import Value, ShapedType, MemRefType, StridedLayoutAttr
+
+
+def _infer_memref_subview_result_type(
----------------
jpienaar wrote:

(I can see how it makes the full use more compact, not sure if you have a simpler initial test for just this, else I don't object too strongly)

https://github.com/llvm/llvm-project/pull/79393


More information about the Mlir-commits mailing list