[llvm] TableGen: Emit static hash table for runtime libcalls (PR #150192)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 16 08:24:27 PDT 2025
================
@@ -11,3 +11,20 @@ add_benchmark(FormatVariadicBM FormatVariadicBM.cpp PARTIAL_SOURCES_INTENDED)
add_benchmark(GetIntrinsicInfoTableEntriesBM GetIntrinsicInfoTableEntriesBM.cpp PARTIAL_SOURCES_INTENDED)
add_benchmark(SandboxIRBench SandboxIRBench.cpp PARTIAL_SOURCES_INTENDED)
+# Extract the list of symbols in a random utility as sample data.
+set(SYMBOL_TEST_DATA_FILE "sample_symbol_list.txt")
+set(SYMBOL_TEST_DATA_SOURCE_BINARY $<TARGET_FILE:llc>)
+
+add_custom_command(OUTPUT ${SYMBOL_TEST_DATA_FILE}
+ COMMAND $<TARGET_FILE:llvm-nm> --no-demangle --no-sort
----------------
s-barannikov wrote:
I'm not a CMake guru, so I blindly trust the documentation:
> If COMMAND specifies an executable target name (created by the add_executable() command), it will automatically be replaced by the location of the executable created at build time if either of the following is true:
>
> * The target is not being cross-compiled <...>.
> * The target is being cross-compiled and an emulator is provided <...>.
https://github.com/llvm/llvm-project/pull/150192
More information about the llvm-commits
mailing list