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;
|
||||
|
||||
/// 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.
|
||||
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
|
||||
TestLoopParametricTiling.cpp
|
||||
TestOpaqueLoc.cpp
|
||||
MemRefBoundCheck.cpp
|
||||
TestMemRefBoundCheck.cpp
|
||||
TestMemRefDependenceCheck.cpp
|
||||
TestMemRefStrideCalculation.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.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
|
@ -29,17 +29,17 @@ using namespace mlir;
|
|||
namespace {
|
||||
|
||||
/// Checks for out of bound memef access subscripts..
|
||||
struct MemRefBoundCheck : public FunctionPass<MemRefBoundCheck> {
|
||||
struct TestMemRefBoundCheck : public FunctionPass<TestMemRefBoundCheck> {
|
||||
void runOnFunction() override;
|
||||
};
|
||||
|
||||
} // end anonymous namespace
|
||||
|
||||
std::unique_ptr<OpPassBase<FuncOp>> mlir::createMemRefBoundCheckPass() {
|
||||
return std::make_unique<MemRefBoundCheck>();
|
||||
std::unique_ptr<OpPassBase<FuncOp>> mlir::createTestMemRefBoundCheckPass() {
|
||||
return std::make_unique<TestMemRefBoundCheck>();
|
||||
}
|
||||
|
||||
void MemRefBoundCheck::runOnFunction() {
|
||||
void TestMemRefBoundCheck::runOnFunction() {
|
||||
getFunction().walk([](Operation *opInst) {
|
||||
TypeSwitch<Operation *>(opInst).Case<AffineLoadOp, AffineStoreOp>(
|
||||
[](auto op) { boundCheckLoadOrStoreOp(op); });
|
||||
|
@ -48,6 +48,6 @@ void MemRefBoundCheck::runOnFunction() {
|
|||
});
|
||||
}
|
||||
|
||||
static PassRegistration<MemRefBoundCheck>
|
||||
memRefBoundCheck("memref-bound-check",
|
||||
static PassRegistration<TestMemRefBoundCheck>
|
||||
memRefBoundCheck("test-memref-bound-check",
|
||||
"Check memref access bounds in a Function");
|
Loading…
Reference in New Issue