search for: hanfeng

Displaying 8 results from an estimated 8 matches for "hanfeng".

Did you mean: haifeng
2011 Sep 25
0
[LLVMdev] POSIX thread library support
Hi chenwj, According to the link, I found that during the compiling process, the option "-emit-llvm" must be added to generate immediate object *.o. [hanfeng at os-wstation02 fft]llvm-gcc -c fft.c -emit-llvm Then using llvm-ld will generate two files - a shell excutable and a llvm bytecode data both of which would run perfect. [hanfeng at os-wstation02 fft]llvm-ld -o FFT fft.o [hanfeng at os-wstation02 fft]$ ls FFT FFT.bc fft.c fft.C fft.o Makefil...
2011 Sep 25
1
[LLVMdev] POSIX thread library support
> Hi chenwj, > If it use system pthread library, then it should find it in the stand search path. I also added the option "-L/usr/lib -L/usr/lib64" but it still failed. Don't know if the link below helps or not, http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-November/027274.html Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information
2011 Sep 25
3
[LLVMdev] POSIX thread library support
...ench; llvm-ld -o bench bench.o -lpthread" crashed. It told that "llvm-ld: error: Cannot find library 'pthread'". I could not find libpthread.a as well as libpthread.so** in my llvm installation path directory. Did llvm not support pthread? Any suggestions? Best regards, Hanfeng -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110925/9c315f67/attachment.html>
2011 Sep 25
2
[LLVMdev] POSIX thread library support
> According to the link, I found that during the compiling process, the option "-emit-llvm" must be added to generate immediate object *.o. > [hanfeng at os-wstation02 fft]llvm-gcc -c fft.c -emit-llvm "-emit-llvm" emits object file which contains LLVM bitcode (IR). Default file name suffix is .o, but you might want to use "-o fft.bc" to make the suffix self-explained. > Then using llvm-ld will generate two files - a she...
2011 Dec 20
2
[LLVMdev] Loop exit condition analysis
...want to decide which variables are related to ending this spin-loop. E.g., in above sample, c is the direct variable while a is an indirect one. Does LLVM provide any existing analysis tools or APIs I can leverage? I am new to compiler optimization. Wish any body can give some suggestions. Best, Hanfeng -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111220/73258d92/attachment.html>
2011 Sep 26
0
[LLVMdev] POSIX thread library support
...I also asked some other people. They told me that pthread came along with the native system and was not distributed by llvm. Libpthread.so and libpthread_nonshared.so were located in /usr/lib. "llvm-ld -native -o th th.o" failed even I told it that "-L/usr/lib". Best regards, Hanfeng > According to the link, I found that during the compiling process, the option "-emit-llvm" must be added to generate immediate object *.o. > [hanfeng at os-wstation02 fft]llvm-gcc -c fft.c -emit-llvm "-emit-llvm" emits object file which contains LLVM bitcode (IR). De...
2011 Dec 20
0
[LLVMdev] Loop exit condition analysis
On Mon, Dec 19, 2011 at 10:13 PM, Hanfeng Qin <hanfengtsin at gmail.com> wrote: > Hi all, > I am doing loop exit condition analysis. As the following sample code > segments demonstrated, > > .... > int *c = &a; > while (*c == 0); > .... > > I want to decide which variables are related to ending this...
2011 Dec 27
1
[LLVMdev] compounding loop exit conditions
...if ( *c == e) break; } b = 1; } In the BB flow chart, B15 and B20 is the exiting block recognized by LLVM. But One of the loop exit conditions is a combination of the compounded branches located in B15, B12 and B9. Can any suggestion be shared with me to solve this problem? Best, Hanfeng -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111227/16adf138/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: 2011-12-27.pdf Type: application/pdf Siz...