[Mlir-commits] [mlir] [SCFToAffine] Add a pass to raise scf to affine ops. (PR #152925)
Ming Yan
llvmlistbot at llvm.org
Mon Aug 25 02:34:48 PDT 2025
================
@@ -0,0 +1,88 @@
+// RUN: mlir-opt -raise-scf-to-affine -split-input-file %s | FileCheck %s
+
+// CHECK: #[[$ATTR_0:.+]] = affine_map<(d0, d1)[s0] -> ((d1 - d0 + s0 - 1) floordiv s0)>
+// CHECK: #[[$ATTR_1:.+]] = affine_map<(d0, d1)[s0] -> (d0 + d1 * s0)>
+// CHECK-LABEL: func.func @simple_loop(
+// CHECK-SAME: %[[ARG0:.*]]: memref<?xi32>,
+// CHECK-SAME: %[[ARG1:.*]]: memref<3xindex>) {
----------------
NexMing wrote:
This was automatically generated using `mlir/utils/generate-test-checks.py`.
But I will try to modify it to follow the MLIR style conventions, thank you.
https://github.com/llvm/llvm-project/pull/152925
More information about the Mlir-commits
mailing list