[llvm-dev] Getting bc files of some multithreading workloads

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Sun Jul 24 09:37:27 PDT 2016


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



More information about the llvm-dev mailing list