[llvm-dev] Whole program LLVM bitcode files

Kai Wang via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 5 15:22:34 PST 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.llvm.org/pipermail/llvm-dev/attachments/20160105/b657cebf/attachment.html>


More information about the llvm-dev mailing list