arc-protos.h (arc_select_cc_mode, gen_compare_reg): Wrap in RTX_CODE macro guard.
[gcc.git] / gcc / config / score / score-protos.h
1 /* score-protos.h for Sunplus S+CORE processor
2 Copyright (C) 2005, 2007 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 __SCORE_PROTOS_H__
21 #define __SCORE_PROTOS_H__
22
23 extern enum reg_class score_char_to_class[];
24
25 void score_override_options (void);
26
27 void score_init_expanders (void);
28
29 int score_hard_regno_mode_ok (unsigned int, enum machine_mode);
30
31 int score_reg_class (int regno);
32
33 enum reg_class score_preferred_reload_class (rtx x, enum reg_class class);
34
35 enum reg_class score_secondary_reload_class (enum reg_class class,
36 enum machine_mode mode, rtx x);
37
38 int score_const_ok_for_letter_p (HOST_WIDE_INT value, char c);
39
40 int score_extra_constraint (rtx op, char c);
41
42 rtx score_return_addr (int count, rtx frame);
43
44 HOST_WIDE_INT score_initial_elimination_offset (int from, int to);
45
46 rtx score_function_arg (const CUMULATIVE_ARGS *cum, enum machine_mode mode,
47 tree type, int named);
48
49 int score_arg_partial_nregs (const CUMULATIVE_ARGS *cum,
50 enum machine_mode mode, tree type, int named);
51
52 void score_init_cumulative_args (CUMULATIVE_ARGS *cum,
53 tree fntype, rtx libname);
54
55 void score_function_arg_advance (CUMULATIVE_ARGS *cum, enum machine_mode mode,
56 tree type, int named);
57
58 rtx score_function_value (const_tree valtype, const_tree func, enum machine_mode mode);
59
60 rtx score_va_arg (tree va_list, tree type);
61
62 void score_initialize_trampoline (rtx ADDR, rtx FUNC, rtx CHAIN);
63
64 int score_address_p (enum machine_mode mode, rtx x, int strict);
65
66 int score_legitimize_address (rtx *xloc);
67
68 int score_regno_mode_ok_for_base_p (int regno, int strict);
69
70 int score_register_move_cost (enum machine_mode mode, enum reg_class to,
71 enum reg_class from);
72
73 void score_declare_object (FILE *stream, const char *name,
74 const char *directive, const char *fmt, ...)
75 ATTRIBUTE_PRINTF_4;
76
77 void score_declare_object_name (FILE *stream, const char *name, tree decl);
78
79 int score_output_external (FILE *file, tree decl, const char *name);
80
81 void score_print_operand (FILE *file, rtx op, int letter);
82
83 void score_print_operand_address (FILE *file, rtx addr);
84
85 #ifdef RTX_CODE
86 enum machine_mode score_select_cc_mode (enum rtx_code op, rtx x, rtx y);
87 #endif
88
89 #include "score-mdaux.h"
90
91 #endif /* __SCORE_PROTOS_H__ */
92