forked from OSchip/llvm-project
[MLIR] Rename MemRefBoundCheck.cpp -> TestMemRefBoundCheck.cpp
Summary: This makes it consistent with other test passes. Reviewers: rriddle Reviewed By: rriddle Subscribers: merge_guards_bot, mgorny, mehdi_amini, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, Joonsoo, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74068
This commit is contained in:
parent
b3dd31711a
commit
b692f43e42
|
@ -23,7 +23,7 @@ class FuncOp;
|
||||||
template <typename T> class OpPassBase;
|
template <typename T> class OpPassBase;
|
||||||
|
|
||||||
/// Creates a pass to check memref accesses in a Function.
|
/// Creates a pass to check memref accesses in a Function.
|
||||||
std::unique_ptr<OpPassBase<FuncOp>> createMemRefBoundCheckPass();
|
std::unique_ptr<OpPassBase<FuncOp>> createTestMemRefBoundCheckPass();
|
||||||
|
|
||||||
/// Creates a pass to check memref access dependences in a Function.
|
/// Creates a pass to check memref access dependences in a Function.
|
||||||
std::unique_ptr<OpPassBase<FuncOp>> createTestMemRefDependenceCheckPass();
|
std::unique_ptr<OpPassBase<FuncOp>> createTestMemRefDependenceCheckPass();
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
// -----
|
// -----
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ add_llvm_library(MLIRTestTransforms
|
||||||
TestLoopMapping.cpp
|
TestLoopMapping.cpp
|
||||||
TestLoopParametricTiling.cpp
|
TestLoopParametricTiling.cpp
|
||||||
TestOpaqueLoc.cpp
|
TestOpaqueLoc.cpp
|
||||||
MemRefBoundCheck.cpp
|
TestMemRefBoundCheck.cpp
|
||||||
TestMemRefDependenceCheck.cpp
|
TestMemRefDependenceCheck.cpp
|
||||||
TestMemRefStrideCalculation.cpp
|
TestMemRefStrideCalculation.cpp
|
||||||
TestParallelismDetection.cpp
|
TestParallelismDetection.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.
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||||
// See https://llvm.org/LICENSE.txt for license information.
|
// See https://llvm.org/LICENSE.txt for license information.
|
||||||
|
@ -29,17 +29,17 @@ using namespace mlir;
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
/// Checks for out of bound memef access subscripts..
|
/// Checks for out of bound memef access subscripts..
|
||||||
struct MemRefBoundCheck : public FunctionPass<MemRefBoundCheck> {
|
struct TestMemRefBoundCheck : public FunctionPass<TestMemRefBoundCheck> {
|
||||||
void runOnFunction() override;
|
void runOnFunction() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end anonymous namespace
|
} // end anonymous namespace
|
||||||
|
|
||||||
std::unique_ptr<OpPassBase<FuncOp>> mlir::createMemRefBoundCheckPass() {
|
std::unique_ptr<OpPassBase<FuncOp>> mlir::createTestMemRefBoundCheckPass() {
|
||||||
return std::make_unique<MemRefBoundCheck>();
|
return std::make_unique<TestMemRefBoundCheck>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MemRefBoundCheck::runOnFunction() {
|
void TestMemRefBoundCheck::runOnFunction() {
|
||||||
getFunction().walk([](Operation *opInst) {
|
getFunction().walk([](Operation *opInst) {
|
||||||
TypeSwitch<Operation *>(opInst).Case<AffineLoadOp, AffineStoreOp>(
|
TypeSwitch<Operation *>(opInst).Case<AffineLoadOp, AffineStoreOp>(
|
||||||
[](auto op) { boundCheckLoadOrStoreOp(op); });
|
[](auto op) { boundCheckLoadOrStoreOp(op); });
|
||||||
|
@ -48,6 +48,6 @@ void MemRefBoundCheck::runOnFunction() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static PassRegistration<MemRefBoundCheck>
|
static PassRegistration<TestMemRefBoundCheck>
|
||||||
memRefBoundCheck("memref-bound-check",
|
memRefBoundCheck("test-memref-bound-check",
|
||||||
"Check memref access bounds in a Function");
|
"Check memref access bounds in a Function");
|
Loading…
Reference in New Issue