[llvm-dev] Distributing llc and opt with own package?

Matthias Braun via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 10 10:26:05 PST 2017


Just a word of warning:

llc and opt are primarily developed as debugging tools to support LLVM testing. They are not intended to be shipped or used as code generators for frontends. They do often work in these settings but you may hit rough edges that nobody will care to fix and the behavior or commandline interface may change every release... A more stable alternative is usually to feed .ir/.bc files to clang or better link to the llvm libraries and generate the code from there.

- Matthias

> On Mar 10, 2017, at 6:31 AM, Moritz Angermann via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hi,
> 
> I was wondering, if someone could point me into the right direction,
> towards building just llc and opt (potentially 4.0 + patches) to distribute
> them in the interim with compiler?  The idea is that we’d like to pin our
> llvm ir code generator to a specific set of llc and opt tools, with
> potential patches applied, until we manage to get all those patches
> upstreamed.
> 
> I’d like to find answers to the following question:
> - How trivially can I build just llc and opt into (maybe static?)
>  distributable binaries?
> - Would generating them for multiple architectures pose any specific
>  complications?
> 
> Cheers,
> Moritz
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



More information about the llvm-dev mailing list