[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)>
----------------
linuxlonelyeagle wrote:
Do not use the automatically generated test.https://mlir.llvm.org/getting_started/TestingGuide/#after-step-1-introduce-consistent-variable-names Refer to the content here for variable naming.
https://github.com/llvm/llvm-project/pull/152925
More information about the Mlir-commits
mailing list