[llvmlinux] Whole program LLVM bitcode files

Kai Wang wangkai.cas at gmail.com
Tue Jan 5 23:22:34 UTC 2016


Hi all,

I'm trying to generate whole program bitcode files for linux kernel
and do interprocedural
analysis on kernel.

I use llvmlinux to compile kernel with clang and  generate a bunch of
bitcode files successfully.
I need to link all these bitcode files together into a single bitcode file,
so that I can run whole program analysis.

Can I use llvm-link to achieve this?
Or should I use libLTO to link all these bitcode files together? I guess I
have to modify the linux kernel's build scripts and Makefiles?
I'm kind of confused. Any suggestions?

Thank you

Regards,
Kai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20160105/b657cebf/attachment.html>


More information about the LLVMLinux mailing list