OSDN Git Service

PR target/42113
[pf3gnuchains/gcc-fork.git] / gcc / config / score / score-protos.h
1 /* score-protos.h for Sunplus S+CORE processor
2    Copyright (C) 2005, 2007, 2008 Free Software Foundation, Inc.
3
4    This file is part of GCC.
5
6    GCC is free software; you can redistribute it and/or modify it
7    under the terms of the GNU General Public License as published
8    by the Free Software Foundation; either version 3, or (at your
9    option) any later version.
10
11    GCC is distributed in the hope that it will be useful, but WITHOUT
12    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
14    License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with GCC; see the file COPYING3.  If not see
18    <http://www.gnu.org/licenses/>.  */
19
20 #ifndef GCC_SCORE_PROTOS_H
21 #define GCC_SCORE_PROTOS_H
22
23 /* Machine Print.  */
24 enum score_mem_unit {SCORE_BYTE = 0, SCORE_HWORD = 1, SCORE_WORD = 2};
25
26 #define SCORE_ALIGN_UNIT(V, UNIT)   !(V & ((1 << UNIT) - 1))
27
28 extern void score_prologue (void);
29 extern void score_epilogue (int sibcall_p);
30 extern void score_call (rtx *ops, bool sib);
31 extern void score_call_value (rtx *ops, bool sib);
32 extern void score_movdi (rtx *ops);
33 extern void score_zero_extract_andi (rtx *ops);
34 extern const char * score_linsn (rtx *ops, enum score_mem_unit unit, bool sign);
35 extern const char * score_sinsn (rtx *ops, enum score_mem_unit unit);
36 extern const char * score_limm (rtx *ops);
37 extern const char * score_move (rtx *ops);
38 extern bool score_unaligned_load (rtx* ops);
39 extern bool score_unaligned_store (rtx* ops);
40 extern bool score_block_move (rtx* ops);
41 extern int score_address_cost (rtx addr, bool speed);
42 extern rtx score_function_arg (const CUMULATIVE_ARGS *cum,
43                                enum machine_mode mode,
44                                tree type, int named);
45 extern int score_address_p (enum machine_mode mode, rtx x, int strict);
46 extern int score_reg_class (int regno);
47 extern int score_register_move_cost (enum machine_mode mode, enum reg_class to,
48                                      enum reg_class from);
49 extern int score_hard_regno_mode_ok (unsigned int, enum machine_mode);
50 extern int score_const_ok_for_letter_p (HOST_WIDE_INT value, char c);
51 extern int score_extra_constraint (rtx op, char c);
52 extern rtx score_return_addr (int count, rtx frame);
53 extern int score_regno_mode_ok_for_base_p (int regno, int strict);
54 extern void score_function_arg_advance (CUMULATIVE_ARGS *cum,
55                                         enum machine_mode mode,
56                                         tree type, int named);
57 extern void score_init_cumulative_args (CUMULATIVE_ARGS *cum,
58                                         tree fntype, rtx libname);
59 extern void score_declare_object (FILE *stream, const char *name,
60                                   const char *directive, const char *fmt, ...);
61 extern int score_output_external (FILE *file, tree decl, const char *name);
62 extern void score_override_options (void);
63 extern enum reg_class score_secondary_reload_class (enum reg_class rclass,
64                                                     enum machine_mode mode,
65                                                     rtx x);
66 extern rtx score_function_value (tree valtype, tree func,
67                                  enum machine_mode mode);
68 extern enum reg_class score_preferred_reload_class (rtx x,
69                                                     enum reg_class rclass);
70 extern HOST_WIDE_INT score_initial_elimination_offset (int from, int to);
71 extern void score_print_operand (FILE *file, rtx op, int letter);
72 extern void score_print_operand_address (FILE *file, rtx addr);
73 extern int score_arg_partial_bytes (CUMULATIVE_ARGS *cum,
74                                     enum machine_mode mode,
75                                     tree type, bool named);
76 extern int score_symbolic_constant_p (rtx x,
77                                       enum score_symbol_type *symbol_type);
78 extern void score_movsicc (rtx *ops);
79 extern const char * score_select_add_imm (rtx *ops, bool set_cc);
80 extern const char * score_select (rtx *ops, const char *inst_pre, bool commu,
81                                   const char *letter, bool set_cc);
82 extern const char * score_output_casesi (rtx *operands);
83 extern const char * score_rpush (rtx *ops);
84 extern const char * score_rpop (rtx *ops);
85 extern bool score_rtx_costs (rtx x, int code, int outer_code, int *total, bool speed);
86
87 #ifdef RTX_CODE
88 extern enum machine_mode score_select_cc_mode (enum rtx_code op, rtx x, rtx y);
89 #endif
90
91 extern struct extern_list *extern_head;
92
93 #endif /* GCC_SCORE_PROTOS_H  */