ChangeLog: * Makefile.def (target_modules): Add libphobos. (flags_to_pass): Add GDC, GDCFLAGS, GDC_FOR_TARGET and GDCFLAGS_FOR_TARGET. (dependencies): Make libphobos depend on libatomic, libbacktrace configure, and zlib configure. (language): Add language d. * Makefile.in: Rebuild. * Makefile.tpl (BUILD_EXPORTS): Add GDC and GDCFLAGS. (HOST_EXPORTS): Add GDC. (POSTSTAGE1_HOST_EXPORTS): Add GDC and GDC_FOR_BUILD. (BASE_TARGET_EXPORTS): Add GDC. (GDC_FOR_BUILD, GDC, GDCFLAGS): New variables. (GDC_FOR_TARGET, GDC_FLAGS_FOR_TARGET): New variables. (EXTRA_HOST_FLAGS): Add GDC. (STAGE1_FLAGS_TO_PASS): Add GDC. (EXTRA_TARGET_FLAGS): Add GDC and GDCFLAGS. * config-ml.in: Treat GDC and GDCFLAGS like other compiler/flag environment variables. * configure: Rebuild. * configure.ac: Add target-libphobos to target_libraries. Set and substitute GDC_FOR_BUILD and GDC_FOR_TARGET. config/ChangeLog: * multi.m4: Set GDC. gcc/ChangeLog: * Makefile.in (tm_d_file_list, tm_d_include_list): New variables. (TM_D_H, D_TARGET_DEF, D_TARGET_H, D_TARGET_OBJS): New variables. (tm_d.h, cs-tm_d.h, default-d.o): New rules. (d/d-target-hooks-def.h, s-d-target-hooks-def-h): New rules. (s-tm-texi): Also check timestamp on d-target.def. (generated_files): Add TM_D_H and d-target-hooks-def.h. (build/genhooks.o): Also depend on D_TARGET_DEF. * config.gcc (tm_d_file, d_target_objs, target_has_targetdm): New variables. * config/aarch64/aarch64-d.c: New file. * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_D_CRITSEC_SIZE): Define. * config/aarch64/aarch64-protos.h (aarch64_d_target_versions): New prototype. * config/aarch64/aarch64.h (TARGET_D_CPU_VERSIONS): Define. * config/aarch64/t-aarch64 (aarch64-d.o): New rule. * config/arm/arm-d.c: New file. * config/arm/arm-protos.h (arm_d_target_versions): New prototype. * config/arm/arm.h (TARGET_D_CPU_VERSIONS): Define. * config/arm/linux-eabi.h (EXTRA_TARGET_D_OS_VERSIONS): Define. * config/arm/t-arm (arm-d.o): New rule. * config/default-d.c: New file. * config/glibc-d.c: New file. * config/gnu.h (GNU_USER_TARGET_D_OS_VERSIONS): Define. * config/i386/i386-d.c: New file. * config/i386/i386-protos.h (ix86_d_target_versions): New prototype. * config/i386/i386.h (TARGET_D_CPU_VERSIONS): Define. * config/i386/linux-common.h (EXTRA_TARGET_D_OS_VERSIONS): Define. (GNU_USER_TARGET_D_CRITSEC_SIZE): Define. * config/i386/t-i386 (i386-d.o): New rule. * config/kfreebsd-gnu.h (GNU_USER_TARGET_D_OS_VERSIONS): Define. * config/kopensolaris-gnu.h (GNU_USER_TARGET_D_OS_VERSIONS): Define. * config/linux-android.h (ANDROID_TARGET_D_OS_VERSIONS): Define. * config/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Define. * config/mips/linux-common.h (EXTRA_TARGET_D_OS_VERSIONS): Define. * config/mips/mips-d.c: New file. * config/mips/mips-protos.h (mips_d_target_versions): New prototype. * config/mips/mips.h (TARGET_D_CPU_VERSIONS): Define. * config/mips/t-mips (mips-d.o): New rule. * config/powerpcspe/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Define. * config/powerpcspe/linux64.h (GNU_USER_TARGET_D_OS_VERSIONS): Define. * config/powerpcspe/powerpcspe-d.c: New file. * config/powerpcspe/powerpcspe-protos.h (rs6000_d_target_versions): New prototype. * config/powerpcspe/powerpcspe.c (rs6000_output_function_epilogue): Support GNU D by using 0 as the language type. * config/powerpcspe/powerpcspe.h (TARGET_D_CPU_VERSIONS): Define. * config/powerpcspe/t-powerpcspe (powerpcspe-d.o): New rule. * config/riscv/riscv-d.c: New file. * config/riscv/riscv-protos.h (riscv_d_target_versions): New prototype. * config/riscv/riscv.h (TARGET_D_CPU_VERSIONS): Define. * config/riscv/t-riscv (riscv-d.o): New rule. * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Define. * config/rs6000/linux64.h (GNU_USER_TARGET_D_OS_VERSIONS): Define. * config/rs6000/rs6000-d.c: New file. * config/rs6000/rs6000-protos.h (rs6000_d_target_versions): New prototype. * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support GNU D by using 0 as the language type. * config/rs6000/rs6000.h (TARGET_D_CPU_VERSIONS): Define. * config/rs6000/t-rs6000 (rs6000-d.o): New rule. * config/s390/s390-d.c: New file. * config/s390/s390-protos.h (s390_d_target_versions): New prototype. * config/s390/s390.h (TARGET_D_CPU_VERSIONS): Define. * config/s390/t-s390 (s390-d.o): New rule. * config/sparc/sparc-d.c: New file. * config/sparc/sparc-protos.h (sparc_d_target_versions): New prototype. * config/sparc/sparc.h (TARGET_D_CPU_VERSIONS): Define. * config/sparc/t-sparc (sparc-d.o): New rule. * config/t-glibc (glibc-d.o): New rule. * configure: Regenerated. * configure.ac (tm_d_file): New variable. (tm_d_file_list, tm_d_include_list, d_target_objs): Add substitutes. * doc/contrib.texi (Contributors): Add self for the D frontend. * doc/frontends.texi (G++ and GCC): Mention D as a supported language. * doc/install.texi (Configuration): Mention libphobos as an option for --enable-shared. Mention d as an option for --enable-languages. (Testing): Mention check-d as a target. * doc/invoke.texi (Overall Options): Mention .d, .dd, and .di as file name suffixes. Mention d as a -x option. * doc/sourcebuild.texi (Top Level): Mention libphobos. * doc/standards.texi (Standards): Add section on D language. * doc/tm.texi: Regenerated. * doc/tm.texi.in: Add @node for D language and ABI, and @hook for TARGET_CPU_VERSIONS, TARGET_D_OS_VERSIONS, and TARGET_D_CRITSEC_SIZE. * dwarf2out.c (is_dlang): New function. (gen_compile_unit_die): Use DW_LANG_D for D. (declare_in_namespace): Return module die for D, instead of adding extra declarations into the namespace. (gen_namespace_die): Generate DW_TAG_module for D. (gen_decl_die): Handle CONST_DECLSs for D. (dwarf2out_decl): Likewise. (prune_unused_types_walk_local_classes): Handle DW_tag_interface_type. (prune_unused_types_walk): Handle DW_tag_interface_type same as other kinds of aggregates. * gcc.c (default_compilers): Add entries for .d, .dd and .di. * genhooks.c: Include d/d-target.def. gcc/po/ChangeLog: * EXCLUDES: Add sources from d/dmd. gcc/testsuite/ChangeLog: * gcc.misc-tests/help.exp: Add D to option descriptions check. * gdc.dg/asan/asan.exp: New file. * gdc.dg/asan/gdc272.d: New test. * gdc.dg/compilable.d: New test. * gdc.dg/dg.exp: New file. * gdc.dg/gdc254.d: New test. * gdc.dg/gdc260.d: New test. * gdc.dg/gdc270a.d: New test. * gdc.dg/gdc270b.d: New test. * gdc.dg/gdc282.d: New test. * gdc.dg/gdc283.d: New test. * gdc.dg/imports/gdc170.d: New test. * gdc.dg/imports/gdc231.d: New test. * gdc.dg/imports/gdc239.d: New test. * gdc.dg/imports/gdc241a.d: New test. * gdc.dg/imports/gdc241b.d: New test. * gdc.dg/imports/gdc251a.d: New test. * gdc.dg/imports/gdc251b.d: New test. * gdc.dg/imports/gdc253.d: New test. * gdc.dg/imports/gdc254a.d: New test. * gdc.dg/imports/gdc256.d: New test. * gdc.dg/imports/gdc27.d: New test. * gdc.dg/imports/gdcpkg256/package.d: New test. * gdc.dg/imports/runnable.d: New test. * gdc.dg/link.d: New test. * gdc.dg/lto/lto.exp: New file. * gdc.dg/lto/ltotests_0.d: New test. * gdc.dg/lto/ltotests_1.d: New test. * gdc.dg/runnable.d: New test. * gdc.dg/simd.d: New test. * gdc.test/gdc-test.exp: New file. * lib/gdc-dg.exp: New file. * lib/gdc.exp: New file. libphobos/ChangeLog: * Makefile.am: New file. * Makefile.in: New file. * acinclude.m4: New file. * aclocal.m4: New file. * config.h.in: New file. * configure: New file. * configure.ac: New file. * d_rules.am: New file. * libdruntime/Makefile.am: New file. * libdruntime/Makefile.in: New file. * libdruntime/__entrypoint.di: New file. * libdruntime/__main.di: New file. * libdruntime/gcc/attribute.d: New file. * libdruntime/gcc/backtrace.d: New file. * libdruntime/gcc/builtins.d: New file. * libdruntime/gcc/config.d.in: New file. * libdruntime/gcc/deh.d: New file. * libdruntime/gcc/libbacktrace.d.in: New file. * libdruntime/gcc/unwind/arm.d: New file. * libdruntime/gcc/unwind/arm_common.d: New file. * libdruntime/gcc/unwind/c6x.d: New file. * libdruntime/gcc/unwind/generic.d: New file. * libdruntime/gcc/unwind/package.d: New file. * libdruntime/gcc/unwind/pe.d: New file. * m4/autoconf.m4: New file. * m4/druntime.m4: New file. * m4/druntime/cpu.m4: New file. * m4/druntime/libraries.m4: New file. * m4/druntime/os.m4: New file. * m4/gcc_support.m4: New file. * m4/gdc.m4: New file. * m4/libtool.m4: New file. * src/Makefile.am: New file. * src/Makefile.in: New file. * src/libgphobos.spec.in: New file. * testsuite/Makefile.am: New file. * testsuite/Makefile.in: New file. * testsuite/config/default.exp: New file. * testsuite/lib/libphobos-dg.exp: New file. * testsuite/lib/libphobos.exp: New file. * testsuite/testsuite_flags.in: New file. From-SVN: r265573
364 lines
15 KiB
C++
364 lines
15 KiB
C++
/* Definitions of target machine for GCC for IA-32.
|
|
Copyright (C) 1988-2018 Free Software Foundation, Inc.
|
|
|
|
This file is part of GCC.
|
|
|
|
GCC is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3, or (at your option)
|
|
any later version.
|
|
|
|
GCC is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with GCC; see the file COPYING3. If not see
|
|
<http://www.gnu.org/licenses/>. */
|
|
|
|
/* In i386-common.c. */
|
|
extern bool ix86_handle_option (struct gcc_options *opts,
|
|
struct gcc_options *opts_set ATTRIBUTE_UNUSED,
|
|
const struct cl_decoded_option *decoded,
|
|
location_t loc);
|
|
|
|
/* Functions in i386.c */
|
|
extern bool ix86_target_stack_probe (void);
|
|
extern bool ix86_can_use_return_insn_p (void);
|
|
extern void ix86_setup_frame_addresses (void);
|
|
extern bool ix86_rip_relative_addr_p (struct ix86_address *parts);
|
|
|
|
extern HOST_WIDE_INT ix86_initial_elimination_offset (int, int);
|
|
extern void ix86_expand_prologue (void);
|
|
extern void ix86_maybe_emit_epilogue_vzeroupper (void);
|
|
extern void ix86_expand_epilogue (int);
|
|
extern void ix86_expand_split_stack_prologue (void);
|
|
|
|
extern void ix86_output_addr_vec_elt (FILE *, int);
|
|
extern void ix86_output_addr_diff_elt (FILE *, int, int);
|
|
|
|
extern enum calling_abi ix86_cfun_abi (void);
|
|
extern enum calling_abi ix86_function_type_abi (const_tree);
|
|
|
|
extern bool ix86_use_pseudo_pic_reg (void);
|
|
|
|
extern void ix86_reset_previous_fndecl (void);
|
|
|
|
extern bool ix86_using_red_zone (void);
|
|
|
|
#ifdef RTX_CODE
|
|
extern int standard_80387_constant_p (rtx);
|
|
extern const char *standard_80387_constant_opcode (rtx);
|
|
extern rtx standard_80387_constant_rtx (int);
|
|
extern int standard_sse_constant_p (rtx, machine_mode);
|
|
extern const char *standard_sse_constant_opcode (rtx_insn *, rtx *);
|
|
extern bool ix86_standard_x87sse_constant_load_p (const rtx_insn *, rtx);
|
|
extern bool symbolic_reference_mentioned_p (rtx);
|
|
extern bool extended_reg_mentioned_p (rtx);
|
|
extern bool x86_extended_QIreg_mentioned_p (rtx_insn *);
|
|
extern bool x86_extended_reg_mentioned_p (rtx);
|
|
extern bool x86_maybe_negate_const_int (rtx *, machine_mode);
|
|
extern machine_mode ix86_cc_mode (enum rtx_code, rtx, rtx);
|
|
|
|
extern int avx_vpermilp_parallel (rtx par, machine_mode mode);
|
|
extern int avx_vperm2f128_parallel (rtx par, machine_mode mode);
|
|
|
|
extern bool ix86_expand_strlen (rtx, rtx, rtx, rtx);
|
|
extern bool ix86_expand_set_or_movmem (rtx, rtx, rtx, rtx, rtx, rtx,
|
|
rtx, rtx, rtx, rtx, bool);
|
|
|
|
extern bool constant_address_p (rtx);
|
|
extern bool legitimate_pic_operand_p (rtx);
|
|
extern bool legitimate_pic_address_disp_p (rtx);
|
|
extern bool ix86_force_load_from_GOT_p (rtx);
|
|
extern void print_reg (rtx, int, FILE*);
|
|
extern void ix86_print_operand (FILE *, rtx, int);
|
|
|
|
extern void split_double_mode (machine_mode, rtx[], int, rtx[], rtx[]);
|
|
|
|
extern const char *output_set_got (rtx, rtx);
|
|
extern const char *output_387_binary_op (rtx_insn *, rtx*);
|
|
extern const char *output_387_reg_move (rtx_insn *, rtx*);
|
|
extern const char *output_fix_trunc (rtx_insn *, rtx*, bool);
|
|
extern const char *output_fp_compare (rtx_insn *, rtx*, bool, bool);
|
|
extern const char *output_adjust_stack_and_probe (rtx);
|
|
extern const char *output_probe_stack_range (rtx, rtx);
|
|
|
|
extern void ix86_expand_clear (rtx);
|
|
extern void ix86_expand_move (machine_mode, rtx[]);
|
|
extern void ix86_expand_vector_move (machine_mode, rtx[]);
|
|
extern void ix86_expand_vector_move_misalign (machine_mode, rtx[]);
|
|
extern rtx ix86_fixup_binary_operands (enum rtx_code,
|
|
machine_mode, rtx[]);
|
|
extern void ix86_fixup_binary_operands_no_copy (enum rtx_code,
|
|
machine_mode, rtx[]);
|
|
extern void ix86_expand_binary_operator (enum rtx_code,
|
|
machine_mode, rtx[]);
|
|
extern void ix86_expand_vector_logical_operator (enum rtx_code,
|
|
machine_mode, rtx[]);
|
|
extern bool ix86_binary_operator_ok (enum rtx_code, machine_mode, rtx[]);
|
|
extern bool ix86_avoid_lea_for_add (rtx_insn *, rtx[]);
|
|
extern bool ix86_use_lea_for_mov (rtx_insn *, rtx[]);
|
|
extern bool ix86_avoid_lea_for_addr (rtx_insn *, rtx[]);
|
|
extern void ix86_split_lea_for_addr (rtx_insn *, rtx[], machine_mode);
|
|
extern bool ix86_lea_for_add_ok (rtx_insn *, rtx[]);
|
|
extern bool ix86_vec_interleave_v2df_operator_ok (rtx operands[3], bool high);
|
|
extern bool ix86_dep_by_shift_count (const_rtx set_insn, const_rtx use_insn);
|
|
extern bool ix86_agi_dependent (rtx_insn *set_insn, rtx_insn *use_insn);
|
|
extern void ix86_expand_unary_operator (enum rtx_code, machine_mode,
|
|
rtx[]);
|
|
extern rtx ix86_build_const_vector (machine_mode, bool, rtx);
|
|
extern rtx ix86_build_signbit_mask (machine_mode, bool, bool);
|
|
extern void ix86_split_convert_uns_si_sse (rtx[]);
|
|
extern void ix86_expand_convert_uns_didf_sse (rtx, rtx);
|
|
extern void ix86_expand_convert_uns_sixf_sse (rtx, rtx);
|
|
extern void ix86_expand_convert_uns_sidf_sse (rtx, rtx);
|
|
extern void ix86_expand_convert_uns_sisf_sse (rtx, rtx);
|
|
extern void ix86_expand_convert_sign_didf_sse (rtx, rtx);
|
|
extern void ix86_expand_vector_convert_uns_vsivsf (rtx, rtx);
|
|
extern rtx ix86_expand_adjust_ufix_to_sfix_si (rtx, rtx *);
|
|
extern enum ix86_fpcmp_strategy ix86_fp_comparison_strategy (enum rtx_code);
|
|
extern void ix86_expand_fp_absneg_operator (enum rtx_code, machine_mode,
|
|
rtx[]);
|
|
extern void ix86_expand_copysign (rtx []);
|
|
extern void ix86_split_copysign_const (rtx []);
|
|
extern void ix86_split_copysign_var (rtx []);
|
|
extern bool ix86_unary_operator_ok (enum rtx_code, machine_mode, rtx[]);
|
|
extern bool ix86_match_ccmode (rtx, machine_mode);
|
|
extern void ix86_expand_branch (enum rtx_code, rtx, rtx, rtx);
|
|
extern void ix86_expand_setcc (rtx, enum rtx_code, rtx, rtx);
|
|
extern bool ix86_expand_int_movcc (rtx[]);
|
|
extern bool ix86_expand_fp_movcc (rtx[]);
|
|
extern bool ix86_expand_fp_vcond (rtx[]);
|
|
extern bool ix86_expand_int_vcond (rtx[]);
|
|
extern void ix86_expand_vec_perm (rtx[]);
|
|
extern bool ix86_expand_mask_vec_cmp (rtx[]);
|
|
extern bool ix86_expand_int_vec_cmp (rtx[]);
|
|
extern bool ix86_expand_fp_vec_cmp (rtx[]);
|
|
extern void ix86_expand_sse_movcc (rtx, rtx, rtx, rtx);
|
|
extern void ix86_expand_sse_unpack (rtx, rtx, bool, bool);
|
|
extern bool ix86_expand_int_addcc (rtx[]);
|
|
extern rtx_insn *ix86_expand_call (rtx, rtx, rtx, rtx, rtx, bool);
|
|
extern void ix86_split_call_vzeroupper (rtx, rtx);
|
|
extern void x86_initialize_trampoline (rtx, rtx, rtx);
|
|
extern rtx ix86_zero_extend_to_Pmode (rtx);
|
|
extern void ix86_split_long_move (rtx[]);
|
|
extern void ix86_split_ashl (rtx *, rtx, machine_mode);
|
|
extern void ix86_split_ashr (rtx *, rtx, machine_mode);
|
|
extern void ix86_split_lshr (rtx *, rtx, machine_mode);
|
|
extern rtx ix86_find_base_term (rtx);
|
|
extern bool ix86_check_movabs (rtx, int);
|
|
extern bool ix86_check_no_addr_space (rtx);
|
|
extern void ix86_split_idivmod (machine_mode, rtx[], bool);
|
|
|
|
extern rtx assign_386_stack_local (machine_mode, enum ix86_stack_slot);
|
|
extern int ix86_attr_length_immediate_default (rtx_insn *, bool);
|
|
extern int ix86_attr_length_address_default (rtx_insn *);
|
|
extern int ix86_attr_length_vex_default (rtx_insn *, bool, bool);
|
|
|
|
extern rtx ix86_libcall_value (machine_mode);
|
|
extern bool ix86_function_arg_regno_p (int);
|
|
extern void ix86_asm_output_function_label (FILE *, const char *, tree);
|
|
extern void ix86_call_abi_override (const_tree);
|
|
extern int ix86_reg_parm_stack_space (const_tree);
|
|
|
|
extern bool ix86_libc_has_function (enum function_class fn_class);
|
|
|
|
extern void x86_order_regs_for_local_alloc (void);
|
|
extern void x86_function_profiler (FILE *, int);
|
|
extern void x86_emit_floatuns (rtx [2]);
|
|
extern void ix86_emit_fp_unordered_jump (rtx);
|
|
|
|
extern void ix86_emit_i387_log1p (rtx, rtx);
|
|
extern void ix86_emit_i387_round (rtx, rtx);
|
|
extern void ix86_emit_swdivsf (rtx, rtx, rtx, machine_mode);
|
|
extern void ix86_emit_swsqrtsf (rtx, rtx, machine_mode, bool);
|
|
|
|
extern enum rtx_code ix86_reverse_condition (enum rtx_code, machine_mode);
|
|
|
|
extern void ix86_expand_lround (rtx, rtx);
|
|
extern void ix86_expand_lfloorceil (rtx, rtx, bool);
|
|
extern void ix86_expand_rint (rtx, rtx);
|
|
extern void ix86_expand_floorceil (rtx, rtx, bool);
|
|
extern void ix86_expand_floorceildf_32 (rtx, rtx, bool);
|
|
extern void ix86_expand_round_sse4 (rtx, rtx);
|
|
extern void ix86_expand_round (rtx, rtx);
|
|
extern void ix86_expand_rounddf_32 (rtx, rtx);
|
|
extern void ix86_expand_trunc (rtx, rtx);
|
|
extern void ix86_expand_truncdf_32 (rtx, rtx);
|
|
|
|
extern void ix86_expand_vecop_qihi (enum rtx_code, rtx, rtx, rtx);
|
|
|
|
extern rtx ix86_split_stack_guard (void);
|
|
|
|
#ifdef TREE_CODE
|
|
extern void init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree, int);
|
|
#endif /* TREE_CODE */
|
|
|
|
#endif /* RTX_CODE */
|
|
|
|
#ifdef TREE_CODE
|
|
extern int ix86_data_alignment (tree, int, bool);
|
|
extern unsigned int ix86_local_alignment (tree, machine_mode,
|
|
unsigned int);
|
|
extern unsigned int ix86_minimum_alignment (tree, machine_mode,
|
|
unsigned int);
|
|
extern tree ix86_handle_shared_attribute (tree *, tree, tree, int, bool *);
|
|
extern tree ix86_handle_selectany_attribute (tree *, tree, tree, int, bool *);
|
|
extern int x86_field_alignment (tree, int);
|
|
extern tree ix86_valid_target_attribute_tree (tree,
|
|
struct gcc_options *,
|
|
struct gcc_options *);
|
|
extern unsigned int ix86_get_callcvt (const_tree);
|
|
|
|
#endif
|
|
|
|
extern rtx ix86_tls_module_base (void);
|
|
extern bool ix86_tls_address_pattern_p (rtx);
|
|
extern rtx ix86_rewrite_tls_address (rtx);
|
|
|
|
extern void ix86_expand_vector_init (bool, rtx, rtx);
|
|
extern void ix86_expand_vector_set (bool, rtx, rtx, int);
|
|
extern void ix86_expand_vector_extract (bool, rtx, rtx, int);
|
|
extern void ix86_expand_reduc (rtx (*)(rtx, rtx, rtx), rtx, rtx);
|
|
|
|
extern void ix86_expand_vec_extract_even_odd (rtx, rtx, rtx, unsigned);
|
|
extern bool ix86_expand_pextr (rtx *);
|
|
extern bool ix86_expand_pinsr (rtx *);
|
|
extern void ix86_expand_mul_widen_evenodd (rtx, rtx, rtx, bool, bool);
|
|
extern void ix86_expand_mul_widen_hilo (rtx, rtx, rtx, bool, bool);
|
|
extern void ix86_expand_sse2_mulv4si3 (rtx, rtx, rtx);
|
|
extern void ix86_expand_sse2_mulvxdi3 (rtx, rtx, rtx);
|
|
extern void ix86_expand_sse2_abs (rtx, rtx);
|
|
|
|
/* In i386-c.c */
|
|
extern void ix86_target_macros (void);
|
|
extern void ix86_register_pragmas (void);
|
|
|
|
/* In i386-d.c */
|
|
extern void ix86_d_target_versions (void);
|
|
|
|
/* In winnt.c */
|
|
extern void i386_pe_unique_section (tree, int);
|
|
extern void i386_pe_declare_function_type (FILE *, const char *, int);
|
|
extern void i386_pe_record_external_function (tree, const char *);
|
|
extern void i386_pe_maybe_record_exported_symbol (tree, const char *, int);
|
|
extern void i386_pe_encode_section_info (tree, rtx, int);
|
|
extern bool i386_pe_binds_local_p (const_tree);
|
|
extern const char *i386_pe_strip_name_encoding_full (const char *);
|
|
extern bool i386_pe_valid_dllimport_attribute_p (const_tree);
|
|
extern unsigned int i386_pe_section_type_flags (tree, const char *, int);
|
|
extern void i386_pe_asm_named_section (const char *, unsigned int, tree);
|
|
extern void i386_pe_asm_output_aligned_decl_common (FILE *, tree,
|
|
const char *,
|
|
HOST_WIDE_INT,
|
|
HOST_WIDE_INT);
|
|
extern void i386_pe_file_end (void);
|
|
extern void i386_pe_asm_lto_start (void);
|
|
extern void i386_pe_asm_lto_end (void);
|
|
extern void i386_pe_start_function (FILE *, const char *, tree);
|
|
extern void i386_pe_end_function (FILE *, const char *, tree);
|
|
extern void i386_pe_end_cold_function (FILE *, const char *, tree);
|
|
extern void i386_pe_assemble_visibility (tree, int);
|
|
extern tree i386_pe_mangle_decl_assembler_name (tree, tree);
|
|
extern tree i386_pe_mangle_assembler_name (const char *);
|
|
extern void i386_pe_record_stub (const char *);
|
|
|
|
extern void i386_pe_seh_init (FILE *);
|
|
extern void i386_pe_seh_end_prologue (FILE *);
|
|
extern void i386_pe_seh_cold_init (FILE *, const char *);
|
|
extern void i386_pe_seh_unwind_emit (FILE *, rtx_insn *);
|
|
extern void i386_pe_seh_emit_except_personality (rtx);
|
|
extern void i386_pe_seh_init_sections (void);
|
|
|
|
/* In winnt-cxx.c and winnt-stubs.c */
|
|
extern void i386_pe_adjust_class_at_definition (tree);
|
|
extern bool i386_pe_type_dllimport_p (tree);
|
|
extern bool i386_pe_type_dllexport_p (tree);
|
|
|
|
extern int i386_pe_reloc_rw_mask (void);
|
|
|
|
extern char internal_label_prefix[16];
|
|
extern int internal_label_prefix_len;
|
|
|
|
extern bool ix86_epilogue_uses (int);
|
|
|
|
struct ix86_address
|
|
{
|
|
rtx base, index, disp;
|
|
HOST_WIDE_INT scale;
|
|
addr_space_t seg;
|
|
};
|
|
|
|
extern int ix86_decompose_address (rtx, struct ix86_address *);
|
|
extern int memory_address_length (rtx, bool);
|
|
extern void x86_output_aligned_bss (FILE *, tree, const char *,
|
|
unsigned HOST_WIDE_INT, int);
|
|
extern void x86_elf_aligned_decl_common (FILE *, tree, const char *,
|
|
unsigned HOST_WIDE_INT, int);
|
|
|
|
#ifdef RTX_CODE
|
|
extern void ix86_fp_comparison_codes (enum rtx_code code, enum rtx_code *,
|
|
enum rtx_code *, enum rtx_code *);
|
|
extern enum rtx_code ix86_fp_compare_code_to_integer (enum rtx_code);
|
|
#endif
|
|
extern int asm_preferred_eh_data_format (int, int);
|
|
|
|
#ifdef HAVE_ATTR_cpu
|
|
extern enum attr_cpu ix86_schedule;
|
|
#endif
|
|
|
|
extern const char * ix86_output_call_insn (rtx_insn *insn, rtx call_op);
|
|
extern const char * ix86_output_indirect_jmp (rtx call_op);
|
|
extern const char * ix86_output_function_return (bool long_p);
|
|
extern const char * ix86_output_indirect_function_return (rtx ret_op);
|
|
extern void ix86_split_simple_return_pop_internal (rtx);
|
|
extern bool ix86_operands_ok_for_move_multiple (rtx *operands, bool load,
|
|
machine_mode mode);
|
|
extern int ix86_min_insn_size (rtx_insn *);
|
|
|
|
extern int ix86_issue_rate (void);
|
|
extern int ix86_adjust_cost (rtx_insn *insn, int dep_type, rtx_insn *dep_insn,
|
|
int cost, unsigned int);
|
|
extern int ia32_multipass_dfa_lookahead (void);
|
|
extern bool ix86_macro_fusion_p (void);
|
|
extern bool ix86_macro_fusion_pair_p (rtx_insn *condgen, rtx_insn *condjmp);
|
|
|
|
extern bool ix86_bd_has_dispatch (rtx_insn *insn, int action);
|
|
extern void ix86_bd_do_dispatch (rtx_insn *insn, int mode);
|
|
|
|
extern void ix86_core2i7_init_hooks (void);
|
|
|
|
extern int ix86_atom_sched_reorder (FILE *, int, rtx_insn **, int *, int);
|
|
|
|
extern poly_int64 ix86_push_rounding (poly_int64);
|
|
|
|
#ifdef RTX_CODE
|
|
/* Target data for multipass lookahead scheduling.
|
|
Currently used for Core 2/i7 tuning. */
|
|
struct ix86_first_cycle_multipass_data_
|
|
{
|
|
/* The length (in bytes) of ifetch block in this solution. */
|
|
int ifetch_block_len;
|
|
/* Number of instructions in ifetch block in this solution. */
|
|
int ifetch_block_n_insns;
|
|
/* Bitmap to remember changes to ready_try for backtracking. */
|
|
sbitmap ready_try_change;
|
|
/* Size of the bitmap. */
|
|
int ready_try_change_size;
|
|
};
|
|
# define TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T \
|
|
struct ix86_first_cycle_multipass_data_
|
|
#endif /* RTX_CODE */
|
|
|
|
const addr_space_t ADDR_SPACE_SEG_FS = 1;
|
|
const addr_space_t ADDR_SPACE_SEG_GS = 2;
|
|
|
|
namespace gcc { class context; }
|
|
class rtl_opt_pass;
|
|
|
|
extern rtl_opt_pass *make_pass_insert_vzeroupper (gcc::context *);
|
|
extern rtl_opt_pass *make_pass_stv (gcc::context *);
|
|
extern rtl_opt_pass *make_pass_insert_endbranch (gcc::context *);
|