This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Create vector types on demand and deprecate __attribute__ ((mode(Vxxyy)))
- From: Richard Henderson <rth at redhat dot com>
- To: Bonzini <bonzini at gnu dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 16 Mar 2004 13:55:17 -0800
- Subject: Re: [PATCH] Create vector types on demand and deprecate __attribute__ ((mode(Vxxyy)))
- References: <20040310110612.GA18875@fencepost>
On Wed, Mar 10, 2004 at 06:06:12AM -0500, Bonzini wrote:
> This also requires a definition for the compatibility of vector types: I
> defined two vector types to be compatible if they map onto the same
> underlying machine mode, and adjusted convert_for_assignment to call
> comptypes instead of duplicating the compatibility condition.
This is a mistake. We're looking to get rid of some of the vector
modes, remember? I think a better definition of vector type
compatibility is if the width is the same and the underlying types
> + new_type = build_vector_type_for_mode (type, new_mode);
I don't suppose these get hashed anywhere? Given how __vector_size__
gets used by Altivec, I'd hate to be creating new type nodes every
time the attribute is mentioned.