[Mlir-commits] [mlir] [mlir][utils] Add script to verify canonicalizations against Alive2 (PR #91867)

Tobias Gysi llvmlistbot at llvm.org
Mon May 13 05:49:05 PDT 2024


================
@@ -0,0 +1,77 @@
+# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+# This script is a helper to verify canonicalization patterns using Alive2
+# https://alive2.llvm.org/ce/.
+# It performs the following steps:
+# - Filters out the provided test functions.
+# - Runs the canonicalization pass on the remaining functions.
+# - Lowers both the original and the canonicalized functions to LLVM IR.
+# - Prints the canonicalized and the original function side-by-side in a format
----------------
gysit wrote:

```suggestion
# - Prints the canonicalized and the original functions side-by-side in a format
```
Sorry my bad... This should be plural.

https://github.com/llvm/llvm-project/pull/91867


More information about the Mlir-commits mailing list