Re: Understand pointer deferences in GIMPLE

2020-07-14 Thread Shuai Wang via Gcc
Thank you. Yes, I think gimple_store_p and gimple_assign_load_p should be what I am looking for. Best, Shuai On Tue, Jul 14, 2020 at 5:38 PM Richard Biener wrote: > On Tue, Jul 14, 2020 at 9:17 AM Shuai Wang via Gcc > wrote: > > > > Hello, > > > > I am trying to traverse the GIMPlE statements

Re: Understand pointer deferences in GIMPLE

2020-07-14 Thread Richard Biener via Gcc
On Tue, Jul 14, 2020 at 9:17 AM Shuai Wang via Gcc wrote: > > Hello, > > I am trying to traverse the GIMPlE statements and identify all pointer > differences (i.e., memory load and store). For instance, something like: > > **_4* = 0; >... > _108 = (signed char *) _107; > _109 = **_108*;

Understand pointer deferences in GIMPLE

2020-07-14 Thread Shuai Wang via Gcc
Hello, I am trying to traverse the GIMPlE statements and identify all pointer differences (i.e., memory load and store). For instance, something like: **_4* = 0; ... _108 = (signed char *) _107; _109 = **_108*; After some quick searches in the GCC codebase, I am thinking to use the foll