Hi all, I added a new gcc pass, in wich I've to elaborate GIMPLE code... for every GIMPLE statement I use TREE_CODE macro to know if is an assignment, an IF-THEN-ELSE, etc. and for every GIMPLE expression I use also TREE_CODE macro to know if it's an integer constant, an addition, etc. I know that if expression 'e' is a variable or an array element, then TREE_CODE(e)==VAR_DECL. But how can I know if 'e' is a variable, or an array element? and, if it's an array element, how can I know which is the index value? can I have other informations such as array's size and array's name?
Thanks to all Andrea