Add llvm-tli-checker
authorPaul Robinson <paul.robinson@sony.com>
Tue, 9 Nov 2021 00:29:28 +0000 (16:29 -0800)
committerPaul Robinson <paul.robinson@sony.com>
Tue, 9 Nov 2021 00:29:28 +0000 (16:29 -0800)
commit38be8f4057c1bf19fd02d08d6116e28983a49d8d
tree3b5c5cfe39ad975cf5873269aed2a01916b1aa05
parentae40d625410036d65cfe09f2122b81450f62ea99
Add llvm-tli-checker

A new tool that compares TargetLibraryInfo's opinion of the availability
of library function calls against the functions actually exported by a
specified set of libraries. Can be helpful in verifying the correctness
of TLI for a given target, and avoid mishaps such as had to be addressed
in D107509 and 94b4598d.

The tool currently supports ELF object files only, although it's unlikely
to be hard to add support for other formats.

Re-commits 62dd488 with changes to use pre-generated objects, as not all
bots have ld.lld available.

Differential Revision: https://reviews.llvm.org/D111358
llvm/docs/CommandGuide/index.rst
llvm/docs/CommandGuide/llvm-tli-checker.rst [new file with mode: 0644]
llvm/test/tools/llvm-tli-checker/Inputs/ps4-tli-check.right.so [new file with mode: 0644]
llvm/test/tools/llvm-tli-checker/Inputs/ps4-tli-check.wrong.so [new file with mode: 0644]
llvm/test/tools/llvm-tli-checker/ps4-tli-check.s [new file with mode: 0644]
llvm/tools/llvm-tli-checker/CMakeLists.txt [new file with mode: 0644]
llvm/tools/llvm-tli-checker/Opts.td [new file with mode: 0644]
llvm/tools/llvm-tli-checker/llvm-tli-checker.cpp [new file with mode: 0644]