[llvm-dev] RFC: Checking TargetLibraryInfo against actual libraries
llvm-dev at lists.llvm.org
Fri Oct 1 08:40:43 PDT 2021
I've written a small program that sets up TargetLibraryInfo for a
specified triple, and compares its opinion of which libcalls are
"available" against the functions actually provided by some set
of library files.
This has been helpful in tidying up TLI's opinion about which
calls are available where, and I've committed a couple of patches
(6185ad0, 56e681a) to do some general fixup; I'm working on a
patch to get the PS4 set completely correct. I was originally
intending to use this tool in our downstream testsuite, but...
It occurred to me that the tool might be useful to people who are
interested in tidying up TLI for other targets (which I'm not,
really, it's just that part of my effort happens to help others).
Right now the tool can only handle ELF files, but it should be
straightforward to extend to COFF/MachO if people interested in
those targets think it would be useful.
Is there interest in a tool like this?
More information about the llvm-dev