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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [rs6000/] [rs6000-protos.h] - Blame information for rev 747

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

Line No. Rev Author Line
1 709 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
   2010, 2011
4
   Free Software Foundation, Inc.
5
   Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
6
 
7
   This file is part of GCC.
8
 
9
   GCC is free software; you can redistribute it and/or modify it
10
   under the terms of the GNU General Public License as published
11
   by the Free Software Foundation; either version 3, or (at your
12
   option) any later version.
13
 
14
   GCC is distributed in the hope that it will be useful, but WITHOUT
15
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
17
   License for more details.
18
 
19
   You should have received a copy of the GNU General Public License
20
   along with GCC; see the file COPYING3.  If not see
21
   <http://www.gnu.org/licenses/>.  */
22
 
23
#ifndef GCC_RS6000_PROTOS_H
24
#define GCC_RS6000_PROTOS_H
25
 
26
/* Declare functions in rs6000.c */
27
 
28
#ifdef RTX_CODE
29
 
30
#ifdef TREE_CODE
31
extern void init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, int, int, int,
32
                                  tree, enum machine_mode);
33
#endif /* TREE_CODE */
34
 
35
extern bool easy_altivec_constant (rtx, enum machine_mode);
36
extern HOST_WIDE_INT const_vector_elt_as_int (rtx, unsigned int);
37
extern bool macho_lo_sum_memory_operand (rtx, enum machine_mode);
38
extern int num_insns_constant (rtx, enum machine_mode);
39
extern int num_insns_constant_wide (HOST_WIDE_INT);
40
extern int small_data_operand (rtx, enum machine_mode);
41
extern bool toc_relative_expr_p (rtx);
42
extern bool invalid_e500_subreg (rtx, enum machine_mode);
43
extern void validate_condition_mode (enum rtx_code, enum machine_mode);
44
extern bool legitimate_constant_pool_address_p (const_rtx, enum machine_mode,
45
                                                bool);
46
extern bool legitimate_indirect_address_p (rtx, int);
47
extern bool legitimate_indexed_address_p (rtx, int);
48
extern bool avoiding_indexed_address_p (enum machine_mode);
49
 
50
extern rtx rs6000_got_register (rtx);
51
extern rtx find_addr_reg (rtx);
52
extern rtx gen_easy_altivec_constant (rtx);
53
extern const char *output_vec_const_move (rtx *);
54
extern void rs6000_expand_vector_init (rtx, rtx);
55
extern void paired_expand_vector_init (rtx, rtx);
56
extern void rs6000_expand_vector_set (rtx, rtx, int);
57
extern void rs6000_expand_vector_extract (rtx, rtx, int);
58
extern bool altivec_expand_vec_perm_const (rtx op[4]);
59
extern bool rs6000_expand_vec_perm_const (rtx op[4]);
60
extern void rs6000_expand_extract_even (rtx, rtx, rtx);
61
extern void rs6000_expand_interleave (rtx, rtx, rtx, bool);
62
extern void build_mask64_2_operands (rtx, rtx *);
63
extern int expand_block_clear (rtx[]);
64
extern int expand_block_move (rtx[]);
65
extern const char * rs6000_output_load_multiple (rtx[]);
66
extern int includes_lshift_p (rtx, rtx);
67
extern int includes_rshift_p (rtx, rtx);
68
extern int includes_rldic_lshift_p (rtx, rtx);
69
extern int includes_rldicr_lshift_p (rtx, rtx);
70
extern int insvdi_rshift_rlwimi_p (rtx, rtx, rtx);
71
extern int registers_ok_for_quad_peep (rtx, rtx);
72
extern int mems_ok_for_quad_peep (rtx, rtx);
73
extern bool gpr_or_gpr_p (rtx, rtx);
74
extern enum reg_class (*rs6000_preferred_reload_class_ptr) (rtx,
75
                                                            enum reg_class);
76
extern enum reg_class (*rs6000_secondary_reload_class_ptr) (enum reg_class,
77
                                                            enum machine_mode,
78
                                                            rtx);
79
extern bool (*rs6000_secondary_memory_needed_ptr) (enum reg_class,
80
                                                   enum reg_class,
81
                                                   enum machine_mode);
82
extern bool (*rs6000_cannot_change_mode_class_ptr) (enum machine_mode,
83
                                                    enum machine_mode,
84
                                                    enum reg_class);
85
extern void rs6000_secondary_reload_inner (rtx, rtx, rtx, bool);
86
extern void rs6000_secondary_reload_ppc64 (rtx, rtx, rtx, bool);
87
extern int paired_emit_vector_cond_expr (rtx, rtx, rtx,
88
                                         rtx, rtx, rtx);
89
extern void paired_expand_vector_move (rtx operands[]);
90
 
91
 
92
extern int ccr_bit (rtx, int);
93
extern int extract_MB (rtx);
94
extern int extract_ME (rtx);
95
extern void rs6000_output_function_entry (FILE *, const char *);
96
extern void print_operand (FILE *, rtx, int);
97
extern void print_operand_address (FILE *, rtx);
98
extern enum rtx_code rs6000_reverse_condition (enum machine_mode,
99
                                               enum rtx_code);
100
extern void rs6000_emit_sISEL (enum machine_mode, rtx[]);
101
extern void rs6000_emit_sCOND (enum machine_mode, rtx[]);
102
extern void rs6000_emit_cbranch (enum machine_mode, rtx[]);
103
extern char * output_cbranch (rtx, const char *, int, rtx);
104
extern char * output_e500_flip_gt_bit (rtx, rtx);
105
extern const char * output_probe_stack_range (rtx, rtx);
106
extern rtx rs6000_emit_set_const (rtx, enum machine_mode, rtx, int);
107
extern int rs6000_emit_cmove (rtx, rtx, rtx, rtx);
108
extern int rs6000_emit_vector_cond_expr (rtx, rtx, rtx, rtx, rtx, rtx);
109
extern void rs6000_emit_minmax (rtx, enum rtx_code, rtx, rtx);
110
extern void rs6000_expand_atomic_compare_and_swap (rtx op[]);
111
extern void rs6000_expand_atomic_exchange (rtx op[]);
112
extern void rs6000_expand_atomic_op (enum rtx_code, rtx, rtx, rtx, rtx, rtx);
113
extern void rs6000_emit_swdiv (rtx, rtx, rtx, bool);
114
extern void rs6000_emit_swrsqrt (rtx, rtx);
115
extern void output_toc (FILE *, rtx, int, enum machine_mode);
116
extern rtx rs6000_longcall_ref (rtx);
117
extern void rs6000_fatal_bad_address (rtx);
118
extern rtx create_TOC_reference (rtx, rtx);
119
extern void rs6000_split_multireg_move (rtx, rtx);
120
extern void rs6000_emit_move (rtx, rtx, enum machine_mode);
121
extern rtx rs6000_secondary_memory_needed_rtx (enum machine_mode);
122
extern rtx (*rs6000_legitimize_reload_address_ptr) (rtx, enum machine_mode,
123
                                                    int, int, int, int *);
124
extern bool rs6000_legitimate_offset_address_p (enum machine_mode, rtx, int);
125
extern rtx rs6000_find_base_term (rtx);
126
extern bool rs6000_offsettable_memref_p (rtx);
127
extern rtx rs6000_return_addr (int, rtx);
128
extern void rs6000_output_symbol_ref (FILE*, rtx);
129
extern HOST_WIDE_INT rs6000_initial_elimination_offset (int, int);
130
extern void rs6000_emit_popcount (rtx, rtx);
131
extern void rs6000_emit_parity (rtx, rtx);
132
 
133
extern rtx rs6000_machopic_legitimize_pic_address (rtx, enum machine_mode,
134
                                                   rtx);
135
extern rtx rs6000_address_for_fpconvert (rtx);
136
extern rtx rs6000_address_for_altivec (rtx);
137
extern rtx rs6000_allocate_stack_temp (enum machine_mode, bool, bool);
138
extern int rs6000_loop_align (rtx);
139
#endif /* RTX_CODE */
140
 
141
#ifdef TREE_CODE
142
extern unsigned int rs6000_special_round_type_align (tree, unsigned int,
143
                                                     unsigned int);
144
extern unsigned int darwin_rs6000_special_round_type_align (tree, unsigned int,
145
                                                            unsigned int);
146
extern tree altivec_resolve_overloaded_builtin (location_t, tree, void *);
147
extern rtx rs6000_libcall_value (enum machine_mode);
148
extern rtx rs6000_va_arg (tree, tree);
149
extern int function_ok_for_sibcall (tree);
150
extern void rs6000_elf_declare_function_name (FILE *, const char *, tree);
151
extern bool rs6000_elf_in_small_data_p (const_tree);
152
#ifdef ARGS_SIZE_RTX
153
/* expr.h defines ARGS_SIZE_RTX and `enum direction' */
154
extern enum direction function_arg_padding (enum machine_mode, const_tree);
155
#endif /* ARGS_SIZE_RTX */
156
 
157
#endif /* TREE_CODE */
158
 
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 unsigned int rs6000_dbx_register_number (unsigned int);
171
extern void rs6000_emit_epilogue (int);
172
extern void rs6000_emit_eh_reg_restore (rtx, rtx);
173
extern const char * output_isel (rtx *);
174
extern void rs6000_call_indirect_aix (rtx, rtx, rtx);
175
extern void rs6000_aix_asm_output_dwarf_table_ref (char *);
176
extern void get_ppc476_thunk_name (char name[32]);
177
extern bool rs6000_overloaded_builtin_p (enum rs6000_builtins);
178
extern unsigned rs6000_builtin_mask_calculate (void);
179
 
180
/* Declare functions in rs6000-c.c */
181
 
182
extern void rs6000_pragma_longcall (struct cpp_reader *);
183
extern void rs6000_cpu_cpp_builtins (struct cpp_reader *);
184
#ifdef TREE_CODE
185
extern bool rs6000_pragma_target_parse (tree, tree);
186
#endif
187
extern void rs6000_target_modify_macros (bool, int, unsigned);
188
extern void (*rs6000_target_modify_macros_ptr) (bool, int, unsigned);
189
 
190
#if TARGET_MACHO
191
char *output_call (rtx, rtx *, int, int);
192
#endif
193
 
194
#ifdef NO_DOLLAR_IN_LABEL
195
const char * rs6000_xcoff_strip_dollar (const char *);
196
#endif
197
 
198
void rs6000_final_prescan_insn (rtx, rtx *operand, int num_operands);
199
 
200
extern bool rs6000_hard_regno_mode_ok_p[][FIRST_PSEUDO_REGISTER];
201
extern unsigned char rs6000_class_max_nregs[][LIM_REG_CLASSES];
202
extern unsigned char rs6000_hard_regno_nregs[][FIRST_PSEUDO_REGISTER];
203
#endif  /* rs6000-protos.h */

powered by: WebSVN 2.1.0

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