[Mlir-commits] [mlir] [SCFToAffine] Add a pass to raise scf to affine ops. (PR #152925)
lonely eagle
llvmlistbot at llvm.org
Mon Aug 25 01:15:21 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>) {
----------------
linuxlonelyeagle wrote:
There are too many spaces in front of the test subject.Can it be changed to this?
```
// CHECK-LABEL: func.func @simple_loop(
```
https://github.com/llvm/llvm-project/pull/152925
More information about the Mlir-commits
mailing list