From 3848baec69e3e5f67b5cefb59543a701553a1b09 Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Wed, 25 Sep 2019 11:23:15 -0700 Subject: [PATCH] Emit function name being tested in TestMemRefStrideCalculation Bring back CHECK-LABEL post PiperOrigin-RevId: 271166428 --- mlir/test/AffineOps/memref-stride-calculation.mlir | 3 ++- mlir/test/lib/Transforms/TestMemRefStrideCalculation.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mlir/test/AffineOps/memref-stride-calculation.mlir b/mlir/test/AffineOps/memref-stride-calculation.mlir index d74a34dd3720..50ac5ecd7c01 100644 --- a/mlir/test/AffineOps/memref-stride-calculation.mlir +++ b/mlir/test/AffineOps/memref-stride-calculation.mlir @@ -1,6 +1,7 @@ -// RUN: mlir-opt %s -test-memref-stride-calculation | FileCheck %s +// RUN: mlir-opt %s -test-memref-stride-calculation -o /dev/null | FileCheck %s func @f(%0: index) { +// CHECK-LABEL: Testing: f %1 = alloc() : memref<3x4x5xf32> // CHECK: MemRefType offset: 0 strides: 20, 5, 1 %2 = alloc(%0) : memref<3x4x?xf32> diff --git a/mlir/test/lib/Transforms/TestMemRefStrideCalculation.cpp b/mlir/test/lib/Transforms/TestMemRefStrideCalculation.cpp index c20d80493b51..f1e39bcf293a 100644 --- a/mlir/test/lib/Transforms/TestMemRefStrideCalculation.cpp +++ b/mlir/test/lib/Transforms/TestMemRefStrideCalculation.cpp @@ -32,6 +32,7 @@ struct TestMemRefStrideCalculation // Traverse AllocOp and compute strides of each MemRefType independently. void TestMemRefStrideCalculation::runOnFunction() { + llvm::outs() << "Testing: " << getFunction().getName() << "\n"; getFunction().walk([&](AllocOp allocOp) { auto memrefType = allocOp.getResult()->getType().cast(); SmallVector strideVector;