_On 10-Feb-2005 08:36, James E Wilson san wrote_:
Balaji S wrote:

I have introduced m/c dependent attributes and handling it's semantics via the attribute's handler. And i want to use these attributes during assembly printing from RTL. How to get these attributes?


This isn't how attributes are normally used. They are normally used for changing how variables/functions are defined, and how we emit RTL to access them.

There is no guarantee that tree info for variable declarations will still be accessible when converting RTL insns to assembly. There is also the problem that the optimizer can do various things to memory load/store instructions. There may not be a one-to-one correspondence between loads and variables, and hence no guarantee that you have a usable mem_expr. If you need something special here, it really needs to be done when the RTL is emitted, not when the assembly is emitted.

Yes. I agree on your point that attributes may not be valid after optimizations.

Can you please tell me how to get these attributes while emitting RTL? My 
requirement is, need the newly introduced attributes while doing memory access.


Thanks in advance, Balaji Sivan



Reply via email to