Committed, CRIS: Use iterators (aka mode and code macros) in cris.md.
Ian Lance Taylor
ian@airs.com
Tue May 17 13:50:00 GMT 2005
Hans-Peter Nilsson <hans-peter.nilsson@axis.com> writes:
> I wish...that each *_macro would automatically (or by default)
> get an *_attr by the same name and obvious string contents, so I
> wouldn't have to define them manually.
If I understand you correctly, this does more or less happen. Every
mode_macro has two automatically defined attributes, mode and MODE,
which are the name of the mode in lower and upper case, respectively.
Every code_macro has attributes code and CODE.
> +(define_code_macro ncond [eq ne gtu ltu geu leu])
> +(define_code_attr ncond [(eq "eq") (ne "ne") (gtu "gtu") (ltu "ltu")
> + (geu "geu") (leu "leu")])
For example, your ncond:ncond attribute is the same as the predefined
ncond:mode attribute.
Ian
More information about the Gcc-patches
mailing list