search for: eirc

Displaying 20 results from an estimated 27 matches for "eirc".

Did you mean: ecrc
2015 Apr 22
3
[LLVMdev] what is the Line number of Phi Node with addr2line
reg2mem does not eliminate phi nodes the way codegen does, it just converts ssa values to non-ssa values. It's not the same thing. On Tue, Apr 21, 2015 at 10:14 PM, Eric Lu <eirc.lew at gmail.com> wrote: > By the way. When I remove these phi nodes with -reg2mem, some new load > operations will be inserted, but when I try cache load operations with: > visitFunction > visitLoadInst > It seems we can't see these new load operations. > > On Wed, Apr...
2015 Apr 22
3
[LLVMdev] what is the Line number of Phi Node with addr2line
...rds! Eric Lew On 周三, 4月 22, 2015 at 12:24 下午, Daniel Berlin <dberlin at dberlin.org> wrote: Hey Eric, phi nodes don't exist for real, so you can't. The are removed by PHI elimination as part of codegen. What are you trying to achieve? On Tue, Apr 21, 2015 at 9:12 PM, Eric Lu <eirc.lew at gmail.com> wrote: > Hi, all > > When compiling a program with -g -O0, and if we have a PC, then with > addr2line, we can get the line number of the instruction. > > My quesions are: what is the result of Phi node instruction, can we get the > similar results ? &gt...
2013 Jul 12
3
[LLVMdev] How to recognize the declaring code scopes of stack variables
Hi, If I want to know where the stack variables are declared? For example, whether it is declared within a loop or not? Like variables a[100] and temp. int a[100]; for( int i = 0; i < N; i++){ int temp; } Can this be done in LLVM IR? Or should be implemented in Clang. Thanks! Eric -------------- next part -------------- An HTML attachment was scrubbed... URL:
2013 Jun 28
2
[LLVMdev] does clang and llvm take more time to compile c code
...s: gcc -O3 -c *.c -o x.o link: gcc *.o -lm -o mpeg2enc Yes, maybe it is the config introduced problems, I build it with enable debug options. Thanks! Eric On Thu, Jun 27, 2013 at 7:49 PM, Benjamin Kramer <benny.kra at gmail.com>wrote: > > On 27.06.2013, at 13:40, Eric Lu <eirc.lew at gmail.com> wrote: > > > Hello, all > > > > When I compile mpeg2enc of Mediabench, it seems clang and llvm take > longer time than gcc. I meausre the time as follow: > > > > gcc -O3 8.190s > > clang -O3 20.253s > > > > will this mea...
2015 Apr 22
2
[LLVMdev] Use clang to generate LLVM IR with -O3, how to visit these load operations after -reg2mem
Best Regards! Eric Lew On 周三, 4月 22, 2015 at 12:11 下午, David Blaikie < dblaikie at gmail.com [dblaikie at gmail.com] > wrote: On Tue, Apr 21, 2015 at 8:34 PM, Eric Lu <eirc.lew at gmail.com> wrote: > Hi, all > > I want to instrument load/store operations in LLVM IR. And I find the LLVM > IR generated with flag -o3 is much more efficient than -o0, so I try to > instrument on these optimized LLVM IR, but, some load operations are changed > to Phi lo...
2013 Jun 28
0
[LLVMdev] does clang and llvm take more time to compile c code
On Thu, Jun 27, 2013 at 6:04 PM, Eric Lu <eirc.lew at gmail.com> wrote: > Hi, Ben > gcc version is: 4.7.0 > clang version is: 3.2 > > The command options are: > 1) clang > generated object files: clang -O3 -c *.c -o x.o > link: clang *.o -lm -o mpeg2enc > > 2) gcc > generated object files: gcc -O3 -c *.c -...
2015 Jun 12
5
[LLVMdev] How to change the linker of clang
1) Build clang with GCC-4.9.2, when compling other application s with clang/clang++, the default linker is ld, can I replace it with other linker tool, if we can, how to do it? I.E. can we use collect2 instead? 2) how to specify the path, if we do not use the default vertion GCC? Best Regards! Eric Lew -------------- next part -------------- An HTML attachment was scrubbed... URL:
2013 Jul 12
0
[LLVMdev] How to recognize the declaring code scopes of stack variables
On Thu, Jul 11, 2013 at 9:33 PM, Eric Lu <eirc.lew at gmail.com> wrote: > Hi, David > yes, it is similar to your description. And do you know any methods to do > this in LLVM IR? I don't know the mid-level optimizers especially well - I doubt there's a thing that does exactly what you need - but a combination of existing p...
2013 Jun 29
2
[LLVMdev] does clang and llvm take more time to compile c code
...BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX=~software/llvmsvn -DCMAKE_EXPORT_COMPILE_COMMANDS=ON /home/xxx/lsoftware/llvm-3.2-svn $make $make install On Fri, Jun 28, 2013 at 12:37 PM, Eric Christopher <echristo at gmail.com>wrote: > On Thu, Jun 27, 2013 at 6:04 PM, Eric Lu <eirc.lew at gmail.com> wrote: > > Hi, Ben > > gcc version is: 4.7.0 > > clang version is: 3.2 > > > > The command options are: > > 1) clang > > generated object files: clang -O3 -c *.c -o x.o > > link: clang *.o -lm -o mpeg2enc > > > > 2)...
2013 Jul 15
2
[LLVMdev] Regarding scope information for variable declaration.
...information should be derived as is not obvious). Collecting information this way allowed me to get correct scope information, and hence I was able to map the variable declaration to the scope. It worked for me this way.   Regards, Pankaj     ________________________________ From: eric.lew <eirc.lew at gmail.com> To: llvmdev at cs.uiuc.edu Sent: Friday, July 12, 2013 8:30 AM Subject: Re: [LLVMdev] Regarding scope information for variable declaration. I have the same demand. Have you resolved this problems? if so, would you share me the solution? Best Regards. Eric -- View this m...
2013 Jun 27
2
[LLVMdev] does clang and llvm take more time to compile c code
Hello, all When I compile mpeg2enc of Mediabench, it seems clang and llvm take longer time than gcc. I meausre the time as follow: gcc -O3 8.190s clang -O3 20.253s will this means clang and llvm are slower than gcc in compiling c code. Eric -------------- next part -------------- An HTML attachment was scrubbed... URL:
2013 Jun 27
0
[LLVMdev] does clang and llvm take more time to compile c code
On 27.06.2013, at 13:40, Eric Lu <eirc.lew at gmail.com> wrote: > Hello, all > > When I compile mpeg2enc of Mediabench, it seems clang and llvm take longer time than gcc. I meausre the time as follow: > > gcc -O3 8.190s > clang -O3 20.253s > > will this means clang and llvm are slower than gcc in compi...
2013 Jul 12
0
[LLVMdev] How to recognize the declaring code scopes of stack variables
On Thu, Jul 11, 2013 at 8:19 PM, Eric Lu <eirc.lew at gmail.com> wrote: > When parallelize the loop with OpenMP like models, I need to know what > variables will be shared among different threads. I imagined you'd want to recognize loops, not scopes. Sounds like a backend kind of optimization type thing, just detecting values that...
2013 Jun 18
2
[LLVMdev] -indvars issues?
It seems there is no -enable-iv-rewrite now in llvm3.2, and it suggest -enable-load-pre, but it still does not work. So, how to active the transform? -- View this message in context: http://llvm.1065342.n5.nabble.com/indvars-issues-tp4646p58587.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2013 Jul 15
0
[LLVMdev] Fwd: Regarding scope information for variable declaration.
...nd. Maybe I will re-implement it later in clang. ---------- Forwarded message ---------- From: Pankaj Gode [via LLVM] <ml-node+s1065342n59345h22 at n5.nabble.com> Date: Mon, Jul 15, 2013 at 2:35 PM Subject: Re: Regarding scope information for variable declaration. To: "eric.lew" <eirc.lew at gmail.com> Hi Eric, I was considering machine instructions to get scope information. And variable declaration does not correspond to machine instruction, hence the problem i.e. no scope associated with it. If 'i' is initialized in the 'if-scope' then we get 'variab...
2015 Apr 22
2
[LLVMdev] what is the Line number of Phi Node with addr2line
Hi, all When compiling a program with -g -O0, and if we have a PC, then with addr2line, we can get the line number of the instruction. My quesions are: what is the result of Phi node instruction, can we get the similar results ? -- Best Regards! Eric Lew -------------- next part -------------- An HTML attachment was scrubbed... URL:
2015 Apr 22
2
[LLVMdev] Use clang to generate LLVM IR with -O3, how to visit these load operations after -reg2mem
Hi, all I want to instrument load/store operations in LLVM IR. And I find the LLVM IR generated with flag -o3 is much more efficient than -o0, so I try to instrument on these optimized LLVM IR, but, some load operations are changed to Phi loads. Then, I try the -reg2mem flag to remove these phi nodes. The problems are: 1) I use visitLoadInst to collect these load operations, and it seems I
2013 Jul 12
0
[LLVMdev] Regarding scope information for variable declaration.
I have the same demand. Have you resolved this problems? if so, would you share me the solution? Best Regards. Eric -- View this message in context: http://llvm.1065342.n5.nabble.com/Regarding-scope-information-for-variable-declaration-tp47707p59268.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2012 Jul 30
3
[LLVMdev] Regarding scope information for variable declaration.
Hi All,   I have question regarding lexical scope information.   If I have .c source with scope as below. void func() {    //-- some code here..    { //parent scope       if() //high pass       {          int i;          for( i =0; i < FRAM_I; i++)          {          }       }       if() //low pass       {          int i;          for( i =0; i < FRAM_J; i++)          {          }       }
2013 Jun 20
0
[LLVMdev] -indvars issues?
It works, thank you, Andy. On Thu, Jun 20, 2013 at 12:45 AM, Andrew Trick <atrick at apple.com> wrote: > > On Jun 19, 2013, at 1:04 AM, Eric Lu <eirc.lew at gmail.com> wrote: > > It seems the options still does not work, or I have misunderstood what you > said. > > The command: > clang -g -I/home/lxj/software/llvmsvn/include -emit-llvm $1.c -c -o > $1.bc > opt -debug --debug-pass=Structure -scalar-evolution -loop-ro...