mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
2f31822cdb
Add unit tests for checking a few tricky instruction sizes. Also remove the old tests for the instruction sizes, which were clunky and brittle. Since this is the first set of target-specific unit tests, we need to add some CMake plumbing. In the future, adding unit tests for a given target will be as simple as creating a directory with the same name as the target under unittests/Target. The tests are only run if the target is enabled in LLVM_TARGETS_TO_BUILD. Differential Revision: https://reviews.llvm.org/D24548 llvm-svn: 283990
6 lines
138 B
CMake
6 lines
138 B
CMake
foreach(t ${LLVM_TARGETS_TO_BUILD})
|
|
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${t})
|
|
add_subdirectory(${t})
|
|
endif()
|
|
endforeach()
|