Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/xtensa/xtensa-protos.h @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children | 77e2b8dfacca |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a06113de4d67 |
---|---|
1 /* Prototypes of target machine for GNU compiler for Xtensa. | |
2 Copyright 2001, 2002, 2003, 2004, 2005, 2007, 2008 | |
3 Free Software Foundation, Inc. | |
4 Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica. | |
5 | |
6 This file is part of GCC. | |
7 | |
8 GCC is free software; you can redistribute it and/or modify it under | |
9 the terms of the GNU General Public License as published by the Free | |
10 Software Foundation; either version 3, or (at your option) any later | |
11 version. | |
12 | |
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with GCC; see the file COPYING3. If not see | |
20 <http://www.gnu.org/licenses/>. */ | |
21 | |
22 #ifndef __XTENSA_PROTOS_H__ | |
23 #define __XTENSA_PROTOS_H__ | |
24 | |
25 /* Functions to test whether an immediate fits in a given field. */ | |
26 extern bool xtensa_simm8 (HOST_WIDE_INT); | |
27 extern bool xtensa_simm8x256 (HOST_WIDE_INT); | |
28 extern bool xtensa_simm12b (HOST_WIDE_INT); | |
29 extern bool xtensa_b4const_or_zero (HOST_WIDE_INT); | |
30 extern bool xtensa_b4constu (HOST_WIDE_INT); | |
31 extern bool xtensa_mask_immediate (HOST_WIDE_INT); | |
32 extern bool xtensa_mem_offset (unsigned, enum machine_mode); | |
33 | |
34 /* Functions within xtensa.c that we reference. */ | |
35 #ifdef RTX_CODE | |
36 extern int xt_true_regnum (rtx); | |
37 extern int xtensa_valid_move (enum machine_mode, rtx *); | |
38 extern int smalloffset_mem_p (rtx); | |
39 extern int constantpool_address_p (rtx); | |
40 extern int constantpool_mem_p (rtx); | |
41 extern void xtensa_extend_reg (rtx, rtx); | |
42 extern void xtensa_expand_conditional_branch (rtx *, enum rtx_code); | |
43 extern int xtensa_expand_conditional_move (rtx *, int); | |
44 extern int xtensa_expand_scc (rtx *); | |
45 extern int xtensa_expand_block_move (rtx *); | |
46 extern void xtensa_split_operand_pair (rtx *, enum machine_mode); | |
47 extern int xtensa_emit_move_sequence (rtx *, enum machine_mode); | |
48 extern rtx xtensa_copy_incoming_a7 (rtx); | |
49 extern void xtensa_expand_nonlocal_goto (rtx *); | |
50 extern void xtensa_expand_compare_and_swap (rtx, rtx, rtx, rtx); | |
51 extern void xtensa_expand_atomic (enum rtx_code, rtx, rtx, rtx, bool); | |
52 extern void xtensa_emit_loop_end (rtx, rtx *); | |
53 extern char *xtensa_emit_branch (bool, bool, rtx *); | |
54 extern char *xtensa_emit_bit_branch (bool, bool, rtx *); | |
55 extern char *xtensa_emit_movcc (bool, bool, bool, rtx *); | |
56 extern char *xtensa_emit_call (int, rtx *); | |
57 extern bool xtensa_legitimate_address_p (enum machine_mode, rtx, bool); | |
58 extern rtx xtensa_legitimize_address (rtx, rtx, enum machine_mode); | |
59 extern bool xtensa_tls_referenced_p (rtx); | |
60 | |
61 #ifdef TREE_CODE | |
62 extern void init_cumulative_args (CUMULATIVE_ARGS *, int); | |
63 #endif /* TREE_CODE */ | |
64 | |
65 extern void print_operand (FILE *, rtx, int); | |
66 extern void print_operand_address (FILE *, rtx); | |
67 extern bool xtensa_output_addr_const_extra (FILE *, rtx); | |
68 extern void xtensa_output_literal (FILE *, rtx, enum machine_mode, int); | |
69 extern rtx xtensa_return_addr (int, rtx); | |
70 extern enum reg_class xtensa_preferred_reload_class (rtx, enum reg_class, int); | |
71 struct secondary_reload_info; | |
72 extern enum reg_class xtensa_secondary_reload (bool, rtx, enum reg_class, | |
73 enum machine_mode, | |
74 struct secondary_reload_info *); | |
75 extern void xtensa_initialize_trampoline (rtx, rtx, rtx); | |
76 #endif /* RTX_CODE */ | |
77 | |
78 #ifdef TREE_CODE | |
79 extern void function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode, tree); | |
80 extern struct rtx_def *function_arg (CUMULATIVE_ARGS *, enum machine_mode, | |
81 tree, int); | |
82 extern int function_arg_boundary (enum machine_mode, tree); | |
83 #endif /* TREE_CODE */ | |
84 | |
85 extern void xtensa_setup_frame_addresses (void); | |
86 extern int xtensa_dbx_register_number (int); | |
87 extern void override_options (void); | |
88 extern long compute_frame_size (int); | |
89 extern int xtensa_frame_pointer_required (void); | |
90 extern void xtensa_expand_prologue (void); | |
91 extern void order_regs_for_local_alloc (void); | |
92 extern void xtensa_trampoline_template (FILE *); | |
93 | |
94 #endif /* !__XTENSA_PROTOS_H__ */ |