Adjust module specification in `iree_mlir_benchmark_suite` (#6128)
Previously we list all fields separately, which means we need to
match the order in several different variables. It also causes
each call to iree_mlir_benchmark_suite somewhere lengthy. This
commit aggregates all bits for a module into one CMake variable
and deduplicates fields in iree_mlir_benchmark_suite calls.
Also moved the benchmark directory out of `iree/test/` and into a
more proper `iree/benchmark` place.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c495613..0edea98 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -446,6 +446,11 @@
add_subdirectory(iree/testing)
add_subdirectory(iree/test)
add_subdirectory(iree/vm)
+
+if(${IREE_BUILD_BENCHMARKS})
+ add_subdirectory(iree/benchmark)
+endif()
+
if(${IREE_BUILD_EXPERIMENTAL_ROCM})
add_subdirectory(build_tools/third_party/rocm EXCLUDE_FROM_ALL)
add_subdirectory(experimental/rocm)