* target.h (struct gcc_target): Add calls.pass_by_reference.
[official-gcc.git] / gcc / config / s390 / s390-protos.h
blob447edff9b2108a3bc22a008aa6d45f606a0977af
1 /* Definitions of target machine for GNU compiler, for IBM S/390.
2 Copyright (C) 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
3 Contributed by Hartmut Penner (hpenner@de.ibm.com)
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
10 version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA. */
22 /* Declare functions in s390.c. */
24 extern void optimization_options (int, int);
25 extern void override_options (void);
26 extern HOST_WIDE_INT s390_arg_frame_offset (void);
27 extern void s390_emit_prologue (void);
28 extern void s390_emit_epilogue (bool);
29 extern void s390_function_profiler (FILE *, int);
30 extern void s390_conditional_register_usage (void);
32 #ifdef RTX_CODE
33 extern int s390_extra_constraint_str (rtx, int, const char *);
34 extern int s390_const_ok_for_constraint_p (HOST_WIDE_INT, int, const char *);
35 extern int const0_operand (rtx, enum machine_mode);
36 extern int consttable_operand (rtx, enum machine_mode);
37 extern int larl_operand (rtx, enum machine_mode);
38 extern int s_operand (rtx, enum machine_mode);
39 extern int s_imm_operand (rtx, enum machine_mode);
40 extern int shift_count_operand (rtx, enum machine_mode);
41 extern int bras_sym_operand (rtx, enum machine_mode);
42 extern int load_multiple_operation (rtx, enum machine_mode);
43 extern int store_multiple_operation (rtx, enum machine_mode);
44 extern int s390_single_part (rtx, enum machine_mode, enum machine_mode, int);
45 extern unsigned HOST_WIDE_INT s390_extract_part (rtx, enum machine_mode, int);
46 extern bool s390_split_ok_p (rtx, rtx, enum machine_mode, int);
47 extern int tls_symbolic_operand (rtx);
49 extern int s390_match_ccmode (rtx, enum machine_mode);
50 extern enum machine_mode s390_tm_ccmode (rtx, rtx, int);
51 extern enum machine_mode s390_select_ccmode (enum rtx_code, rtx, rtx);
52 extern int s390_alc_comparison (rtx op, enum machine_mode mode);
53 extern int s390_slb_comparison (rtx op, enum machine_mode mode);
54 extern rtx s390_emit_compare (enum rtx_code, rtx, rtx);
55 extern void s390_emit_jump (rtx, rtx);
56 extern int symbolic_reference_mentioned_p (rtx);
57 extern int tls_symbolic_reference_mentioned_p (rtx);
58 extern int legitimate_la_operand_p (rtx);
59 extern int preferred_la_operand_p (rtx);
60 extern int legitimate_pic_operand_p (rtx);
61 extern int legitimate_constant_p (rtx);
62 extern int legitimate_reload_constant_p (rtx);
63 extern int legitimate_address_p (enum machine_mode, rtx, int);
64 extern rtx legitimize_pic_address (rtx, rtx);
65 extern rtx legitimize_address (rtx, rtx, enum machine_mode);
66 extern enum reg_class s390_preferred_reload_class (rtx, enum reg_class);
67 extern enum reg_class s390_secondary_input_reload_class (enum reg_class,
68 enum machine_mode,
69 rtx);
70 extern enum reg_class s390_secondary_output_reload_class (enum reg_class,
71 enum machine_mode,
72 rtx);
73 extern int s390_plus_operand (rtx, enum machine_mode);
74 extern void s390_expand_plus_operand (rtx, rtx, rtx);
75 extern void emit_symbolic_move (rtx *);
76 extern void s390_load_address (rtx, rtx);
77 extern void s390_expand_movmem (rtx, rtx, rtx);
78 extern void s390_expand_clrmem (rtx, rtx);
79 extern void s390_expand_cmpmem (rtx, rtx, rtx, rtx);
80 extern bool s390_expand_addcc (enum rtx_code, rtx, rtx, rtx, rtx, rtx);
81 extern rtx s390_return_addr_rtx (int, rtx);
82 extern rtx s390_emit_call (rtx, rtx, rtx, rtx);
84 extern bool s390_output_addr_const_extra (FILE*, rtx);
85 extern void print_operand_address (FILE *, rtx);
86 extern void print_operand (FILE *, rtx, int);
87 extern void s390_output_constant_pool (rtx, rtx);
88 extern void s390_output_pool_entry (rtx, enum machine_mode, unsigned int);
89 extern void s390_trampoline_template (FILE *);
90 extern void s390_initialize_trampoline (rtx, rtx, rtx);
91 extern rtx s390_gen_rtx_const_DI (int, int);
92 extern void s390_output_dwarf_dtprel (FILE*, int, rtx);
93 extern int s390_agen_dep_p (rtx, rtx);
94 extern rtx s390_load_got (void);
96 #endif /* RTX_CODE */
98 #ifdef TREE_CODE
99 extern void s390_function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode,
100 tree, int);
101 #ifdef RTX_CODE
102 extern rtx s390_function_arg (CUMULATIVE_ARGS *, enum machine_mode, tree, int);
103 extern rtx s390_function_value (tree, enum machine_mode);
104 extern void s390_va_start (tree, rtx);
105 #endif /* RTX_CODE */
106 #endif /* TREE_CODE */