mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 22:30:13 +00:00
fc0ced73dc
This patch refactors BAT to be testable as a library, so we can have open-source tests on it. This further fixes an issue with basic blocks that lack a valid input offset, making BAT omit those when writing translation tables. Test Plan: new testcases added, new testing tool added (llvm-bat-dump) Differential Revision: https://reviews.llvm.org/D129382
20 lines
549 B
CMake
20 lines
549 B
CMake
set(BOLT_TOOLS_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}" CACHE PATH
|
|
"Path for binary subdirectory (defaults to '${CMAKE_INSTALL_BINDIR}')")
|
|
mark_as_advanced(BOLT_TOOLS_INSTALL_DIR)
|
|
|
|
# Move these macros to AddBolt if such a CMake module is ever created.
|
|
|
|
macro(add_bolt_tool name)
|
|
llvm_add_tool(BOLT ${ARGV})
|
|
endmacro()
|
|
|
|
macro(add_bolt_tool_symlink name)
|
|
llvm_add_tool_symlink(BOLT ${ARGV})
|
|
endmacro()
|
|
|
|
add_subdirectory(driver)
|
|
add_subdirectory(llvm-bolt-fuzzer)
|
|
add_subdirectory(bat-dump)
|
|
add_subdirectory(merge-fdata)
|
|
add_subdirectory(heatmap)
|