<div dir="auto">+1</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 4 Oct 2021, 18:57 Alex Bradbury via llvm-dev, <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 1 Oct 2021 at 16:40, via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> I've written a small program that sets up TargetLibraryInfo for a<br>
> specified triple, and compares its opinion of which libcalls are<br>
> "available" against the functions actually provided by some set<br>
> of library files.<br>
><br>
> This has been helpful in tidying up TLI's opinion about which<br>
> calls are available where, and I've committed a couple of patches<br>
> (6185ad0, 56e681a) to do some general fixup; I'm working on a<br>
> patch to get the PS4 set completely correct.  I was originally<br>
> intending to use this tool in our downstream testsuite, but...<br>
><br>
> It occurred to me that the tool might be useful to people who are<br>
> interested in tidying up TLI for other targets (which I'm not,<br>
> really, it's just that part of my effort happens to help others).<br>
> Right now the tool can only handle ELF files, but it should be<br>
> straightforward to extend to COFF/MachO if people interested in<br>
> those targets think it would be useful.<br>
><br>
> Is there interest in a tool like this?<br>
<br>
The tool sounds useful to me, thinking from the RISC-V backend's<br>
perspective. Just ELF is fine for that use case.<br>
<br>
If it's not a huge amount of additional work to make it fit for public<br>
consumption I think it would be worth sharing.<br>
<br>
Best,<br>
<br>
Alex<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>