[Mlir-commits] [mlir] [mlir][affine] implement inferType for delinearize (PR #74644)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Thu Dec 7 11:18:16 PST 2023


================
@@ -43,6 +44,15 @@ def affine_store_test(arg0):
         return mem
 
 
+# CHECK-LABEL: TEST: testAffineDelinearizeInfer
+ at constructAndPrintInModule
+def testAffineDelinearizeInfer():
+    c0 = arith.ConstantOp(T.index(), 0)
+    c1 = arith.ConstantOp(T.index(), 1)
+    # CHECK: %0:2 = affine.delinearize_index %c1 into (%c1, %c0) : index, index
----------------
ftynse wrote:

Nit: please don't pattern-match SSA value names.

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


More information about the Mlir-commits mailing list