Ensure new files are checked by bazel_to_cmake (#5473)
These files would previously be untracked, so not picked up by
`git diff`. Add them to the index and then diff against `HEAD` instead.
Tested: Before adding the missing files to this PR, the check fails:
https://github.com/google/iree/pull/5473/checks?check_run_id=2358186288
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index c349e61..5914b2b 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -27,7 +27,10 @@
- name: Running bazel_to_cmake for IREE TF Integration Tests
run: ./build_tools/bazel_to_cmake/bazel_to_cmake.py --root_dir=integrations/tensorflow/e2e --verbosity=2
- name: Checking Diff
- run: git diff --exit-code
+ run: |
+ # Make sure to pick up new files that have been added.
+ git add -A
+ git diff HEAD --exit-code
buildifier:
runs-on: ubuntu-18.04
diff --git a/iree/compiler/Conversion/LinalgToLinalg/test/CMakeLists.txt b/iree/compiler/Conversion/LinalgToLinalg/test/CMakeLists.txt
new file mode 100644
index 0000000..3e3696c
--- /dev/null
+++ b/iree/compiler/Conversion/LinalgToLinalg/test/CMakeLists.txt
@@ -0,0 +1,23 @@
+################################################################################
+# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
+# iree/compiler/Conversion/LinalgToLinalg/test/BUILD #
+# #
+# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
+# CMake-only content. #
+# #
+# To disable autogeneration for this file entirely, delete this header. #
+################################################################################
+
+iree_add_all_subdirs()
+
+iree_lit_test_suite(
+ NAME
+ lit
+ SRCS
+ "conv1x1_to_matmul.mlir"
+ DATA
+ iree::tools::IreeFileCheck
+ iree::tools::iree-opt
+)
+
+### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
diff --git a/iree/compiler/Conversion/VectorToLLVM/test/CMakeLists.txt b/iree/compiler/Conversion/VectorToLLVM/test/CMakeLists.txt
new file mode 100644
index 0000000..2efb4e4
--- /dev/null
+++ b/iree/compiler/Conversion/VectorToLLVM/test/CMakeLists.txt
@@ -0,0 +1,23 @@
+################################################################################
+# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
+# iree/compiler/Conversion/VectorToLLVM/test/BUILD #
+# #
+# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
+# CMake-only content. #
+# #
+# To disable autogeneration for this file entirely, delete this header. #
+################################################################################
+
+iree_add_all_subdirs()
+
+iree_lit_test_suite(
+ NAME
+ lit
+ SRCS
+ "vector_contract_to_aarch64_asm.mlir"
+ DATA
+ iree::tools::IreeFileCheck
+ iree::tools::iree-opt
+)
+
+### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###