[Mlir-commits] [mlir] fec6c5a - [MLIR][NFC] Move TestDialect -> Dialect/Test
Uday Bondhugula
llvmlistbot at llvm.org
Fri Mar 27 18:50:11 PDT 2020
Author: Uday Bondhugula
Date: 2020-03-28T07:12:55+05:30
New Revision: fec6c5ac5e5756c33c0a3d57464298ec701e4821
URL: https://github.com/llvm/llvm-project/commit/fec6c5ac5e5756c33c0a3d57464298ec701e4821
DIFF: https://github.com/llvm/llvm-project/commit/fec6c5ac5e5756c33c0a3d57464298ec701e4821.diff
LOG: [MLIR][NFC] Move TestDialect -> Dialect/Test
Move test/lib/TestDialect to test/lib/Dialect/Test - makes the dir
structure more uniform.
Signed-off-by: Uday Bondhugula <uday at polymagelabs.com>
Differential Revision: https://reviews.llvm.org/D76677
Added:
mlir/test/lib/Dialect/Test/CMakeLists.txt
mlir/test/lib/Dialect/Test/TestDialect.cpp
mlir/test/lib/Dialect/Test/TestDialect.h
mlir/test/lib/Dialect/Test/TestOps.td
mlir/test/lib/Dialect/Test/TestPatterns.cpp
mlir/test/lib/Dialect/Test/lit.local.cfg
Modified:
mlir/test/lib/CMakeLists.txt
mlir/test/lib/Dialect/CMakeLists.txt
mlir/test/lib/IR/CMakeLists.txt
mlir/test/lib/Transforms/CMakeLists.txt
Removed:
mlir/test/lib/TestDialect/CMakeLists.txt
mlir/test/lib/TestDialect/TestDialect.cpp
mlir/test/lib/TestDialect/TestDialect.h
mlir/test/lib/TestDialect/TestOps.td
mlir/test/lib/TestDialect/TestPatterns.cpp
mlir/test/lib/TestDialect/lit.local.cfg
################################################################################
diff --git a/mlir/test/lib/CMakeLists.txt b/mlir/test/lib/CMakeLists.txt
index 591847802f7b..3e69c7514d8f 100644
--- a/mlir/test/lib/CMakeLists.txt
+++ b/mlir/test/lib/CMakeLists.txt
@@ -2,5 +2,4 @@ add_subdirectory(DeclarativeTransforms)
add_subdirectory(Dialect)
add_subdirectory(IR)
add_subdirectory(Pass)
-add_subdirectory(TestDialect)
add_subdirectory(Transforms)
diff --git a/mlir/test/lib/Dialect/CMakeLists.txt b/mlir/test/lib/Dialect/CMakeLists.txt
index 160fe9c203da..9008b86314be 100644
--- a/mlir/test/lib/Dialect/CMakeLists.txt
+++ b/mlir/test/lib/Dialect/CMakeLists.txt
@@ -1,2 +1,3 @@
add_subdirectory(Affine)
add_subdirectory(SPIRV)
+add_subdirectory(Test)
diff --git a/mlir/test/lib/TestDialect/CMakeLists.txt b/mlir/test/lib/Dialect/Test/CMakeLists.txt
similarity index 100%
rename from mlir/test/lib/TestDialect/CMakeLists.txt
rename to mlir/test/lib/Dialect/Test/CMakeLists.txt
diff --git a/mlir/test/lib/TestDialect/TestDialect.cpp b/mlir/test/lib/Dialect/Test/TestDialect.cpp
similarity index 100%
rename from mlir/test/lib/TestDialect/TestDialect.cpp
rename to mlir/test/lib/Dialect/Test/TestDialect.cpp
diff --git a/mlir/test/lib/TestDialect/TestDialect.h b/mlir/test/lib/Dialect/Test/TestDialect.h
similarity index 100%
rename from mlir/test/lib/TestDialect/TestDialect.h
rename to mlir/test/lib/Dialect/Test/TestDialect.h
diff --git a/mlir/test/lib/TestDialect/TestOps.td b/mlir/test/lib/Dialect/Test/TestOps.td
similarity index 100%
rename from mlir/test/lib/TestDialect/TestOps.td
rename to mlir/test/lib/Dialect/Test/TestOps.td
diff --git a/mlir/test/lib/TestDialect/TestPatterns.cpp b/mlir/test/lib/Dialect/Test/TestPatterns.cpp
similarity index 100%
rename from mlir/test/lib/TestDialect/TestPatterns.cpp
rename to mlir/test/lib/Dialect/Test/TestPatterns.cpp
diff --git a/mlir/test/lib/TestDialect/lit.local.cfg b/mlir/test/lib/Dialect/Test/lit.local.cfg
similarity index 100%
rename from mlir/test/lib/TestDialect/lit.local.cfg
rename to mlir/test/lib/Dialect/Test/lit.local.cfg
diff --git a/mlir/test/lib/IR/CMakeLists.txt b/mlir/test/lib/IR/CMakeLists.txt
index bf0f8eed4410..c4e4ebc9b88e 100644
--- a/mlir/test/lib/IR/CMakeLists.txt
+++ b/mlir/test/lib/IR/CMakeLists.txt
@@ -6,8 +6,8 @@ add_llvm_library(MLIRTestIR
ADDITIONAL_HEADER_DIRS
)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../TestDialect)
-include_directories(${CMAKE_CURRENT_BINARY_DIR}/../TestDialect)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../Dialect/Test)
+include_directories(${CMAKE_CURRENT_BINARY_DIR}/../Dialect/Test)
target_link_libraries(MLIRTestIR
PUBLIC
diff --git a/mlir/test/lib/Transforms/CMakeLists.txt b/mlir/test/lib/Transforms/CMakeLists.txt
index b02848eed4cc..904a47221ac1 100644
--- a/mlir/test/lib/Transforms/CMakeLists.txt
+++ b/mlir/test/lib/Transforms/CMakeLists.txt
@@ -28,8 +28,8 @@ add_llvm_library(MLIRTestTransforms
MLIRTestVectorTransformPatternsIncGen
)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../TestDialect)
-include_directories(${CMAKE_CURRENT_BINARY_DIR}/../TestDialect)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../Dialect/Test)
+include_directories(${CMAKE_CURRENT_BINARY_DIR}/../Dialect/Test)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../DeclarativeTransforms)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../DeclarativeTransforms)
More information about the Mlir-commits
mailing list