similar to: [LLVMdev] building whole-program bitcode with LLVM

Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] building whole-program bitcode with LLVM"

2009 Oct 15
0
[LLVMdev] strace for whole-program bitcodes (was: RE: building whole-program bitcode with LLVM)
Hi Terence, I believe that this is in fact similar to an approach Coverity uses (or used at one time) as a robust solution to determine what was done during a build. I can imagine that one can build a robust system following this technique, but it also seems like it might be quite a bit of work. Another possible alternative not mentioned is to teach the compiler driver (clang, most likely) to
2009 Oct 08
5
[LLVMdev] strace for whole-program bitcodes (was: RE: building whole-program bitcode with LLVM)
Hi, It would be nice if it were easier for relative novices to build whole-program bitcodes for large, complex applications with hairy build systems. Several readers of this list have been trying various approaches for a few months but as far as I know we haven't yet found a good general solution. Approaches that have been tried include 1) placing wrappers for the usual tools (gcc, ar, as,
2009 Oct 15
0
[LLVMdev] strace for whole-program bitcodes (was: RE: building whole-program bitcode with LLVM)
Hi, Kelly, Have you found the solution for this problem? I met a similar problem when I were trying to test MySQL 5.0 with LLVM. The following is my step, but still failed since llvm-ld can not recognize some gcc link flags. 1. during the configuration, use a script such as llvm-gcc.sh, at this time the script only invoke the gcc. This is necessary because the gnu configure will test the
2009 Oct 30
2
[LLVMdev] strace for whole-program bitcodes
--emit-llvm?? On Fri, Oct 30, 2009 at 7:55 AM, Viktor Kutuzov <vkutuzov at accesssoftek.com>wrote: > Hello everyone, > > I'm working on passing parameters for gold/LTO plug-in and could add this > one as well. > Just need an option name. Could anybody suggest one? > > Viktor > > ----- Original Message ----- > From: "Nick Lewycky" <nicholas at
2009 Oct 29
0
[LLVMdev] strace for whole-program bitcodes
Hello everyone, I'm working on passing parameters for gold/LTO plug-in and could add this one as well. Just need an option name. Could anybody suggest one? Viktor ----- Original Message ----- From: "Nick Lewycky" <nicholas at mxc.ca> To: "Daniel Dunbar" <daniel at zuster.org> Cc: "Kelly, Terence P (HP Labs Researcher)" <terence.p.kelly at
2009 Oct 30
0
[LLVMdev] strace for whole-program bitcodes
--emit-llvm, if not conflict >>> Paul Davey <plmdvy at gmail.com> 10/30/2009 11:11 AM >>> --emit-llvm?? On Fri, Oct 30, 2009 at 7:55 AM, Viktor Kutuzov <vkutuzov at accesssoftek.com> wrote: Hello everyone, I'm working on passing parameters for gold/LTO plug-in and could add this one as well. Just need an option name. Could anybody suggest one? Viktor
2009 Oct 16
2
[LLVMdev] strace for whole-program bitcodes
Daniel Dunbar wrote: > On Thu, Oct 15, 2009 at 7:14 AM, Timo Juhani Lindfors > <timo.lindfors at iki.fi> wrote: >> Tianwei <tianwei.sheng at gmail.com> writes: >>> someone suggested me to use gold-plugin, I know nothing about it yet, I will >>> have a try later. Does anyone have a good solution for this problem? >> Afaik gold does not help here. I
2009 Oct 30
2
[LLVMdev] I have built a whole-program bitcode file for openldap-2.19
Hi,all I have written a wrapper which includes gcc/g++,ld and llvm counterparts, it invokes native or llvm compiler and linker according to the options it receives,after I replace the native tools with my wrapper in libtool script, I just typed like this make CC=wrapper AC_CFLAGS=-emit-llvm then I got a bc file of slapd and other tools in clients directory The accessory is the whole-program
2009 Oct 30
0
[LLVMdev] I have built a whole-program bitcode file for openldap-2.19
>I have written a wrapper which includes gcc/g++,ld and llvm counterparts, >it invokes native or llvm compiler and linker according to the options it >receives,after I replace the native tools with my wrapper in libtool >script, I just typed like this > >make CC=wrapper AC_CFLAGS=-emit-llvm > >then I got a bc file of slapd and other tools in clients directory > >The
2016 Jan 05
2
Whole program LLVM bitcode files
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? Or should I use
2009 Oct 30
0
[LLVMdev] I have built a whole-program bitcode file for openldap-2.4.19
OK,I have updated my wrapper and I have successfully build whole-program bitcode file for BIND 9.6.1 > > Message: 5 > Date: Fri, 30 Oct 2009 17:40:43 +0800 > From: Nan Zhu <zhunansjtu at gmail.com> > Subject: [LLVMdev] I have built a whole-program bitcode file for > openldap-2.19 > To: llvmdev at cs.uiuc.edu > Message-ID: >
2009 Oct 30
2
[LLVMdev] I have built a whole-program bitcode file foropenldap-2.19
I haven't test it completely for Apache , when I finish that I will post it ASAP. BTW, Have you archieved the same goal with gold-plugin???I once tried it but just got a failure for llvm tools is not completely compatible with GNU ones. ----- Original Message ----- From: "Keppler, Dave" <dkeppler at mitre.org> To: "Nan Zhu" <zhunansjtu at gmail.com>;
2010 Jun 06
1
[LLVMdev] whole program bitcode and gold plugin
Hi, I found some posts on the topic of whole program bitcode and gold plugin. I put lto_codegen_write_merged_modules(cg, "/path/to/output.bc") into gold-plugin.cpp all_symbols_read_hook() and compiled one autotooled program (ftp://ftp.gnu.org/gnu/diction/diction-1.11.tar.gz) as described in the gold plugin document, however, I still did not see the output.bc. Can anyone has
2011 Jun 04
2
[LLVMdev] Compiling whole programs to bitcode
With Clang, it's reasonably straightforward to compile a C/C++ file to bitcode. Is there a way to compile a program together with all the standard library functions it uses, to that format? That is, suppose you have hello.c that calls printf, how would you go about generating the bitcode representation of both the main function from hello.c, and printf itself (plus whatever other standard
2011 Jun 04
0
[LLVMdev] Compiling whole programs to bitcode
On 6/3/11 10:12 PM, Russell Wallace wrote: > With Clang, it's reasonably straightforward to compile a C/C++ file to bitcode. > > Is there a way to compile a program together with all the standard > library functions it uses, to that format? That is, suppose you have > hello.c that calls printf, how would you go about generating the > bitcode representation of both the main
2019 Oct 10
2
Is it possible to generate a whole kernel bitcode for Linux using clang?
Hello, With clang/llvm 9.0 adding support for ASM GOTOs, it is now possible to compile the latest Linux kernel with clang without any modification. However, is it possible to generate a single bitcode for the whole Linux kernel? Earlier approaches would involve hacks, like compiling separate bitcode files and then linking with llvm-link, or using wllvm, or using some other wrapper. Frequently,
2011 Jun 04
4
[LLVMdev] Compiling whole programs to bitcode
On Sat, Jun 4, 2011 at 5:21 AM, Charles Davis <cdavis at mymail.mines.edu> wrote: > You can link your bitcode together with glibc's bitcode by using the > llvm-link utility. Then you can run DCE over the bitcode with "opt -dce" > and cull all the functions you don't need. Right, that's still a reasonably straightforward solution for C... I think what I'm
2009 Nov 07
2
[LLVMdev] linking share libraries when building whole-program bitcode file
Hi,all I'm working on how to build a whole-program bitcode file for big projects with a general solution,and I met a problem I simplify it as this: llvm-gcc -c -emit-llvm test.c llvm-ld test.o -lpthread //here llvm-ld tells me that "Cannot find library pthread" then I do this: llvm-ld test.o lli -load=/usr/lib/libpthread.so a.out.bc //lli tells me the /usr/lib/libpthread.so
2016 Jan 06
3
whole linux kernel bitcode
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. Should I use libLTO to link all these bitcode files
2011 Jun 04
0
[LLVMdev] Compiling whole programs to bitcode
On Jun 3, 2011, at 9:27 PM, Russell Wallace wrote: > only having to write a parser for the ASCII version of bitcode > (dead easy) Don't do this. Seriously. Waste of time. There's a parser in llvm, it's pretty good at reading and writing bitcode. Just do your analysis using the llvm apis. -eric