[flang-commits] [flang] [mlir] [mlir] add option to print SSA IDs using `NameLoc`s as prefixes (PR #119996)

Jacques Pienaar via flang-commits flang-commits at lists.llvm.org
Tue Dec 17 06:52:05 PST 2024


================
@@ -0,0 +1,105 @@
+// RUN: mlir-opt %s -mlir-use-nameloc-as-prefix -split-input-file | FileCheck %s
+// RUN: mlir-opt %s -test-loop-unrolling='unroll-factor=2' -mlir-use-nameloc-as-prefix -split-input-file | FileCheck %s --check-prefix=CHECK-PASS-PRESERVE
+
+// CHECK-LABEL: test_basic
+func.func @test_basic() {
+  %0 = memref.alloc() : memref<i32>
+  // CHECK: %alice
----------------
jpienaar wrote:

alice = memref.load ? (then its just a bit more complete local example for folks who read tests rather than docs - just have to do it once, not for the others)

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


More information about the flang-commits mailing list