LLVM-TLI-CHECKER(1)
π LLVM-TLI-CHECKER(1): TargetLibraryInfo vs library checker π
π NAME π
llvm-tli-checker β TargetLibraryInfo vs library checker
β¨ SYNOPSIS β¨
llvm-tli-checker [options] [library-file...]
π DESCRIPTION π
okay so here's the tea, bestie: llvm-tli-checker compares TargetLibraryInfo's opinion of whether library functions are available against the actual set of functions exported by the library files you specify. It reports any disagreements between TLI's opinion and whether the function is actually present. This is primarily useful for vendors to make sure the TLI for their target is correct, and so the compiler will not "optimize" some code sequence into a library call that is not actually available. periodt. π
π§ͺ EXAMPLE π§ͺ
$ llvm-tli-checker --triple x86_64-scei-ps4 example.so
TLI knows 466 symbols, 235 available for 'x86_64-scei-ps4'
Looking for symbols in 'example.so'
Found 235 global function symbols in 'example.so'
Found a grand total of 235 library symbols
<< TLI yes SDK no: '_ZdaPv' aka operator delete[](void*)
>> TLI no SDK yes: '_ZdaPvj' aka operator delete[](void*, unsigned int)
<< Total TLI yes SDK no: 1
>> Total TLI no SDK yes: 1
== Total TLI yes SDK yes: 234
FAIL: LLVM TLI doesn't match SDK libraries.
π OPTIONS π
--dump-tliβ Print "available"/"not available" for each library function, according to TargetLibraryInfo's information for the specified triple, and exit. This option does not read any input files. π«Ά--help,-hβ Print a summary of command line options and exit. iconic.--libdir=<directory>β A base directory to prepend to each library file path. This is handy when there are a number of library files all in the same directory, or a list of input filenames are kept in a response file. π--report=<level>β The amount of information to report.<level>can besummary,discrepancy, orfull. Asummaryreport gives only the count of matching and mis-matching symbols;discrepancylists the mis-matching symbols; andfulllists all symbols known to TLI, matching or mis-matching. The default isdiscrepancy.--separateβ Read and report a summary for each library file separately. This can be useful to identify library files that don't contribute anything that TLI knows about. Implies--report=summary(can be overridden).--triple=<triple>β The triple to use for initializing TargetLibraryInfo.@<FILE>β Read command-line options and/or library names from response file<FILE>.
πͺ EXIT STATUS πͺ
llvm-tli-checker returns 0 even if there are mismatches. It returns a non-zero exit code if there is an unrecognized option, or no input files are provided. no cap, that's literally the rule. π
π«Ά Author π«Ά
Maintained by the LLVM Team (https://llvm.org/).
π Copyright π
2003-2026, LLVM Project
okayyy that's the whole page, signed off from source/version LLVM / 23, dated 2026-10-20. bye bestie ππ¦β¨
π¦ where this page comes from
- arch rolling: llvm 23.1.4-1 Β· Apache-2.0 WITH LLVM-exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms