LLVM-TLI-CHECKER(1) | LLVM | LLVM-TLI-CHECKER(1) |
llvm-tli-checker - TargetLibraryInfo vs library checker
llvm-tli-checker [options] [library-file…]
llvm-tli-checker compares TargetLibraryInfo’s opinion of the availability of library functions against the set of functions exported by the specified library files, reporting any disagreements between TLI’s opinion and whether the function is actually present. This is primarily useful for vendors to ensure the TLI for their target is correct, and the compiler will not “optimize” some code sequence into a library call that is not actually available.
$ 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.
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.
Maintained by the LLVM Team (https://llvm.org/).
2003-2023, LLVM Project
2023-02-17 | 14 |