mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-04 04:40:27 +08:00
[Patch ARM Refactor Builtins 3/8] Pull builtins code to its own file
gcc/ * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*. (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*. * config/arm/arm-builtins.c: New. * config/arm/t-arm (arm_builtins.o): New. * config/arm/arm-protos.h (arm_expand_builtin): New. (arm_builtin_decl): Likewise. (arm_init_builtins): Likewise. (arm_atomic_assign_expand_fenv): Likewise. * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype. (arm_init_builtins): Likewise. (arm_init_iwmmxt_builtins): Likewise (safe_vector_operand): Likewise (arm_expand_binop_builtin): Likewise (arm_expand_unop_builtin): Likewise (arm_expand_builtin): Likewise (arm_builtin_decl): Likewise (insn_flags): Remove static. (tune_flags): Likewise. (enum arm_builtins): Move to config/arm/arm-builtins.c. (arm_init_neon_builtins): Likewise. (struct builtin_description): Likewise. (arm_init_iwmmxt_builtins): Likewise. (arm_init_fp16_builtins): Likewise. (arm_init_crc32_builtins): Likewise. (arm_init_builtins): Likewise. (arm_builtin_decl): Likewise. (safe_vector_operand): Likewise. (arm_expand_ternop_builtin): Likewise. (arm_expand_binop_builtin): Likewise. (arm_expand_unop_builtin): Likewise. (neon_dereference_pointer): Likewise. (arm_expand_neon_args): Likewise. (arm_expand_neon_builtin): Likewise. (neon_split_vcombine): Likewise. (arm_expand_builtin): Likewise. (arm_builtin_vectorized_function): Likewise. (arm_atomic_assign_expand_fenv): Likewise. From-SVN: r217695
This commit is contained in:
parent
a27d8d801a
commit
33857df2d9
@ -1,3 +1,43 @@
|
||||
2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
|
||||
|
||||
* config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
|
||||
(target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
|
||||
* config/arm/arm-builtins.c: New.
|
||||
* config/arm/t-arm (arm_builtins.o): New.
|
||||
* config/arm/arm-protos.h (arm_expand_builtin): New.
|
||||
(arm_builtin_decl): Likewise.
|
||||
(arm_init_builtins): Likewise.
|
||||
(arm_atomic_assign_expand_fenv): Likewise.
|
||||
* config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
|
||||
(arm_init_builtins): Likewise.
|
||||
(arm_init_iwmmxt_builtins): Likewise
|
||||
(safe_vector_operand): Likewise
|
||||
(arm_expand_binop_builtin): Likewise
|
||||
(arm_expand_unop_builtin): Likewise
|
||||
(arm_expand_builtin): Likewise
|
||||
(arm_builtin_decl): Likewise
|
||||
(insn_flags): Remove static.
|
||||
(tune_flags): Likewise.
|
||||
(enum arm_builtins): Move to config/arm/arm-builtins.c.
|
||||
(arm_init_neon_builtins): Likewise.
|
||||
(struct builtin_description): Likewise.
|
||||
(arm_init_iwmmxt_builtins): Likewise.
|
||||
(arm_init_fp16_builtins): Likewise.
|
||||
(arm_init_crc32_builtins): Likewise.
|
||||
(arm_init_builtins): Likewise.
|
||||
(arm_builtin_decl): Likewise.
|
||||
(safe_vector_operand): Likewise.
|
||||
(arm_expand_ternop_builtin): Likewise.
|
||||
(arm_expand_binop_builtin): Likewise.
|
||||
(arm_expand_unop_builtin): Likewise.
|
||||
(neon_dereference_pointer): Likewise.
|
||||
(arm_expand_neon_args): Likewise.
|
||||
(arm_expand_neon_builtin): Likewise.
|
||||
(neon_split_vcombine): Likewise.
|
||||
(arm_expand_builtin): Likewise.
|
||||
(arm_builtin_vectorized_function): Likewise.
|
||||
(arm_atomic_assign_expand_fenv): Likewise.
|
||||
|
||||
2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
|
||||
|
||||
* config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
|
||||
|
@ -319,12 +319,13 @@ arc*-*-*)
|
||||
;;
|
||||
arm*-*-*)
|
||||
cpu_type=arm
|
||||
extra_objs="aarch-common.o"
|
||||
extra_objs="arm-builtins.o aarch-common.o"
|
||||
extra_headers="mmintrin.h arm_neon.h arm_acle.h"
|
||||
target_type_format_char='%'
|
||||
c_target_objs="arm-c.o"
|
||||
cxx_target_objs="arm-c.o"
|
||||
extra_options="${extra_options} arm/arm-tables.opt"
|
||||
target_gtfiles="\$(srcdir)/config/arm/arm-builtins.c"
|
||||
;;
|
||||
avr-*-*)
|
||||
cpu_type=avr
|
||||
|
3036
gcc/config/arm/arm-builtins.c
Normal file
3036
gcc/config/arm/arm-builtins.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -41,7 +41,14 @@ extern HOST_WIDE_INT thumb_compute_initial_elimination_offset (unsigned int,
|
||||
unsigned int);
|
||||
extern unsigned int arm_dbx_register_number (unsigned int);
|
||||
extern void arm_output_fn_unwind (FILE *, bool);
|
||||
|
||||
|
||||
extern rtx arm_expand_builtin (tree exp, rtx target, rtx subtarget
|
||||
ATTRIBUTE_UNUSED, enum machine_mode mode
|
||||
ATTRIBUTE_UNUSED, int ignore ATTRIBUTE_UNUSED);
|
||||
extern tree arm_builtin_decl (unsigned code, bool initialize_p
|
||||
ATTRIBUTE_UNUSED);
|
||||
extern void arm_init_builtins (void);
|
||||
extern void arm_atomic_assign_expand_fenv (tree *hold, tree *clear, tree *update);
|
||||
|
||||
#ifdef RTX_CODE
|
||||
extern bool arm_vector_mode_supported_p (machine_mode);
|
||||
|
3007
gcc/config/arm/arm.c
3007
gcc/config/arm/arm.c
File diff suppressed because it is too large
Load Diff
@ -95,6 +95,15 @@ arm.o: $(srcdir)/config/arm/arm.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
$(srcdir)/config/arm/arm-protos.h \
|
||||
$(srcdir)/config/arm/arm_neon_builtins.def
|
||||
|
||||
arm-builtins.o: $(srcdir)/config/arm/arm-builtins.c $(CONFIG_H) \
|
||||
$(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
$(RTL_H) $(TREE_H) expr.h $(TM_P_H) $(RECOG_H) langhooks.h \
|
||||
$(DIAGNOSTIC_CORE_H) $(OPTABS_H) \
|
||||
$(srcdir)/config/arm/arm-protos.h \
|
||||
$(srcdir)/config/arm/arm_neon_builtins.def
|
||||
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
$(srcdir)/config/arm/arm-builtins.c
|
||||
|
||||
arm-c.o: $(srcdir)/config/arm/arm-c.c $(CONFIG_H) $(SYSTEM_H) \
|
||||
coretypes.h $(TM_H) $(TREE_H) output.h $(C_COMMON_H)
|
||||
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user