[llvmlinux] Supporting LLVM IR output during build process

Jason Gionta jjgionta at ncsu.edu
Thu Dec 4 22:34:02 UTC 2014


Hi Jan-Simon,

I appreciate the quick reply. I am not currently using the build system so
I appreciate the insight.

So I believe from what you wrote LLVMLinux can emit the IR but does not use
it for final compilation. Is there LLVM IR->bzImage support?

Thanks again,

Jason

On Thu, Dec 4, 2014 at 3:50 PM, Jan-Simon Moeller <dl9pf at gmx.de> wrote:

> Hi Jason,
> Am Donnerstag, 4. Dezember 2014, 15:10:13 schrieb Jason Gionta:
> > Hello all,
> >
> > I was wondering if someone has looked at or has experience outputting
> LLVM
> > IR of LLVMLinux before linking. I hope to better understand the
> feasibility
> > of deploying IR to perform LTO per machine before final linkage. Does
> > anyone have ideas on how much effort would it take to enable in the
> current
> > LLVMLinux build process (basically the linux build system)?
> >
> > Thanks,
>
> This works already with the LLVMLinux build system.  Actually we compile
> every
> file twice. One normal compilation and a run for IR .
>
> cd targets/<yourtarget - eg x86> ; make BITCODE=1
>
> from make help
> * make BITCODE=1          - Output llvm bitcode to *.bc files
>
> Best,
> Jan-Simon
>
>


-- 
Jason Gionta
Cyber Defense Lab
North Carolina State University
jjgionta at ncsu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20141204/8036c9d0/attachment.html>


More information about the LLVMLinux mailing list