<div dir="ltr"><br clear="all"><div>Hi all,</div><div><br></div><div>I&#39;m trying to generate whole program bitcode files for linux kernel and do <span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">interprocedural analysis on kernel.</span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">I use llvmlinux to compile kernel with clang and  generate a bunch of bitcode files successfully.</span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">I need to link all these bitcode files together into a single bitcode file, so that I can run whole program analysis. </span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">Can I use llvm-link to achieve this?</span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">Or should I use l</span><span style="font-size:13px;font-family:Arial,Helvetica,sans-serif">ibLTO</span> to link all these bitcode files together? I guess I have to modify the linux kernel&#39;s build scripts and Makefiles?</div><div>I&#39;m kind of confused. Any suggestions?</div><div><br></div><div>Thank you</div><div class="gmail_signature"><div dir="ltr"><br></div><div dir="ltr">Regards,<div>Kai</div></div></div>
</div>