This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Manipulating the tree Structure
- From: Tehila Meyzels <TEHILA at il dot ibm dot com>
- To: "Andrea Callia D'Iddio" <andrea dot calliadiddio at gmail dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Wed, 14 Mar 2007 13:10:26 +0200
- Subject: Re: Manipulating the tree Structure
Andrea Callia D'Iddio wrote on 14/03/2007 12:36:59:
> Hi all,
> first of all i want to thank you for the aid that i have receveid from
> this mailing list. I have another little question:
> if i have a statemente that is an expression, for example x+5 , how
> can i know if the operation is plus (+), or minus (-), or equal(=) or
> less (<) etc..
> Can you give me the name of the file containing all these definition??
in tree.def, look for all the tree code definitions (DEFTREECODE):
for example:
/* Simple arithmetic. */
DEFTREECODE (PLUS_EXPR, "plus_expr", tcc_binary, 2)
DEFTREECODE (MINUS_EXPR, "minus_expr", tcc_binary, 2)
DEFTREECODE (MULT_EXPR, "mult_expr", tcc_binary, 2)
Tehila.
> Thanks to all,
> Andrea