search for: all_symbols_read_hook

Displaying 9 results from an estimated 9 matches for "all_symbols_read_hook".

Did you mean: all_symbols_read_hoo
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 succeeded in doing this share with me how you archive this or what I may miss? Thanks very much, Guolia...
2009 Oct 15
1
[LLVMdev] [Fwd: Re: strace for whole-program bitcodes]
...code. However, it should be >possible to find a way to get gold to leave the merged bitcode around >somewhere, or perhaps do something like llvm-ld. Nicholas? > I've had some success by adding a call to lto_codegen_write_merged_modules(cg, somePath) at the end of the gold plugin's all_symbols_read_hook() function just before it calls lto_codegen_dispose(cg). The somePath is set via a plugin option which I patched llvm-gcc to pass through as a derivation from its -o argument. It has worked on several mid-complexity applications I've tried so far (lighttpd, wu-ftpd, tcdump, and the sqlite lib...
2009 Oct 16
2
[LLVMdev] strace for whole-program bitcodes
...39;t quite good enough, because at the last final link > steps gold will still generate native code. However, it should be > possible to find a way to get gold to leave the merged bitcode around > somewhere, or perhaps do something like llvm-ld. Nicholas? It's easy. In gold-plugin.cpp all_symbols_read_hook() where lto_codegen_compile(cg, ...) is currently called, call lto_codegen_write_merged_modules(cg, "/path/to/output.bc") instead. If someone were to rig this up to a command-line flag (search for LDPT_OPTION in the same file) then I would like to commit that change. Nick > The a...
2009 Oct 30
2
[LLVMdev] strace for whole-program bitcodes
...because at the last final link > > steps gold will still generate native code. However, it should be > > possible to find a way to get gold to leave the merged bitcode around > > somewhere, or perhaps do something like llvm-ld. Nicholas? > > It's easy. In gold-plugin.cpp all_symbols_read_hook() where > lto_codegen_compile(cg, ...) is currently called, call > lto_codegen_write_merged_modules(cg, "/path/to/output.bc") instead. > > If someone were to rig this up to a command-line flag (search for > LDPT_OPTION in the same file) then I would like to commit that chan...
2009 Oct 29
0
[LLVMdev] strace for whole-program bitcodes
...39;t quite good enough, because at the last final link > steps gold will still generate native code. However, it should be > possible to find a way to get gold to leave the merged bitcode around > somewhere, or perhaps do something like llvm-ld. Nicholas? It's easy. In gold-plugin.cpp all_symbols_read_hook() where lto_codegen_compile(cg, ...) is currently called, call lto_codegen_write_merged_modules(cg, "/path/to/output.bc") instead. If someone were to rig this up to a command-line flag (search for LDPT_OPTION in the same file) then I would like to commit that change. Nick > The a...
2009 Oct 30
0
[LLVMdev] strace for whole-program bitcodes
...39;t quite good enough, because at the last final link > steps gold will still generate native code. However, it should be > possible to find a way to get gold to leave the merged bitcode around > somewhere, or perhaps do something like llvm-ld. Nicholas? It's easy. In gold-plugin.cpp all_symbols_read_hook() where lto_codegen_compile(cg, ...) is currently called, call lto_codegen_write_merged_modules(cg, "/path/to/output.bc") instead. If someone were to rig this up to a command-line flag (search for LDPT_OPTION in the same file) then I would like to commit that change. Nick > The adva...
2010 Aug 31
1
[LLVMdev] gold-plugin compilation error
...XTRA_LIBRARY_PATHâ was not declared in this scope gold-plugin.cpp:200: error: âset_extra_library_pathâ was not declared in this scope gold-plugin.cpp:200: error: âunion ld_plugin_tv::<anonymous>â has no member named âtv_set_extra_library_pathâ gold-plugin.cpp: In function âld_plugin_status all_symbols_read_hook()â: gold-plugin.cpp:443: error: invalid conversion from âconst char*â to âchar*â gold-plugin.cpp:450: error: âset_extra_library_pathâ was not declared in this scope gold-plugin.cpp:461: error: invalid conversion from âconst char*â to âchar*â gold-plugin.cpp:466: error: invalid conversion from âcon...
2009 Oct 15
0
[LLVMdev] strace for whole-program bitcodes
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 tried it and managed to only generate >
2009 Oct 15
2
[LLVMdev] strace for whole-program bitcodes
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 tried it and managed to only generate native code. I'm currently investigating an alternative approach to produce whole-program bitcodes: 1) add