[llvm-dev] big module for a project

Yuxi Chen via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 11 18:52:44 PST 2016


Thanks for your reply.
I tested it on a toy program.
It works.

Best,
Yuxi
________________________________
From: Robinson, Paul [Paul_Robinson at playstation.sony.com]
Sent: Friday, March 11, 2016 10:55 AM
To: Yuxi Chen; llvm-dev at lists.llvm.org
Subject: RE: [llvm-dev] big module for a project

Maybe use llvm-link to collect the individual bitcode .o files into one master .o file, then your tool can load just the one big .o file.
--paulr

From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Yuxi Chen via llvm-dev
Sent: Thursday, March 10, 2016 7:55 PM
To: llvm-dev at lists.llvm.org
Cc: llvmdev-bounces at cs.uiuc.edu; llvmdev at cs.uiuc.edu
Subject: [llvm-dev] big module for a project

Hi All,

I am using clang to compile Mysql source code. Because I want to do some inter-procedural analysis, hopefully, I want to get a .o(bitcode) file(a module) containing all possible function declarations and definitions. Is it possible to do that ? Or you guys have some suggestions?

To be clear, like Mysql, there is a mysqld routine, which is a major routine. I want to mysqld.o(which is generated by clang) to contain all possible function declarations and definitions. So when I do some analysis, I just need load one module, which is mysqld.o, instead of all .o files.


Best,
Yuxi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160312/698029e2/attachment.html>


More information about the llvm-dev mailing list