From f676971a92dcc163394d15c819e904cbed2438d6 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 24 Aug 2004 00:30:52 +0000 Subject: defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro. 2004-08-23 Eric Christopher * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro. * system.h (VECTOR_MODE_SUPPORTED_P): Poison. * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define. * target.h: Ditto. * hooks.h: Include machmode.h. (hook_bool_mode_false): Declare. * hooks.c (hook_bool_mode_false): Define. * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p. * stor-layout.c (layout_type): Ditto. * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function. Define to target macro. * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete. * config/arm/arm.c: Ditto. Use. * config/arm/arm.h: Ditto. * config/arm/arm-protos.h: Ditto. * config/i386/i386.c: Ditto. * config/i386/i386.h: Ditto. * config/rs6000/rs6000.c: Ditto. * config/rs6000/rs6000.h: Ditto. * config/sh/sh.c: Ditto. * config/sh/sh.h: Ditto. * config/sh/sh-protos.h: Ditto. * config/sh/sh.md: Use. * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P to TARGET_VECTOR_MODE_SUPPORTED_P. 2004-08-23 Eric Christopher * trans-types.c (gfc_type_for_mode): Remove VECTOR_TYPE_SUPPORTED_P usage. Use build_vector_type_for_mode for vector types. From-SVN: r86453 --- gcc/target.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'gcc/target.h') diff --git a/gcc/target.h b/gcc/target.h index 1611f2a..2c3798e 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -134,7 +134,7 @@ struct gcc_target /* Tell assembler to switch to the readonly data section associated with function DECL. */ - void (* function_rodata_section) (tree); + void (* function_rodata_section) (tree); /* Output a constructor for a symbol with a given priority. */ void (* constructor) (rtx, int); @@ -270,12 +270,12 @@ struct gcc_target /* The following member value is a pointer to a function called by the insn scheduler. It should return true if there exists a - dependence which is considered costly by the target, between - the insn passed as the first parameter, and the insn passed as - the second parameter. The third parameter is the INSN_DEPEND + dependence which is considered costly by the target, between + the insn passed as the first parameter, and the insn passed as + the second parameter. The third parameter is the INSN_DEPEND link that represents the dependence between the two insns. The fourth argument is the cost of the dependence as estimated by - the scheduler. The last argument is the distance in cycles + the scheduler. The last argument is the distance in cycles between the already scheduled insn (first parameter) and the the second insn (second parameter). */ bool (* is_costly_dependence) (rtx, rtx, rtx, int, int); @@ -381,6 +381,9 @@ struct gcc_target /* True if MODE is valid for a pointer in __attribute__((mode("MODE"))). */ bool (* valid_pointer_mode) (enum machine_mode mode); + /* True if MODE is valid for a vector. */ + bool (* vector_mode_supported_p) (enum machine_mode mode); + /* True if a vector is opaque. */ bool (* vector_opaque_p) (tree); -- cgit v1.1