]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/m68k/m68k-protos.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / m68k / m68k-protos.h
CommitLineData
f2fa409d 1/* Definitions of target machine for GNU compiler. Sun 68000/68020 version.
f1717362 2 Copyright (C) 2000-2016 Free Software Foundation, Inc.
f2fa409d 3
187b36cf 4This file is part of GCC.
f2fa409d 5
187b36cf 6GCC is free software; you can redistribute it and/or modify
f2fa409d 7it under the terms of the GNU General Public License as published by
038d1e19 8the Free Software Foundation; either version 3, or (at your option)
f2fa409d 9any later version.
10
187b36cf 11GCC is distributed in the hope that it will be useful,
f2fa409d 12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
038d1e19 17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
f2fa409d 19
20/* Define functions defined in aux-output.c and used in templates. */
21
22#ifdef RTX_CODE
f9a44575 23extern enum m68k_function_kind m68k_get_function_kind (tree);
2398df48 24extern HOST_WIDE_INT m68k_initial_elimination_offset (int from, int to);
8ec9650e 25
26extern void split_di (rtx[], int, rtx[], rtx[]);
27
92b2fb42 28extern bool valid_mov3q_const (HOST_WIDE_INT);
821960c7 29extern const char *output_move_simode (rtx *);
30extern const char *output_move_himode (rtx *);
31extern const char *output_move_qimode (rtx *);
32extern const char *output_move_stricthi (rtx *);
33extern const char *output_move_strictqi (rtx *);
34extern const char *output_move_double (rtx *);
35extern const char *output_move_const_single (rtx *);
36extern const char *output_move_const_double (rtx *);
9e9d6337 37extern const char *output_btst (rtx *, rtx, rtx, rtx_insn *, int);
821960c7 38extern const char *output_scc_di (rtx, rtx, rtx, rtx);
39extern const char *output_addsi3 (rtx *);
40extern const char *output_andsi3 (rtx *);
41extern const char *output_iorsi3 (rtx *);
42extern const char *output_xorsi3 (rtx *);
dd7218bb 43extern const char *output_call (rtx);
33fb08b8 44extern const char *output_sibcall (rtx);
821960c7 45extern void output_dbcc_and_branch (rtx *);
821960c7 46extern int floating_exact_log2 (rtx);
3754d046 47extern bool strict_low_part_peephole_ok (machine_mode mode,
9e9d6337 48 rtx_insn *first_insn, rtx target);
f2fa409d 49
50/* Functions from m68k.c used in macros. */
821960c7 51extern int standard_68881_constant_p (rtx);
52extern void print_operand_address (FILE *, rtx);
53extern void print_operand (FILE *, rtx, int);
54extern void notice_update_cc (rtx, rtx);
b97b0687 55extern bool m68k_legitimate_base_reg_p (rtx, bool);
56extern bool m68k_legitimate_index_reg_p (rtx, bool);
e0ab7256 57extern bool m68k_illegitimate_symbolic_constant_p (rtx);
3754d046 58extern bool m68k_legitimate_constant_p (machine_mode, rtx);
b97b0687 59extern bool m68k_matches_q_p (rtx);
60extern bool m68k_matches_u_p (rtx);
3754d046 61extern rtx legitimize_pic_address (rtx, machine_mode, rtx);
869bde6b 62extern rtx m68k_legitimize_tls_address (rtx);
63extern bool m68k_tls_reference_p (rtx, bool);
3754d046 64extern int valid_dbcc_comparison_p_2 (rtx, machine_mode);
65extern rtx m68k_libcall_value (machine_mode);
fb80456a 66extern rtx m68k_function_value (const_tree, const_tree);
3754d046 67extern int emit_move_sequence (rtx *, machine_mode, rtx);
9c47decb 68extern bool m68k_movem_pattern_p (rtx, rtx, HOST_WIDE_INT, bool);
69extern const char *m68k_output_movem (rtx *, rtx, HOST_WIDE_INT, bool);
9e9d6337 70extern void m68k_final_prescan_insn (rtx_insn *, rtx *, int);
df47af5a 71extern bool m68k_epilogue_uses (int);
b09edf9a 72
869bde6b 73/* Functions from m68k.c used in constraints.md. */
74extern rtx m68k_unwrap_symbol (rtx, bool);
75
76/* Functions from m68k.c used in genattrtab. */
3041cd4a 77#ifdef HAVE_ATTR_cpu
78extern enum attr_cpu m68k_sched_cpu;
2ccdedfd 79extern enum attr_mac m68k_sched_mac;
3041cd4a 80
ed3e6e5d 81extern enum attr_opx_type m68k_sched_attr_opx_type (rtx_insn *, int);
82extern enum attr_opy_type m68k_sched_attr_opy_type (rtx_insn *, int);
d3ffa7b4 83extern enum attr_size m68k_sched_attr_size (rtx_insn *);
84extern enum attr_op_mem m68k_sched_attr_op_mem (rtx_insn *);
3041cd4a 85#endif /* HAVE_ATTR_cpu */
86
f2fa409d 87#endif /* RTX_CODE */
88
3754d046 89extern bool m68k_regno_mode_ok (int, machine_mode);
350e24f5 90extern enum reg_class m68k_secondary_reload_class (enum reg_class,
3754d046 91 machine_mode, rtx);
350e24f5 92extern enum reg_class m68k_preferred_reload_class (rtx, enum reg_class);
821960c7 93extern int flags_in_68881 (void);
9c47decb 94extern void m68k_expand_prologue (void);
b38bcc54 95extern bool m68k_use_return_insn (void);
33fb08b8 96extern void m68k_expand_epilogue (bool);
46e5dde5 97extern const char *m68k_cpp_cpu_ident (const char *);
98extern const char *m68k_cpp_cpu_family (const char *);
821960c7 99extern void init_68881_table (void);
dd7218bb 100extern rtx m68k_legitimize_call_address (rtx);
33fb08b8 101extern rtx m68k_legitimize_sibcall_address (rtx);
b09edf9a 102extern int m68k_hard_regno_rename_ok(unsigned int, unsigned int);