[llvm-dev] get llvm IR after a clang optimization pass.

regis portalez via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 28 06:50:37 PDT 2015


Hi, 

 

I’d like to run clang with some optimization passes (-reassociate,
-simplifycfg, -dce
)

 

But in the end I need to dump the llvm IR (no link to assembly generation). 

 

I didn’t find any way to do  that. 

 

I found out that passes are run via opt, but opt generates bc code, and I
want IR. 

 

Any help will be welcome

 

Thanks, 

 

Régis

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150828/ff8ceb81/attachment.html>


More information about the llvm-dev mailing list