diff --git a/mlir/include/mlir/Analysis/Passes.h b/mlir/include/mlir/Analysis/Passes.h --- a/mlir/include/mlir/Analysis/Passes.h +++ b/mlir/include/mlir/Analysis/Passes.h @@ -23,7 +23,7 @@ template class OpPassBase; /// Creates a pass to check memref accesses in a Function. -std::unique_ptr> createMemRefBoundCheckPass(); +std::unique_ptr> createTestMemRefBoundCheckPass(); /// Creates a pass to check memref access dependences in a Function. std::unique_ptr> createTestMemRefDependenceCheckPass(); diff --git a/mlir/test/Transforms/memref-bound-check.mlir b/mlir/test/Transforms/memref-bound-check.mlir --- a/mlir/test/Transforms/memref-bound-check.mlir +++ b/mlir/test/Transforms/memref-bound-check.mlir @@ -1,4 +1,4 @@ -// RUN: mlir-opt %s -memref-bound-check -split-input-file -verify-diagnostics | FileCheck %s +// RUN: mlir-opt %s -test-memref-bound-check -split-input-file -verify-diagnostics | FileCheck %s // ----- diff --git a/mlir/test/lib/Transforms/CMakeLists.txt b/mlir/test/lib/Transforms/CMakeLists.txt --- a/mlir/test/lib/Transforms/CMakeLists.txt +++ b/mlir/test/lib/Transforms/CMakeLists.txt @@ -10,7 +10,7 @@ TestLoopMapping.cpp TestLoopParametricTiling.cpp TestOpaqueLoc.cpp - MemRefBoundCheck.cpp + TestMemRefBoundCheck.cpp TestMemRefDependenceCheck.cpp TestMemRefStrideCalculation.cpp TestParallelismDetection.cpp diff --git a/mlir/test/lib/Transforms/MemRefBoundCheck.cpp b/mlir/test/lib/Transforms/TestMemRefBoundCheck.cpp rename from mlir/test/lib/Transforms/MemRefBoundCheck.cpp rename to mlir/test/lib/Transforms/TestMemRefBoundCheck.cpp --- a/mlir/test/lib/Transforms/MemRefBoundCheck.cpp +++ b/mlir/test/lib/Transforms/TestMemRefBoundCheck.cpp @@ -1,4 +1,4 @@ -//===- MemRefBoundCheck.cpp - MLIR Affine Structures Class ----------------===// +//===- TestMemRefBoundCheck.cpp - Test out of bound access checks ---------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -29,17 +29,17 @@ namespace { /// Checks for out of bound memef access subscripts.. -struct MemRefBoundCheck : public FunctionPass { +struct TestMemRefBoundCheck : public FunctionPass { void runOnFunction() override; }; } // end anonymous namespace -std::unique_ptr> mlir::createMemRefBoundCheckPass() { - return std::make_unique(); +std::unique_ptr> mlir::createTestMemRefBoundCheckPass() { + return std::make_unique(); } -void MemRefBoundCheck::runOnFunction() { +void TestMemRefBoundCheck::runOnFunction() { getFunction().walk([](Operation *opInst) { TypeSwitch(opInst).Case( [](auto op) { boundCheckLoadOrStoreOp(op); }); @@ -48,6 +48,6 @@ }); } -static PassRegistration - memRefBoundCheck("memref-bound-check", +static PassRegistration + memRefBoundCheck("test-memref-bound-check", "Check memref access bounds in a Function");