Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] a question about how to use LTO"
2010 Aug 30
2
[LLVMdev] Is -m32 supported by llvm-gcc when using LTO/gold?
I have gold from cvs, and llvm-gcc/llvm from svn. My platform is
Ubuntu 9.04 x86_64. I've configured llvm-gcc with "--enable-multilib".
When compiling the LTO example from
http://llvm.org/docs/LinkTimeOptimization.html I have no problems with
64-bit compilation, but get the following with -m32.
luked at node:~/tests/lto$ make USE32=1
llvm-gcc -m32 -c -o main.o main.c
llvm-gcc
2011 Sep 28
0
[LLVMdev] Instrumenting C/C++ programs
Hi, Himanshu. I once wrote an LLVM IR-based memory profiling
pass. Basically, I followed the code for EdgeProfiling. The source code is
enclosed here, which worked with LLVM 2.8. Hope it is helpful.
MemoryProfiling.cpp---the instrumentation pass, which inserts profiling
function calls into the original program
MemoryProfiling.c---the profiling library containing the profiling calls
2008 Jan 24
2
[LLVMdev] LTO ?
Hi folks,
I've got an idea for something I may be able to do as a Link-Time-
Optimization pass,
but I can't seem to find how LTO gets used. My crude approach has
been to compile
LLVM for debugging, and then run gdb on llvm-ld with -O5 and two .bc
files, trying to
catch LTO in action. I've also scanned the compiled tools, and none
of them appear
to use the symbol
2010 Aug 30
0
[LLVMdev] Is -m32 supported by llvm-gcc when using LTO/gold?
On 30 August 2010 12:43, Luke Dalessandro <luked at cs.rochester.edu> wrote:
> I have gold from cvs, and llvm-gcc/llvm from svn. My platform is
> Ubuntu 9.04 x86_64. I've configured llvm-gcc with "--enable-multilib".
>
> When compiling the LTO example from
> http://llvm.org/docs/LinkTimeOptimization.html I have no problems with
> 64-bit compilation, but get
2012 Apr 20
3
[LLVMdev] llvm doxygen down?
John, it still doesn't work for me. I'm in upstate new york. And one of my
friends in bay area couldn't see the webpage either.
Xiaoming
On Thu, Apr 19, 2012 at 8:27 PM, John Criswell <criswell at illinois.edu>wrote:
> On 4/19/12 7:15 PM, xiaoming gu wrote:
>
> Hi, all. I find out that the doxygen website (http://llvm.org/docs/doxygen)
> is not available now. Does
2011 Nov 17
1
[LLVMdev] Instrumenting C/C++ programs
Hello guys,
I am trying to know how clang generates AST from source code. But it is not
clear for me how clang generates it. Can you tell me which class or
function of clang is building/generating AST? I want to see the specific
function or algorithm of clang which generates AST. Thanks in advance for
your idea.
On Thu, Sep 29, 2011 at 1:22 PM, Jim Grosbach <grosbach at apple.com> wrote:
2012 May 24
2
[LLVMdev] LTO for smaller memory footprint for Clang
Hi all,
I was trying to use LTO facility of LLVM to reduce the footprint of
Clang itself. I build the ld-gold and LLVMgold.so as described at [1]
and then set the environment as described too. However, had to add the
path for plugin manually as Clang was not able pass it to ld
automatically. Following is the setting I used before starting to
build (small foot Clang.
CXX=clang++ -flto
2018 Mar 21
0
LTO, llvm-(nm, ar, ranlib)
Hello,
gcc-ar/gcc-nm/gcc-ranlib compared to ar/nm/ranlib provide an implicit --plugin argument, so that the former can work with LTO objects, even when the gcc-lto plugin is not in ${libdir}/bfd-plugins.
Do llvm-ar, llvm-ranlib and llvm-nm also imply a --plugin argument, compared to ar/ranlib/nm concerning LTO?
Also https://llvm.org/docs/LinkTimeOptimization.html does not say anything about
2012 May 24
0
[LLVMdev] LTO for smaller memory footprint for Clang
I guess I miss-interpreted the text in [2]. It talks about the
optimizations are hindered if the compiler driver invokes link time
optimizer "separately".
I found that all files compiled are in bc format. Also in library
archives, the embedded files were in bitcode format. So the gold
linker and LLVMgold plugin are indeed working fine.
However, there is still question over only 6% gain
2011 Sep 29
0
[LLVMdev] Instrumenting C/C++ programs
Hello,
What you're describing is basically the parsing and codegen portions of clang. I'd suggest reading through the code there and posting to clang-dev if you have any specific questions. The clang devs are more likely to see your questions there as not all of them also hang out here.
Regards,
Jim
On Sep 28, 2011, at 8:28 PM, eyasu getahun <eya.get at gmail.com> wrote:
>
2012 Apr 24
0
[LLVMdev] Should repetitive basic blocks be removed in the results of LoopBase::getExitBlocks()?
On Apr 19, 2012, at 10:43 PM, xiaoming gu <xiaoming.gu at gmail.com> wrote:
> Hi, all. I'm using void LoopBase::getExitBlocks (SmallVectorImpl< BlockT * > &ExitBlocks) const to get all
> exit blocks for a loop. The problem I find with this API is that it returns repetitive basic blocks in certain
> situations. Should repetitive basic blocks be removed?
Users
2016 May 17
2
How to debug if LTO generate wrong code?
> On May 17, 2016, at 1:33 AM, Shi, Steven via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hello,
> Let me ask a LTO simple question again. For the llvm LTO example in the link:http://llvm.org/docs/LinkTimeOptimization.html <http://llvm.org/docs/LinkTimeOptimization.html>, I use below build commands to generate three different optimization level binary: -O0, -O1, -O2.
2011 Sep 29
2
[LLVMdev] Instrumenting C/C++ programs
Hey guys,
I have seen your interesting conversion. I am new for LLVM as well as clang
compiler. I am going to use it now. it is quite difficult when someone
starts it from scratch. But it is enjoyable and it is possible to
familiarize with the environment by short time. Am gonna to use clang + llvm
to generate AST from source code by using clang and to do high level
transformation. Then I want to
2012 Apr 20
0
[LLVMdev] llvm doxygen down?
On 4/19/12 7:15 PM, xiaoming gu wrote:
> Hi, all. I find out that the doxygen website
> (http://llvm.org/docs/doxygen) is not available now. Does anyone know
> when it will be back? Thanks.
It works for me.
Is it working for you now?
-- John T.
>
> Xiaoming
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at
2010 Oct 05
1
[LLVMdev] how to output the single bitcode file using gold plugin?
Hi, all. I want to get the single bitcode file after link-time
optimizations. After doing some searching, I get commands as follows:
*llvm-gcc -O4 -c xxx.c -o xxx.o
llvm-gcc xxx.o -use-gold-plugin -Wl,-debug -Wl,-plugin-opt=also-emit-llvm
-lm -o xxx*
But these command don't give me the wanted bitcode file. The used version of
llvm is 2.7.
Do you have any idea of this problem or any other
2011 Sep 29
0
[LLVMdev] Instrumenting C/C++ programs
The patch file is a diff file generated by "svn diff". It is about other
modifications such as adding some lines to make files to make the added .c
and .cpp files compiled. You may apply the patch file to LLVM source code by
using a "patch" command or make the changes manually by reading the patch
file.
Xiaoming
On Wed, Sep 28, 2011 at 6:05 AM, Himanshu Shekhar
2012 Apr 20
2
[LLVMdev] Should repetitive basic blocks be removed in the results of LoopBase::getExitBlocks()?
Hi, all. I'm using void LoopBase::getExitBlocks (SmallVectorImpl< BlockT *
> &ExitBlocks) const to get all
exit blocks for a loop. The problem I find with this API is that it returns
repetitive basic blocks in certain
situations. Should repetitive basic blocks be removed?
I have an example to show the problem. Following is the source code and the
CFG is enclosed.
int main()
{
int
2012 Apr 20
0
[LLVMdev] llvm doxygen down?
On 4/19/12 7:40 PM, xiaoming gu wrote:
> John, it still doesn't work for me. I'm in upstate new york. And one
> of my friends in bay area couldn't see the webpage either.
Try http://llvm.org/doxygen. That's the link from the llvm.org main
page. The docs subdirectory is probably undergoing change due to Daniel
Dunbar's work.
-- John T.
-------------- next part
2012 Apr 20
2
[LLVMdev] llvm doxygen down?
Hi, all. I find out that the doxygen website (http://llvm.org/docs/doxygen)
is not available now. Does anyone know when it will be back? Thanks.
Xiaoming
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120419/558310e0/attachment.html>
2011 Sep 28
2
[LLVMdev] Instrumenting C/C++ programs
Hey Xiaoming, Thanks for those source codes. Can you please explain what
this llvm-memory-profiling.patch does ?
Thanks,
Himanshu
On Wed, Sep 28, 2011 at 6:49 AM, xiaoming gu <xiaoming.gu at gmail.com> wrote:
> Hi, Himanshu. I once wrote an LLVM IR-based memory profiling
> pass. Basically, I followed the code for EdgeProfiling. The source code is
> enclosed here, which worked