This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Target specific memory attributes from RTL
- From: Balaji S <sivanbalaji at acmet dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 03 Mar 2005 11:01:43 +0530
- Subject: Target specific memory attributes from RTL
- Organization: Acme Technologies Pvt. Ltd.
Reference(s):
1. Mail: James E Wilson <wilson@specifixinc.com>, "Re: How to get m/c dependent attributes from RTL (expressions, not a variable)?", 10-Feb-2005.
2. Mail: James E Wilson <wilson@specifixinc.com>, "Re: How to get m/c dependent attributes from RTL (expressions, not a variable)?", 12-Feb-2005.
Hi all,
As suggested in references, i'm able to get the target specific attributes from RTL in the following cases:
1. Through SYMBOL_REF_FLAGS and if it is a SYMBOL_REF RTL (symbol_ref: ...), direct variable
2. Through MEM_EXPR of MEM if its operand is not a SYMBOL_REF and a REG (mem:HI (reg:...)), indirect variable access
3. Through REG_EXPR of REG of a MEM and memory access is a first level pointer reference (mem:HI (reg:...)), indirect memory access
But, i'm not able to access target specific attribute from second level of indirection onwards.
For example,
int **gpi ;
variable_decl of 'gpi' is available during access of 'gpi' and '*gpi' and not during '**gpi'.
I have looked at existing ports for similar implementation of memory attributes but failed to find one.
Please point me a good resource for handling memory attributes.
Thanks in advance,
Balaji Sivan