[llvm-dev] How to generate .bc file using configure && make on Mac OS X?

Jakub (Kuba) Kuderski via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 28 08:39:57 PST 2019

> but doesn't emit optnone and nounwind attributes

On Mon, Jan 28, 2019 at 11:35 AM Jakub (Kuba) Kuderski <
kubakuderski at gmail.com> wrote:

> As far as I understand, gllvm doesn't run LTO pipeline or any cross-module
> optimization, and the optimization level provided is only used to compile
> each Translation Unit separately.
> If you want to have LTO-like build, you can first run gllvm with `-O3
> -Xclang -disable-llvm-optzns` (builds code with no optimizations, but
> doesn't emit optnone and nounwind attributes) and later run opt on the
> final bitcode. Note that the results might not be the same as running a
> proper LTO build because of different pass manager pipelines.
> On Mon, Jan 28, 2019 at 11:24 AM Peng Yu <pengyu.ut at gmail.com> wrote:
>> This works great.
>> > You can also try using the gllvm wrapper:
>> https://github.com/SRI-CSL/gllvm ; it's quite reliable and easy to use
>> in my experience.
>> Just to be sure. Only one version of bc file will be generated that
>> corresponds to the compiler options provide at configure?
>> The original approach using ld.gold will provide several .bc files
>> that correspond to different stages of the optimization.
>> I think using gllvm, I need to specify the corresponding -O? option to
>> the correct optimization stage of the bc file? Thanks.
>> --
>> Regards,
>> Peng
> --
> Jakub Kuderski

Jakub Kuderski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190128/92a71bd3/attachment.html>

More information about the llvm-dev mailing list