Re: [llvm-dev] [cfe-dev] Getting LLVM IR from clang

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [llvm-dev] [cfe-dev] Getting LLVM IR from clang

Alberto Barbaro via llvm-dev
Or -Xclang -disable-llvm-passes (which I find easier to spell).
--paulr

> -----Original Message-----
> From: cfe-dev [mailto:[hidden email]] On Behalf Of Alexey
> Bataev via cfe-dev
> Sent: Wednesday, November 28, 2018 5:28 PM
> To: David Greene via cfe-dev
> Subject: Re: [cfe-dev] Getting LLVM IR from clang
>
> Use -O0 -Xclang -disable-llvm-optzns
>
> Best regards,
> Alexey Bataev
>
> > 28 нояб. 2018 г., в 17:22, David Greene via cfe-dev <cfe-
> [hidden email]> написал(а):
> >
> > How do I get the LLVM IR produced by clang?  I know that -emit-llvm
> > produces IR but it seems to be after processing by LLVM (things are
> > optimized out, for example).  Is there an "official" way to get the IR
> > coming right out of clang's codegen?  I can do a hack with -mllvm
> > -print-before-all but that's icky.
> >
> > Thanks!
> >
> >                          -David
> >
> _______________________________________________
> cfe-dev mailing list
> [hidden email]
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev