similar to: [LLVMdev] help clang

Displaying 20 results from an estimated 200000 matches similar to: "[LLVMdev] help clang"

2009 Dec 11
2
[LLVMdev] help for Clang
i want to build Clang,and i do follow the steps in the install.txt in the clang source directory but when i run 'make' in the Clang source directory ,it stops at "Linking Debug executable clang-cc",and i tried many times ,but it did not work,it just stopped there. how can i do? PS: my os is Ubuntu and the picture is in the attachment . and i waited for an hour,but it still
2011 Apr 10
1
[LLVMdev] LLVM/.Clang: 'make' freeze ?
Hi, Ive been trying to build llvm/clang from source, but at the point where the make reaches ' llvm[4]: Linking Debug+Asserts executable clang', it seems that the make just seems to freeze or become unresponsive. When it reaches this point, almost no CPU/IO activity seems to take place, and yet the 'make' does not seem to progress any further either. Ive been waiting/watching at
2013 Jan 03
4
[LLVMdev] Fatal error in build, include <utility> not found
I'm trying to customize llvm by adding a header file of my own and tweaking things accordingly. While building, things go well until a certain point where it stops seeing the includes of my file. I'm working on Ubuntu 12.04 with llvm-3.1 on a custom target (mips-like), gcc-4.6 and clang-3.2 (i've tried 3.1 too). >From what i've understood, when it builds the first binaries of
2012 Jun 12
2
[LLVMdev] How to use LLVM optimizations with clang
Hi Yes, they both are exactly the same. Regards Shahzad On Tue, Jun 12, 2012 at 9:38 AM, Duncan Sands <baldrick at free.fr> wrote: > Hi, is the comb.ll used here: > > >> $ time lli ./comb.ll >> >> then the runtime is >> >> real    0m2.671s >> user    0m2.640s >> sys     0m0.020s >> >> But, if I convert this same file comb,ll
2012 Jul 14
2
[LLVMdev] Recompiling llvm+clang how-to?
Hello Mr. Ciao and people on our list I tried this last night and now in the morning I captured the problem status. Could you please advise me on this problem? - I downloaded brand new clang+llvm and compiled it as instructed from the url below. >> http://clang.llvm.org/get_started.html - I added some code to tools/clang/tools/driver/driver.cpp 343 int main(int argc_, const char **argv_)
2012 Jun 12
0
[LLVMdev] How to use LLVM optimizations with clang
Hi, > Yes, they both are exactly the same. then I don't know what is going on. I suggest you send a copy of comb.ll to the list so that we can see for ourselves. Ciao, Duncan. > > Regards > > Shahzad > > On Tue, Jun 12, 2012 at 9:38 AM, Duncan Sands<baldrick at free.fr> wrote: >> Hi, is the comb.ll used here: >> >> >>> $ time lli
2012 Jun 12
2
[LLVMdev] How to use LLVM optimizations with clang
Hello I need some help here please. If we compile source files directly in to native code: $ clang -O3 -lm *.c then the runtime is like following real 0m2.807s user 0m2.784s sys 0m0.012s and If we emit LLVM bytcode and apply optimizations $ clang -O3 -c -emit-llvm *.c $ llvm-link *.o -o comb.ll $ time lli ./comb.ll then the runtime is real 0m2.671s user 0m2.640s sys 0m0.020s But, if I
2012 Jun 08
2
[LLVMdev] How to use LLVM optimizations with clang
Hi, > If I compile the program using the following command line i.e. > > $ clang -O3 -lm *.c this may be doing link time optimization. > > then > > $ time ./a.out > > real 0m2.606s > user 0m2.584s > sys 0m0.012s > > BUT, if I use all the optimizations enabled with -O3 but specify them > explicity i.e. you can just use "opt -O3"
2012 Jun 12
0
[LLVMdev] How to use LLVM optimizations with clang
Hi, is the comb.ll used here: > $ time lli ./comb.ll > > then the runtime is > > real 0m2.671s > user 0m2.640s > sys 0m0.020s > > But, if I convert this same file comb,ll in to native binary the same as the comb.ll used here: > $ clang comb.ll ? Ciao, Duncan. > > and execute it, then the runtime increases alot > > $ time ./a.out > > real
2012 Jun 08
0
[LLVMdev] How to use LLVM optimizations with clang
Thanks Duncan It was really helpful. Regards Abdul On Fri, Jun 8, 2012 at 7:23 PM, Duncan Sands <baldrick at free.fr> wrote: > Hi, > > >> If I compile the program using the following command line i.e. >> >> $ clang -O3 -lm *.c > > > this may be doing link time optimization. > > >> >> then >> >> $ time ./a.out >>
2012 Jun 08
2
[LLVMdev] How to use LLVM optimizations with clang
Hi Shahzad, > I tried your method and it works fine. What would be the next step to > produce the final executable? I have tried the following but it is > producing an error > > $ gcc -fplugin=/path/to/dragonegg.so -S *.c > -fplugin-arg-dragonegg-emit-ir | opt -adce this won't work because you aren't passing the IR to opt (you need -o - for that if using a pipe) and you
2012 Jul 13
2
[LLVMdev] Recompiling llvm+clang how-to?
Hello list I have questions about compiling Clang+llvm. I compile as the link below instructs. http://clang.llvm.org/get_started.html I do on Ubuntu 12.04. `time make -j5` prints for about 13 minutes to compile a brand new version of Clang+llvm. And after this I edit some C++ code(clang/tools/driver/driver.cpp) and compiles using the very same makefile which was used above sentence. But this
2011 Jun 08
2
[LLVMdev] Different Runtimes using clang-gcc and clang-opt-llc-gcc
Hello, I have trouble compiling programs using clang on Ubuntu-Natty (getting some linker errors). So I generated a object file using "-c" and then used gcc to generate the final executable. It worked fine. I tried the following method also: $ clang -O0 -c -flto foo.c $ llc foo.o $ gcc foo.o.s It also worked. However the problem is I am getting different runtimes using the two
2012 Jul 13
0
[LLVMdev] Recompiling llvm+clang how-to?
Hi Journeyer J. Joh, > I have questions about compiling Clang+llvm. > > I compile as the link below instructs. > > http://clang.llvm.org/get_started.html > > I do on Ubuntu 12.04. > > `time make -j5` prints for about 13 minutes to compile a brand new > version of Clang+llvm. > And after this I edit some C++ code(clang/tools/driver/driver.cpp) and > compiles
2012 Jun 08
0
[LLVMdev] How to use LLVM optimizations with clang
Hello Duncan I tried your method and it works fine. What would be the next step to produce the final executable? I have tried the following but it is producing an error $ gcc -fplugin=/path/to/dragonegg.so -S *.c -fplugin-arg-dragonegg-emit-ir | opt -adce $ clang *.s Regards Shahzad On Fri, Jun 8, 2012 at 9:10 AM, Duncan Sands <baldrick at free.fr> wrote: > Hi Shahzad, > >
2013 Jul 25
1
[LLVMdev] First Pass at building dragon egg-3.3 for clang 3.3 - using gcc-4.7
Duncan, Many thanks for your comments. The core issue we're running into is this: $ GCC=/usr/bin/gcc LLVM_CONFIG=/usr/bin/llvm-config make Compiling utils/TargetInfo.cpp Linking TargetInfo ld: fatal: library -lLLVMSupport: not found ld: fatal: file processing errors. No output written to TargetInfo collect2: error: ld returned 1 exit statusAll other gyrations are attempts to shoehorn
2012 Jun 08
2
[LLVMdev] How to use LLVM optimizations with clang
Hi, > I tried it with -o - but its producing an error > > gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files > > What you suggest? what I wrote: >> for F in *.c ; do B=`basename $F .c` ; gcc -fplugin=/path/to/dragonegg.so >> -S -o - $F -fplugin-arg-dragonegg-emit-ir | opt -adce -o $B.ll ; done >> clang *.ll Thanks to the for loop and
2012 Jun 08
0
[LLVMdev] How to use LLVM optimizations with clang
Hello Duncan Sorry for the mistake. Actually that error occurred when I was compiling all the files at once, NOT in for loop. The for loop is working perfectly as it is dealing with individual files. I have now one new issue. Let me specify it briefly. If I compile the program using the following command line i.e. $ clang -O3 -lm *.c then $ time ./a.out real 0m2.606s user 0m2.584s sys
2012 Jun 08
0
[LLVMdev] How to use LLVM optimizations with clang
Hello Duncan On Fri, Jun 8, 2012 at 2:58 PM, Duncan Sands <baldrick at free.fr> wrote: > Hi Shahzad, > > >> I tried your method and it works fine. What would be the next step to >> produce the final executable? I have tried the following but it is >> producing an error >> >> $ gcc -fplugin=/path/to/dragonegg.so -S *.c >>
2012 Jun 04
3
[LLVMdev] Clang 3.1 __builtin_ia32_pcmpeqd128 doesn't work anymore
Thanks for the answer, So if i understand right, i can't directly compile the c code using clang. And i need to manually generate some llvm ir to replace the builtin function. Is that right? 2012/6/4 Duncan Sands <baldrick at free.fr> > Hi Christophe, > > > I recently migrate from llvm/clang 2.8 to 3.1. > > The builtin __builtin_ia32_pcmpeqd128 compile and works