Re: Modifying GIMPLE/SSA tree to collect memory accesses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Srinivas Pasupuleti <vaasu1234@xxxxxxxxx> writes:

> I have written a GIMPLE pass to do memory profiling. Basically for
> every GIMPLE_MODIFY_STMT, I'm including a printf statement to print
> the reference of DEF and USE variables of the statement. I'm using GCC
> 4.3.4
>
> For e.g., if the statement in gimple is
> D.2761 = D.2616 + 1;
>
> I insert printf call in GIMPLE tree just below the above statement:
> printf("DEF %p, USE %p\n",&D.2761, &D.2616);

I'm not quite sure what you are doing here.  You can't take the
address of a GIMPLE variable.  What is it that you want to print?

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux