[llvmlinux] Supporting LLVM IR output during build process
Jan-Simon Moeller
dl9pf at gmx.de
Thu Dec 4 20:50:04 UTC 2014
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
More information about the LLVMLinux
mailing list