Re: differentiating between tree node and phi node

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

 



On 9/16/07, ranjith kumar <ranjit_kumar_b4u@xxxxxxxxxxx> 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:
if (TREE_CODE (SSA_NAME_DEF_STMT (name)) == PHI_NODE).

[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