Adding additional llvm/clang goodies (was: Re: llvm-ia64 is off
the ground...)
Erik Cederstrand
erik at cederstrand.dk
Fri Jun 17 13:53:22 UTC 2011
Den 16/06/2011 kl. 23.40 skrev Dimitry Andric:
> Here is a diff to do just that, when you define WITH_CLANG_EXTRAS in
> src.conf, in the environment, or on the make command line. In
> particular, it will build and install the following extras:
>
> * bugpoint
> * llc
> * lli
> * llvm-ar
> * llvm-as
> * llvm-bcanalyzer
> * llvm-diff
> * llvm-dis
> * llvm-extract
> * llvm-ld
> * llvm-link
> * llvm-mc
> * llvm-nm
> * llvm-objdump
> * llvm-prof
> * llvm-ranlib
> * llvm-rtdyld
> * llvm-stub
> * macho-dump
> * opt
Does anyone have an overview of which of these are actually useable on FreeBSD ELF binaries? Here's my impression from the audience (please correct me if I'm wrong):
* llvm-nm and llvm-objdump have been converted to Michael Spencer's object file library (http://www.llvm.org/devmtg/2010-11/Spencer-ObjectFiles.pdf) and should work on our binaries.
* lvm-ld only works on LLVM bitcode and either doesn't produce ELF binaries or uses binutils ld for this. Michael Spencer has plans for an llvm-ld that can replace binutils ld, but it's probably at least a year before something useful is ready. It would be great because it would bring LTO to FreeBSD.
* llvm-as is used by us already on i386/amd64(?)
* llvm-ar and llvm-ranlib are less useful as we have our own ar and ranlib by kaiw@
I don't know about the rest.
Thanks,
Erik
More information about the freebsd-toolchain
mailing list