[PATCH] D75066: [mlir][spirv] NFC: Move test passes to test/lib
Lei Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 11:17:21 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8358ddbe5d32: [mlir][spirv] NFC: Move test passes to test/lib (authored by antiagainst).
Changed prior to commit:
https://reviews.llvm.org/D75066?vs=246255&id=246267#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75066/new/
https://reviews.llvm.org/D75066
Files:
mlir/test/CMakeLists.txt
mlir/test/Dialect/CMakeLists.txt
mlir/test/Dialect/SPIRV/CMakeLists.txt
mlir/test/Dialect/SPIRV/TestAvailability.cpp
mlir/test/lib/CMakeLists.txt
mlir/test/lib/Dialect/CMakeLists.txt
mlir/test/lib/Dialect/SPIRV/CMakeLists.txt
mlir/test/lib/Dialect/SPIRV/TestAvailability.cpp
mlir/tools/mlir-opt/mlir-opt.cpp
Index: mlir/tools/mlir-opt/mlir-opt.cpp
===================================================================
--- mlir/tools/mlir-opt/mlir-opt.cpp
+++ mlir/tools/mlir-opt/mlir-opt.cpp
@@ -32,6 +32,7 @@
void registerMemRefBoundCheck();
void registerPassManagerTestPass();
void registerPatternsTestPass();
+void registerPrintOpAvailabilityPass();
void registerSimpleParametricTilingPass();
void registerSymbolTestPasses();
void registerTestAffineDataCopyPass();
@@ -84,6 +85,7 @@
registerMemRefBoundCheck();
registerPassManagerTestPass();
registerPatternsTestPass();
+ registerPrintOpAvailabilityPass();
registerSimpleParametricTilingPass();
registerSymbolTestPasses();
registerTestAffineDataCopyPass();
Index: mlir/test/lib/Dialect/SPIRV/TestAvailability.cpp
===================================================================
--- mlir/test/lib/Dialect/SPIRV/TestAvailability.cpp
+++ mlir/test/lib/Dialect/SPIRV/TestAvailability.cpp
@@ -75,9 +75,12 @@
});
}
-static PassRegistration<PrintOpAvailability>
- printOpAvailabilityPass("test-spirv-op-availability",
- "Test SPIR-V op availability");
+namespace mlir {
+void registerPrintOpAvailabilityPass() {
+ PassRegistration<PrintOpAvailability> printOpAvailabilityPass(
+ "test-spirv-op-availability", "Test SPIR-V op availability");
+}
+} // namespace mlir
//===----------------------------------------------------------------------===//
// Converting target environment pass
Index: mlir/test/lib/CMakeLists.txt
===================================================================
--- mlir/test/lib/CMakeLists.txt
+++ mlir/test/lib/CMakeLists.txt
@@ -1,4 +1,5 @@
add_subdirectory(DeclarativeTransforms)
+add_subdirectory(Dialect)
add_subdirectory(IR)
add_subdirectory(Pass)
add_subdirectory(TestDialect)
Index: mlir/test/CMakeLists.txt
===================================================================
--- mlir/test/CMakeLists.txt
+++ mlir/test/CMakeLists.txt
@@ -1,4 +1,3 @@
-add_subdirectory(Dialect)
add_subdirectory(EDSC)
add_subdirectory(mlir-cpu-runner)
add_subdirectory(SDBM)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75066.246267.patch
Type: text/x-patch
Size: 2109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200224/1c390623/attachment.bin>
More information about the llvm-commits
mailing list