OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [config/] [rs6000/] [rs6000-protos.h] - Blame information for rev 328

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 282 jeremybenn
/* Definitions of target machine for GNU compiler, for IBM RS/6000.
2
   Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
3
   Free Software Foundation, Inc.
4
   Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
5
 
6
   This file is part of GCC.
7
 
8
   GCC is free software; you can redistribute it and/or modify it
9
   under the terms of the GNU General Public License as published
10
   by the Free Software Foundation; either version 3, or (at your
11
   option) any later version.
12
 
13
   GCC is distributed in the hope that it will be useful, but WITHOUT
14
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16
   License 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 GCC_RS6000_PROTOS_H
23
#define GCC_RS6000_PROTOS_H
24
 
25
/* Declare functions in rs6000.c */
26
 
27
#ifdef RTX_CODE
28
 
29
#ifdef TREE_CODE
30
extern void init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, int, int, int);
31
#endif /* TREE_CODE */
32
 
33
extern bool easy_altivec_constant (rtx, enum machine_mode);
34
extern HOST_WIDE_INT const_vector_elt_as_int (rtx, unsigned int);
35
extern bool macho_lo_sum_memory_operand (rtx, enum machine_mode);
36
extern int num_insns_constant (rtx, enum machine_mode);
37
extern int num_insns_constant_wide (HOST_WIDE_INT);
38
extern int small_data_operand (rtx, enum machine_mode);
39
extern bool toc_relative_expr_p (rtx);
40
extern bool invalid_e500_subreg (rtx, enum machine_mode);
41
extern void validate_condition_mode (enum rtx_code, enum machine_mode);
42
extern bool legitimate_constant_pool_address_p (rtx);
43
extern bool legitimate_indirect_address_p (rtx, int);
44
extern bool legitimate_indexed_address_p (rtx, int);
45
extern bool avoiding_indexed_address_p (enum machine_mode);
46
 
47
extern rtx rs6000_got_register (rtx);
48
extern rtx find_addr_reg (rtx);
49
extern rtx gen_easy_altivec_constant (rtx);
50
extern const char *output_vec_const_move (rtx *);
51
extern void rs6000_expand_vector_init (rtx, rtx);
52
extern void paired_expand_vector_init (rtx, rtx);
53
extern void rs6000_expand_vector_set (rtx, rtx, int);
54
extern void rs6000_expand_vector_extract (rtx, rtx, int);
55
extern void build_mask64_2_operands (rtx, rtx *);
56
extern int expand_block_clear (rtx[]);
57
extern int expand_block_move (rtx[]);
58
extern const char * rs6000_output_load_multiple (rtx[]);
59
extern int includes_lshift_p (rtx, rtx);
60
extern int includes_rshift_p (rtx, rtx);
61
extern int includes_rldic_lshift_p (rtx, rtx);
62
extern int includes_rldicr_lshift_p (rtx, rtx);
63
extern int insvdi_rshift_rlwimi_p (rtx, rtx, rtx);
64
extern int registers_ok_for_quad_peep (rtx, rtx);
65
extern int mems_ok_for_quad_peep (rtx, rtx);
66
extern bool gpr_or_gpr_p (rtx, rtx);
67
extern enum reg_class (*rs6000_preferred_reload_class_ptr) (rtx,
68
                                                            enum reg_class);
69
extern enum reg_class (*rs6000_secondary_reload_class_ptr) (enum reg_class,
70
                                                            enum machine_mode,
71
                                                            rtx);
72
extern bool (*rs6000_secondary_memory_needed_ptr) (enum reg_class,
73
                                                   enum reg_class,
74
                                                   enum machine_mode);
75
extern bool (*rs6000_cannot_change_mode_class_ptr) (enum machine_mode,
76
                                                    enum machine_mode,
77
                                                    enum reg_class);
78
extern void rs6000_secondary_reload_inner (rtx, rtx, rtx, bool);
79
extern int paired_emit_vector_cond_expr (rtx, rtx, rtx,
80
                                         rtx, rtx, rtx);
81
extern void paired_expand_vector_move (rtx operands[]);
82
 
83
 
84
extern int ccr_bit (rtx, int);
85
extern int extract_MB (rtx);
86
extern int extract_ME (rtx);
87
extern void rs6000_output_function_entry (FILE *, const char *);
88
extern void print_operand (FILE *, rtx, int);
89
extern void print_operand_address (FILE *, rtx);
90
extern bool rs6000_output_addr_const_extra (FILE *, rtx);
91
extern enum rtx_code rs6000_reverse_condition (enum machine_mode,
92
                                               enum rtx_code);
93
extern void rs6000_emit_sISEL (enum machine_mode, rtx[]);
94
extern void rs6000_emit_sCOND (enum machine_mode, rtx[]);
95
extern void rs6000_emit_cbranch (enum machine_mode, rtx[]);
96
extern char * output_cbranch (rtx, const char *, int, rtx);
97
extern char * output_e500_flip_gt_bit (rtx, rtx);
98
extern rtx rs6000_emit_set_const (rtx, enum machine_mode, rtx, int);
99
extern int rs6000_emit_cmove (rtx, rtx, rtx, rtx);
100
extern int rs6000_emit_vector_cond_expr (rtx, rtx, rtx, rtx, rtx, rtx);
101
extern void rs6000_emit_minmax (rtx, enum rtx_code, rtx, rtx);
102
extern void rs6000_emit_sync (enum rtx_code, enum machine_mode,
103
                              rtx, rtx, rtx, rtx, bool);
104
extern void rs6000_split_atomic_op (enum rtx_code, rtx, rtx, rtx, rtx, rtx);
105
extern void rs6000_split_compare_and_swap (rtx, rtx, rtx, rtx, rtx);
106
extern void rs6000_expand_compare_and_swapqhi (rtx, rtx, rtx, rtx);
107
extern void rs6000_split_compare_and_swapqhi (rtx, rtx, rtx, rtx, rtx, rtx);
108
extern void rs6000_split_lock_test_and_set (rtx, rtx, rtx, rtx);
109
extern void rs6000_emit_swdivsf (rtx, rtx, rtx);
110
extern void rs6000_emit_swdivdf (rtx, rtx, rtx);
111
extern void rs6000_emit_swrsqrtsf (rtx, rtx);
112
extern void output_toc (FILE *, rtx, int, enum machine_mode);
113
extern rtx rs6000_longcall_ref (rtx);
114
extern void rs6000_fatal_bad_address (rtx);
115
extern rtx create_TOC_reference (rtx);
116
extern void rs6000_split_multireg_move (rtx, rtx);
117
extern void rs6000_emit_move (rtx, rtx, enum machine_mode);
118
extern rtx rs6000_secondary_memory_needed_rtx (enum machine_mode);
119
extern rtx (*rs6000_legitimize_reload_address_ptr) (rtx, enum machine_mode,
120
                                                    int, int, int, int *);
121
extern bool rs6000_legitimate_offset_address_p (enum machine_mode, rtx, int);
122
extern bool (*rs6000_mode_dependent_address_ptr) (rtx);
123
extern rtx rs6000_find_base_term (rtx);
124
extern bool rs6000_offsettable_memref_p (rtx);
125
extern rtx rs6000_return_addr (int, rtx);
126
extern void rs6000_output_symbol_ref (FILE*, rtx);
127
extern HOST_WIDE_INT rs6000_initial_elimination_offset (int, int);
128
extern void rs6000_emit_popcount (rtx, rtx);
129
extern void rs6000_emit_parity (rtx, rtx);
130
 
131
extern rtx rs6000_machopic_legitimize_pic_address (rtx, enum machine_mode,
132
                                                   rtx);
133
#endif /* RTX_CODE */
134
 
135
#ifdef TREE_CODE
136
extern unsigned int rs6000_special_round_type_align (tree, unsigned int,
137
                                                     unsigned int);
138
extern unsigned int darwin_rs6000_special_round_type_align (tree, unsigned int,
139
                                                            unsigned int);
140
extern void function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode,
141
                                  tree, int, int);
142
extern int function_arg_boundary (enum machine_mode, tree);
143
extern rtx function_arg (CUMULATIVE_ARGS *, enum machine_mode, tree, int);
144
extern tree altivec_resolve_overloaded_builtin (location_t, tree, void *);
145
extern rtx rs6000_libcall_value (enum machine_mode);
146
extern rtx rs6000_va_arg (tree, tree);
147
extern int function_ok_for_sibcall (tree);
148
extern void rs6000_elf_declare_function_name (FILE *, const char *, tree);
149
extern bool rs6000_elf_in_small_data_p (const_tree);
150
#ifdef ARGS_SIZE_RTX
151
/* expr.h defines ARGS_SIZE_RTX and `enum direction' */
152
extern enum direction function_arg_padding (enum machine_mode, const_tree);
153
#endif /* ARGS_SIZE_RTX */
154
 
155
#endif /* TREE_CODE */
156
 
157
extern void optimization_options (int, int);
158
extern void rs6000_override_options (const char *);
159
extern int direct_return (void);
160
extern int first_reg_to_save (void);
161
extern int first_fp_reg_to_save (void);
162
extern void output_ascii (FILE *, const char *, int);
163
extern void rs6000_gen_section_name (char **, const char *, const char *);
164
extern void output_function_profiler (FILE *, int);
165
extern void output_profile_hook  (int);
166
extern int rs6000_trampoline_size (void);
167
extern alias_set_type get_TOC_alias_set (void);
168
extern void rs6000_emit_prologue (void);
169
extern void rs6000_emit_load_toc_table (int);
170
extern void rs6000_aix_emit_builtin_unwind_init (void);
171
extern unsigned int rs6000_dbx_register_number (unsigned int);
172
extern void rs6000_emit_epilogue (int);
173
extern void rs6000_emit_eh_reg_restore (rtx, rtx);
174
extern const char * output_isel (rtx *);
175
extern int rs6000_register_move_cost (enum machine_mode,
176
                                      enum reg_class, enum reg_class);
177
extern int rs6000_memory_move_cost (enum machine_mode, enum reg_class, int);
178
extern bool rs6000_tls_referenced_p (rtx);
179
extern void rs6000_conditional_register_usage (void);
180
 
181
extern void rs6000_aix_asm_output_dwarf_table_ref (char *);
182
 
183
/* Declare functions in rs6000-c.c */
184
 
185
extern void rs6000_pragma_longcall (struct cpp_reader *);
186
extern void rs6000_cpu_cpp_builtins (struct cpp_reader *);
187
 
188
#if TARGET_MACHO
189
char *output_call (rtx, rtx *, int, int);
190
#endif
191
 
192
#ifdef NO_DOLLAR_IN_LABEL
193
const char * rs6000_xcoff_strip_dollar (const char *);
194
#endif
195
 
196
void rs6000_final_prescan_insn (rtx, rtx *operand, int num_operands);
197
 
198
extern bool rs6000_hard_regno_mode_ok_p[][FIRST_PSEUDO_REGISTER];
199
extern unsigned char rs6000_class_max_nregs[][LIM_REG_CLASSES];
200
extern unsigned char rs6000_hard_regno_nregs[][FIRST_PSEUDO_REGISTER];
201
#endif  /* rs6000-protos.h */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.