[llvmlinux] [llvm-dev] Whole program LLVM bitcode files

Duncan P. N. Exon Smith dexonsmith at apple.com
Wed Jan 6 19:43:55 UTC 2016


> On 2016-Jan-06, at 08:53, Mehdi Amini via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hi,
> 
>> On Jan 5, 2016, at 3:22 PM, Kai Wang via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>> 
>> 
>> 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?
> 
> Yes.

Just a note: llvm-link is a tool for LLVM developers (i.e., compiler
hackers), mainly for use in regression tests.  I don't recommend using
it in a production workflow.  It will certainly work for hacking
around though!


More information about the LLVMLinux mailing list