Query regarding, RTL Macros

Ian Lance Taylor iant@google.com
Fri Feb 2 18:37:00 GMT 2007


"Bhaskar  Reddy" <bhaskar@cse.iitb.ac.in> writes:

> in rtl.c
> const char * const rtx_name[NUM_RTX_CODE] = {
> #include "rtl.def"              /* rtl expressions are documented here */
> };
> 
> it is referring rtl.def again. I cant find it in rtl.def either.

Please don't top-post.  Thanks.

I guess I don't understand the question.  I thought you were asking
where rtx_name is defined.  It's defined right there in the code that
you quote.  The contents of rtx_name are filled in by the #define of
DEF_RTL_EXPR which is just above the code that you quote, and the uses
of DEF_RTL_EXPR in rtl.def.

If that is not your question, can you explain further what you are
asking?

Ian

> > "BHASKAR G. REDDY" <bhaskar@cse.iitb.ac.in> writes:
> >
> >> Hi Where can i see enumeration constant "rtx_names" which is used by
> >> macro GET_RTX_NAME to return the name of a RTX when given its code.
> >> grep'ed for it in gcc-4.1.1 source but i didnt find exact declaration
> >> and definition of above enum constant. Is it automatically generated?
> >
> > It's in rtl.c.
> >
> > You may have missed it because it's called "rtx_name", not
> > "rtx_names".
> >
> > Ian
> >
> 
> 
> -- 
> Bhaskar G. Reddy,
> Graduate Student,
> Department of CSE,
> IIT Bombay



More information about the Gcc-help mailing list