[Mlir-commits] [llvm] [mlir] [mlir] Add Normalize pass (PR #162266)
Jacques Pienaar
llvmlistbot at llvm.org
Fri Oct 24 04:49:39 PDT 2025
================
@@ -943,6 +943,17 @@ def ConvertShardToMPIPass : Pass<"convert-shard-to-mpi"> {
];
}
+//===----------------------------------------------------------------------===//
+// Normalize
+//===----------------------------------------------------------------------===//
+def Normalize : Pass<"normalize", "ModuleOp"> {
+ let summary = "convert MLIR input to its normalized form";
+ let description = [{
+ This pass produces reordered MLIR input with determinstic variable
----------------
jpienaar wrote:
Lets keep this similar to LLVM's equvalent pass (given inspiration and reuse)
/// This file implements the IRNormalizer class which aims to transform MLIR
/// inputs into a normal form by reordering and renaming instructions while
/// preserving the same semantics. The normalizer makes it easier to spot
/// semantic differences while diffing two modules which have undergone
/// different passes.
https://github.com/llvm/llvm-project/pull/162266
More information about the Mlir-commits
mailing list