LLVM-TLI-CHECKER(1)
π NAME π
okay so bestie, welcome to llvm-tli-checker β it's literally the TargetLibraryInfo vs library checker β¨
πΈ SYNOPSIS πΈ
llvm-tli-checker [options] [library-file...]
π¦ DESCRIPTION π¦
so here's the vibe: llvm-tli-checker takes TargetLibraryInfo's whole opinion about which library functions are available, and holds it up against the actual set of functions that the library files you named actually export. then it reports every single disagreement between what TLI thinks and whether the function is really actually there π
this is highkey for vendors, ngl β it's how you make sure the TLI for your target is correct, so the compiler doesn't go "optimize" some innocent little code sequence into a library call that does not exist. because that would be a bad time π 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β prints"available"/"not available"for every single library function, going off what TargetLibraryInfo knows for the triple you specified, then dips out (exits). π«Ά and no, this one does not read any input files, bestie.--help,-hβ prints a summary of the command line options and exits. the classic. the icon. π--libdir=<directory>β a base directory that gets prepended to every library file path. super handy when you've got a whole bunch of library files all chilling in the same directory, or when a list of input filenames is being kept in a response file. ποΈ--report=<level>β how much tea gets spilled.<level>can besummary,discrepancy, orfull. asummaryreport gives you only the count of matching and mis-matching symbols;discrepancylists the mis-matching symbols; andfulllists all the symbols known to TLI, matching or mis-matching. the default isdiscrepancy. π--separateβ reads and reports a summary for each library file separately. this one's cute when you wanna identify library files that don't contribute anything TLI even knows about. it implies--report=summary(and yes, that can be overridden). π§--triple=<triple>β the triple used for initializing TargetLibraryInfo. that's it, that's the whole job. π@<FILE>β reads command-line options and/or library names from the response file<FILE>. π
π EXIT STATUS π
llvm-tli-checker returns 0 even if there are mismatches β yeah, I know, it's giving unbothered. π but it will return a non-zero exit code if there's an unrecognized option, or if no input files are provided.
π Author π
maintained by the LLVM Team (https://llvm.org/). slay. π«Ά
β Copyright β
2003-2026, LLVM Project
and that's the whole page, bestie π this was LLVM-TLI-CHECKER from the LLVM crew, dated 2026-05-15 β mwah, go check those libraries π₯π
π¦ where this page comes from
- fedora 44: llvm21 21.1.8-5.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm21 21.1.8-5.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms