OSDN Git Service

* config/host-hpux.c: Change copyright header to refer to version 3 of the GNU
[pf3gnuchains/gcc-fork.git] / gcc / config / bfin / bfin-protos.h
1 /* Prototypes for Blackfin functions used in the md file & elsewhere.
2    Copyright (C) 2005, 2007 Free Software Foundation, Inc.
3
4    This file is part of GNU CC.
5
6    GNU CC is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 3, or (at your option)
9    any later version.
10
11    GNU CC is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public 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 /* Function prototypes that cannot exist in bfin.h due to dependency
21    complications.  */
22 #ifndef GCC_BFIN_PROTOS_H
23 #define GCC_BFIN_PROTOS_H
24
25 /* CPU type.  */
26 typedef enum bfin_cpu
27 {
28   BFIN_CPU_BF531,
29   BFIN_CPU_BF532,
30   BFIN_CPU_BF533,
31   BFIN_CPU_BF534,
32   BFIN_CPU_BF536,
33   BFIN_CPU_BF537,
34   BFIN_CPU_BF561
35 } bfin_cpu_t;
36
37 /* Value of -mcpu= */
38 extern bfin_cpu_t bfin_cpu_type;
39
40 #define Mmode enum machine_mode
41
42 extern rtx function_arg (CUMULATIVE_ARGS *, Mmode, tree, int);
43 extern void function_arg_advance (CUMULATIVE_ARGS *, Mmode, tree, int);
44 extern bool function_arg_regno_p (int);
45
46 extern const char *output_load_immediate (rtx *);
47 extern const char *output_casesi_internal (rtx *);
48 extern char *bfin_asm_long (void);
49 extern char *bfin_asm_short (void);
50 extern int log2constp (unsigned HOST_WIDE_INT);
51
52 extern rtx legitimize_address (rtx, rtx, Mmode);
53 extern bool bfin_legitimate_constant_p (rtx);
54 extern int hard_regno_mode_ok (int, Mmode);
55 extern void init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx);          
56 extern int bfin_frame_pointer_required (void);
57 extern HOST_WIDE_INT bfin_initial_elimination_offset (int, int);
58
59 extern int effective_address_32bit_p (rtx, Mmode);
60 extern int symbolic_reference_mentioned_p (rtx);
61 extern rtx bfin_gen_compare (rtx, Mmode);
62 extern bool expand_move (rtx *, Mmode);
63 extern void bfin_expand_call (rtx, rtx, rtx, rtx, int);
64 extern bool bfin_longcall_p (rtx, int);
65 extern bool bfin_dsp_memref_p (rtx);
66 extern bool bfin_expand_movmem (rtx, rtx, rtx, rtx);
67
68 extern void conditional_register_usage (void);
69 extern int bfin_register_move_cost (enum machine_mode, enum reg_class,
70                                     enum reg_class);
71 extern int bfin_memory_move_cost (enum machine_mode, enum reg_class, int in);
72 extern enum reg_class secondary_input_reload_class (enum reg_class, Mmode,
73                                                     rtx);
74 extern enum reg_class secondary_output_reload_class (enum reg_class, Mmode,
75                                                      rtx);
76 extern char *section_asm_op_1 (SECT_ENUM_T);
77 extern char *section_asm_op (SECT_ENUM_T);
78 extern void override_options (void);
79 extern void print_operand (FILE *,  rtx, char);
80 extern void print_address_operand (FILE *, rtx);
81 extern void split_di (rtx [], int, rtx [], rtx []);
82 extern int split_load_immediate (rtx []);
83 extern void emit_pic_move (rtx *, Mmode);
84 extern void override_options (void);
85 extern void asm_conditional_branch (rtx, rtx *, int, int);
86 extern rtx bfin_gen_compare (rtx, Mmode);
87
88 extern int bfin_local_alignment (tree, int);
89 extern int bfin_return_in_memory (tree);
90 extern void initialize_trampoline (rtx, rtx, rtx);
91 extern bool bfin_legitimate_address_p (Mmode, rtx, int);
92 extern rtx bfin_va_arg (tree, tree);
93
94 extern void bfin_expand_prologue (void);
95 extern void bfin_expand_epilogue (int, int, bool);
96 extern int push_multiple_operation (rtx, Mmode);
97 extern int pop_multiple_operation (rtx, Mmode);
98 extern void output_push_multiple (rtx, rtx *);
99 extern void output_pop_multiple (rtx, rtx *);
100 extern int bfin_hard_regno_rename_ok (unsigned int, unsigned int);
101 extern rtx bfin_return_addr_rtx (int);
102 extern void bfin_hardware_loop (void);
103 #undef  Mmode 
104
105 #endif
106