This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C6X port 9/11: Allow defining attributes in terms of another
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Bernd Schmidt <bernds at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 25 May 2011 04:56:17 -0400 (EDT)
- Subject: Re: C6X port 9/11: Allow defining attributes in terms of another
- References: <4DC956D0.3040306@codesourcery.com> <4DC95DFE.5050902@codesourcery.com>
On Tue, 10 May 2011, Bernd Schmidt wrote:
> I've found it useful to use a construct such as the following:
>
> (define_attr "units64"
> "unknown,d,d_addr,l,m,s,dl,ds,dls,ls"
> (const_string "unknown"))
>
> (define_attr "units64p"
> "unknown,d,d_addr,l,m,s,dl,ds,dls,ls"
> (attr "units64"))
>
> to define one attribute in terms of another by default,
So it's just the units64p default value taken from the units64
default value or units64p gets its default value from the final
units64 value?
> allowing
> individual insn patterns to override the definition of "units64p" where
> necessary. This patch adds support for this in genattrtab.
I'm not sure I get it, and I think I would be helped by seeing
the documentation update. ;)
brgds, H-P
PS. ok, I could look in the port, but the documentation still needs updating, right?