凌英剑 via llvm-dev
2016-Jul-24 06:43 UTC
[llvm-dev] Getting bc files of some multithreading workloads
Hi I am trying to generate bc files from some workloads like redis, nginx and mysql.Now, I have got some of them by changing makefiles of redis and nginx. However,when I use the same method to complie Mysql, I find its makefile can only be generated by cmake. The problem is the makefile generated by cmake is too complicated to understand it. 1.Has anyone tried to get bc files by changing makefiles? 2.Are there any other ways to generate these files? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160724/70ef73c4/attachment.html>
Mehdi Amini via llvm-dev
2016-Jul-24 16:37 UTC
[llvm-dev] Getting bc files of some multithreading workloads
Hi,> On Jul 23, 2016, at 11:43 PM, 凌英剑 via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi > I am trying to generate bc files from some workloads like redis, nginx and mysql.Now, I have got some of them by changing makefiles of redis and nginx. However,when I use the same method to complie Mysql, I find its makefile can only be generated by cmake. The problem is the makefile generated by cmake is too complicated to understand it.I don’t what kind of change you’re doing, but you probably should do it at the CMake level.> 1.Has anyone tried to get bc files by changing makefiles? > 2.Are there any other ways to generate these files?If you’re trying to get bitcode for the full MySQL program, I’d go with an LTO build. The input files to the linker will be bitcode, and the linker can dump the merged bitcode. — Mehdi