Re: [Mesa-dev] obtain def-use chain in glsl s-expression

2013-08-29 Thread Liu Xin
On 08/28/2013 11:17 PM, Kenneth Graunke wrote: On 08/27/2013 11:34 PM, Liu Xin wrote: Hi, Mesa community, I am not familiar with S-expression or other forms of lisp languages. That's OK - the IR has no resemblance to actual Scheme or Lisp programming. We just print and read the () syntax

Re: [Mesa-dev] obtain def-use chain in glsl s-expression

2013-08-28 Thread Kenneth Graunke
On 08/27/2013 11:34 PM, Liu Xin wrote: Hi, Mesa community, I am not familiar with S-expression or other forms of lisp languages. That's OK - the IR has no resemblance to actual Scheme or Lisp programming. We just print and read the () syntax because it's simple. I am working on GLSL IR tr

[Mesa-dev] obtain def-use chain in glsl s-expression

2013-08-28 Thread Liu Xin
Hi, Mesa community, I am not familiar with S-expression or other forms of lisp languages. I am working on GLSL IR transformation. for example, i want to change a variable to a array of same type. By now , i can find the definition of a variable. How can i update all uses of this variable in