[Mlir-commits] [mlir] fa5c523 - [MLIR] NFC. Rename pass cmd-line to prefix affine
Uday Bondhugula
llvmlistbot at llvm.org
Wed Jan 26 23:33:56 PST 2022
Author: Uday Bondhugula
Date: 2022-01-27T13:01:39+05:30
New Revision: fa5c5230d9143b0895bd04a04ee734ee23c9676a
URL: https://github.com/llvm/llvm-project/commit/fa5c5230d9143b0895bd04a04ee734ee23c9676a
DIFF: https://github.com/llvm/llvm-project/commit/fa5c5230d9143b0895bd04a04ee734ee23c9676a.diff
LOG: [MLIR] NFC. Rename pass cmd-line to prefix affine
Prefix "affine-" to affine transform passes that were missing it -- to
avoid ambiguity and for uniformity. There were only two needed this.
Move mispaced affine coalescing test case file.
NFC.
Differential Revision: https://reviews.llvm.org/D118314
Added:
mlir/test/Dialect/Affine/loop-coalescing.mlir
mlir/test/Dialect/Affine/simplify-structures.mlir
Modified:
mlir/include/mlir/Dialect/Affine/Passes.td
Removed:
mlir/test/Dialect/Affine/simplify-affine-structures.mlir
mlir/test/Transforms/loop-coalescing.mlir
################################################################################
diff --git a/mlir/include/mlir/Dialect/Affine/Passes.td b/mlir/include/mlir/Dialect/Affine/Passes.td
index d67bd33ef9d62..50783adb8b4de 100644
--- a/mlir/include/mlir/Dialect/Affine/Passes.td
+++ b/mlir/include/mlir/Dialect/Affine/Passes.td
@@ -385,14 +385,14 @@ def AffineLoopNormalize : Pass<"affine-loop-normalize", "FuncOp"> {
let constructor = "mlir::createAffineLoopNormalizePass()";
}
-def LoopCoalescing : Pass<"loop-coalescing", "FuncOp"> {
+def LoopCoalescing : Pass<"affine-loop-coalescing", "FuncOp"> {
let summary = "Coalesce nested loops with independent bounds into a single "
"loop";
let constructor = "mlir::createLoopCoalescingPass()";
let dependentDialects = ["arith::ArithmeticDialect"];
}
-def SimplifyAffineStructures : Pass<"simplify-affine-structures", "FuncOp"> {
+def SimplifyAffineStructures : Pass<"affine-simplify-structures", "FuncOp"> {
let summary = "Simplify affine expressions in maps/sets and normalize "
"memrefs";
let constructor = "mlir::createSimplifyAffineStructuresPass()";
diff --git a/mlir/test/Transforms/loop-coalescing.mlir b/mlir/test/Dialect/Affine/loop-coalescing.mlir
similarity index 99%
rename from mlir/test/Transforms/loop-coalescing.mlir
rename to mlir/test/Dialect/Affine/loop-coalescing.mlir
index c50212f376134..93423fff670e4 100644
--- a/mlir/test/Transforms/loop-coalescing.mlir
+++ b/mlir/test/Dialect/Affine/loop-coalescing.mlir
@@ -1,4 +1,4 @@
-// RUN: mlir-opt -split-input-file -allow-unregistered-dialect -loop-coalescing %s | FileCheck %s
+// RUN: mlir-opt -split-input-file -allow-unregistered-dialect -affine-loop-coalescing %s | FileCheck %s
// CHECK-LABEL: @one_3d_nest
func @one_3d_nest() {
diff --git a/mlir/test/Dialect/Affine/simplify-affine-structures.mlir b/mlir/test/Dialect/Affine/simplify-structures.mlir
similarity index 99%
rename from mlir/test/Dialect/Affine/simplify-affine-structures.mlir
rename to mlir/test/Dialect/Affine/simplify-structures.mlir
index 39abea5a76bae..826f98f0c043c 100644
--- a/mlir/test/Dialect/Affine/simplify-affine-structures.mlir
+++ b/mlir/test/Dialect/Affine/simplify-structures.mlir
@@ -1,4 +1,4 @@
-// RUN: mlir-opt -allow-unregistered-dialect %s -split-input-file -simplify-affine-structures | FileCheck %s
+// RUN: mlir-opt -allow-unregistered-dialect %s -split-input-file -affine-simplify-structures | FileCheck %s
// CHECK-DAG: #[[$SET_2D:.*]] = affine_set<(d0, d1) : (d0 - 100 == 0, d1 - 10 == 0, -d0 + 100 >= 0, d1 >= 0)>
// CHECK-DAG: #[[$SET_7_11:.*]] = affine_set<(d0, d1) : (d0 * 7 + d1 * 5 + 88 == 0, d0 * 5 - d1 * 11 + 60 == 0, d0 * 11 + d1 * 7 - 24 == 0, d0 * 7 + d1 * 5 + 88 == 0)>
More information about the Mlir-commits
mailing list