]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/h8300/h8300-protos.h
1 /* Definitions of target machine for GNU compiler.
3 Copyright (C) 2000, 2002, 2003, 2004, 2005, 2007, 2009, 2010, 2011, 2012
4 Free Software Foundation, Inc.
5 Contributed by Steve Chamberlain (sac@cygnus.com),
6 Jim Wilson (wilson@cygnus.com), and Doug Evans (dje@cygnus.com).
8 This file is part of GCC.
10 GCC is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3, or (at your option)
15 GCC is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with GCC; see the file COPYING3. If not see
22 <http://www.gnu.org/licenses/>. */
24 #ifndef GCC_H8300_PROTOS_H
25 #define GCC_H8300_PROTOS_H
27 /* Declarations for functions used in insn-output.c. */
29 extern unsigned int compute_mov_length (rtx
*);
30 extern const char *output_plussi (rtx
*);
31 extern unsigned int compute_plussi_length (rtx
*);
32 extern const char *output_a_shift (rtx
*);
33 extern unsigned int compute_a_shift_length (rtx
, rtx
*);
34 extern const char *output_a_rotate (enum rtx_code
, rtx
*);
35 extern unsigned int compute_a_rotate_length (rtx
*);
36 extern const char *output_simode_bld (int, rtx
[]);
37 extern void final_prescan_insn (rtx
, rtx
*, int);
38 extern int h8300_expand_movsi (rtx
[]);
39 extern void notice_update_cc (rtx
, rtx
);
40 extern const char *output_logical_op (enum machine_mode
, rtx
*);
41 extern unsigned int compute_logical_op_length (enum machine_mode
,
44 extern enum attr_cc
compute_plussi_cc (rtx
*);
45 extern enum attr_cc
compute_a_shift_cc (rtx
, rtx
*);
46 extern enum attr_cc
compute_logical_op_cc (enum machine_mode
, rtx
*);
48 extern void h8300_expand_branch (rtx
[]);
49 extern void h8300_expand_store (rtx
[]);
50 extern bool expand_a_shift (enum machine_mode
, enum rtx_code
, rtx
[]);
51 extern int h8300_shift_needs_scratch_p (int, enum machine_mode
);
52 extern int expand_a_rotate (rtx
[]);
53 extern int fix_bit_operand (rtx
*, enum rtx_code
);
54 extern int h8300_adjust_insn_length (rtx
, int);
55 extern void split_adds_subs (enum machine_mode
, rtx
[]);
57 extern int h8300_eightbit_constant_address_p (rtx
);
58 extern int h8300_tiny_constant_address_p (rtx
);
59 extern int byte_accesses_mergeable_p (rtx
, rtx
);
60 extern int same_cmp_preceding_p (rtx
);
61 extern int same_cmp_following_p (rtx
);
63 /* Used in builtins.c */
64 extern rtx
h8300_return_addr_rtx (int, rtx
);
66 /* Classifies an h8sx shift operation.
69 The shift cannot be done in a single instruction.
72 The shift is effectively a unary operation. The instruction will
73 allow any sort of destination operand and have a format similar
74 to neg and not. This is true of certain power-of-2 shifts.
77 The shift is a binary operation. The destination must be a
78 register and the source can be a register or a constant. */
79 enum h8sx_shift_type
{
85 extern enum h8sx_shift_type
h8sx_classify_shift (enum machine_mode
, enum rtx_code
, rtx
);
86 extern int h8300_ldm_stm_parallel (rtvec
, int, int);
90 extern int h8300_funcvec_function_p (tree
);
91 extern int h8300_eightbit_data_p (tree
);
92 extern int h8300_tiny_data_p (tree
);
93 #endif /* TREE_CODE */
95 extern int h8300_can_use_return_insn_p (void);
96 extern void h8300_expand_prologue (void);
97 extern void h8300_expand_epilogue (void);
98 extern int h8300_current_function_interrupt_function_p (void);
99 extern int h8300_current_function_monitor_function_p (void);
100 extern int h8300_initial_elimination_offset (int, int);
101 extern int h8300_regs_ok_for_stm (int, rtx
[]);
102 extern int h8300_hard_regno_rename_ok (unsigned int, unsigned int);
103 extern int h8300_hard_regno_nregs (int, enum machine_mode
);
104 extern int h8300_hard_regno_mode_ok (int, enum machine_mode
);
105 extern bool h8300_move_ok (rtx
, rtx
);
108 extern void h8300_pr_interrupt (struct cpp_reader
*);
109 extern void h8300_pr_saveall (struct cpp_reader
*);
110 extern enum reg_class
h8300_reg_class_from_letter (int);
111 extern unsigned int h8300_insn_length_from_table (rtx
, rtx
*);
112 extern const char * output_h8sx_shift (rtx
*, int, int);
113 extern bool h8300_operands_match_p (rtx
*);
114 extern bool h8sx_mergeable_memrefs_p (rtx
, rtx
);
115 extern bool h8sx_emit_movmd (rtx
, rtx
, rtx
, HOST_WIDE_INT
);
116 extern void h8300_swap_into_er6 (rtx
);
117 extern void h8300_swap_out_of_er6 (rtx
);
119 #endif /* ! GCC_H8300_PROTOS_H */