1 /* score-protos.h for Sunplus S+CORE processor
2 Copyright (C) 2005, 2007 Free Software Foundation, Inc.
4 This file is part of GCC.
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.
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.
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/>. */
20 #ifndef __SCORE_PROTOS_H__
21 #define __SCORE_PROTOS_H__
23 extern enum reg_class score_char_to_class
[];
25 void score_override_options (void);
27 void score_init_expanders (void);
29 int score_hard_regno_mode_ok (unsigned int, enum machine_mode
);
31 int score_reg_class (int regno
);
33 enum reg_class
score_preferred_reload_class (rtx x
, enum reg_class
class);
35 enum reg_class
score_secondary_reload_class (enum reg_class
class,
36 enum machine_mode mode
, rtx x
);
38 int score_const_ok_for_letter_p (HOST_WIDE_INT value
, char c
);
40 int score_extra_constraint (rtx op
, char c
);
42 rtx
score_return_addr (int count
, rtx frame
);
44 HOST_WIDE_INT
score_initial_elimination_offset (int from
, int to
);
46 rtx
score_function_arg (const CUMULATIVE_ARGS
*cum
, enum machine_mode mode
,
47 tree type
, int named
);
49 int score_arg_partial_nregs (const CUMULATIVE_ARGS
*cum
,
50 enum machine_mode mode
, tree type
, int named
);
52 void score_init_cumulative_args (CUMULATIVE_ARGS
*cum
,
53 tree fntype
, rtx libname
);
55 void score_function_arg_advance (CUMULATIVE_ARGS
*cum
, enum machine_mode mode
,
56 tree type
, int named
);
58 rtx
score_function_value (const_tree valtype
, const_tree func
, enum machine_mode mode
);
60 rtx
score_va_arg (tree
va_list, tree type
);
62 void score_initialize_trampoline (rtx ADDR
, rtx FUNC
, rtx CHAIN
);
64 int score_address_p (enum machine_mode mode
, rtx x
, int strict
);
66 int score_legitimize_address (rtx
*xloc
);
68 int score_regno_mode_ok_for_base_p (int regno
, int strict
);
70 int score_register_move_cost (enum machine_mode mode
, enum reg_class to
,
73 void score_declare_object (FILE *stream
, const char *name
,
74 const char *directive
, const char *fmt
, ...)
77 void score_declare_object_name (FILE *stream
, const char *name
, tree decl
);
79 int score_output_external (FILE *file
, tree decl
, const char *name
);
81 void score_print_operand (FILE *file
, rtx op
, int letter
);
83 void score_print_operand_address (FILE *file
, rtx addr
);
86 enum machine_mode
score_select_cc_mode (enum rtx_code op
, rtx x
, rtx y
);
89 #include "score-mdaux.h"
91 #endif /* __SCORE_PROTOS_H__ */