This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa-lno] vectorizer patch.



On Jan 2, 2004, at 4:12 PM, Richard Henderson wrote:


On Fri, Jan 02, 2004 at 03:32:07PM -0500, Daniel Berlin wrote:
Did you add the target hook that tells it what vector type to use for a
given scalar type (See rs6000_vectype_for_scalartype)?


#undef TARGET_VECTYPE_FOR_SCALAR_TYPE
#define TARGET_VECTYPE_FOR_SCALAR_TYPE rs6000_vectype_for_scalar_type

Um, no. Why would such a thing be needed?

Well, the vectorizer uses it:


Currently the only target specific information that is used is the
size of the vector (in bytes) - "UNITS_PER_SIMD_WORD", and a target hook
"vectype_for_scalar_type" that for a given (scalar) machine mode returns
the vector machine_mode to be used. Targets that can support different
sizes of vectors, for now will need to specify one value for
"UNITS_PER_SIMD_WORD". More flexibility will be added in the future.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]