differentiating between tree node and phi node

Diego Novillo dnovillo@google.com
Wed Sep 19 07:40:00 GMT 2007

On 9/16/07, ranjith kumar <ranjit_kumar_b4u@yahoo.co.uk> wrote:

> I want to know whether the returned pointer to the
> statement is a pointer to an 'PHI node' or pointer to
> a 'tree node'.

It's always a 'tree'.  If you want to know if it's a PHI node or a
MODIFY_EXPR or a CALL_EXPR or an ASM_EXPR, you need to use TREE_CODE:

More information about the Gcc-help mailing list