Re: GIMPLE pass - Assignment evaluation

2013-12-16 Thread Sandeep K Chaudhary
Thank you so much, Prof. Khedkar ! I will go through the slides and other resources that you pointed out. GRC workshops/tutorials are great. These helped me get started with GCC when I knew almost nothing about GCC internals. I will get back with specific queries (if any) after going through thes

Re: GIMPLE pass - Assignment evaluation

2013-12-16 Thread Uday P. Khedker
You may also want to go through the slides at http://www.cse.iitb.ac.in/grc/gcc-workshop-13/index.php?page=slides. In particular, http://www.cse.iitb.ac.in/grc/gcc-workshop-13/downloads/slides/Day1/gccw13-gimple-manipulation.pdf and http://www.cse.iitb.ac.in/grc/gcc-workshop-13/downloads/slid

Re: GIMPLE pass - Assignment evaluation

2013-12-16 Thread Sandeep K Chaudhary
Thank you so much for the reply, David ! I am not sure where exactly my pass gets invoked. I will try to find it. But the pass get invoked somewhere in the GIMPLE stage as shown in the GCC architecture[1]. How is it that one can dictate where the pass can be invoked? Can you please provide some po

Re: GIMPLE pass - Assignment evaluation

2013-12-16 Thread David Malcolm
On Mon, 2013-12-16 at 16:10 -0500, Sandeep K Chaudhary wrote: > Hi Guys, > > I am writing a GIMPLE pass in which I need to inspect the assignments. > For example, for the below statements, I need to find the value of the > second and third assignments which are '2' and '7'. > > VAR1 = 1; > VAR1++

GIMPLE pass - Assignment evaluation

2013-12-16 Thread Sandeep K Chaudhary
Hi Guys, I am writing a GIMPLE pass in which I need to inspect the assignments. For example, for the below statements, I need to find the value of the second and third assignments which are '2' and '7'. VAR1 = 1; VAR1++; VAR1 = VAR1 + 5; But the GIMPLE IR only has the following statements i.e. n