Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/picochip/picochip-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 for exported functions defined in picochip.c | |
2 | |
3 Copyright (C) 2000, 2001, 2008 Free Software Foundation, Inc. | |
4 Contributed by picoChip Designs Ltd. (http://www.picochip.com) | |
5 Maintained by Daniel Towner (daniel.towner@picochip.com) and | |
6 Hariharan Sandanagobalane (hariharan@picochip.com). | |
7 | |
8 This file is part of GCC. | |
9 | |
10 GCC is free software; you can redistribute it and/or modify | |
11 it under the terms of the GNU General Public License as published by | |
12 the Free Software Foundation; either version 3, or (at your option) | |
13 any later version. | |
14 | |
15 GCC is distributed in the hope that it will be useful, | |
16 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 GNU General Public License for more details. | |
19 | |
20 You should have received a copy of the GNU General Public License | |
21 along with GCC; see the file COPYING3. If not, see | |
22 <http://www.gnu.org/licenses/>. */ | |
23 | |
24 #include "target.h" | |
25 extern void picochip_function_prologue (FILE *, HOST_WIDE_INT); | |
26 extern void picochip_function_epilogue (FILE *, HOST_WIDE_INT); | |
27 | |
28 extern enum reg_class picochip_reg_class_from_letter (unsigned); | |
29 extern int picochip_legitimate_address_p (int, struct rtx_def *, unsigned); | |
30 extern int picochip_const_ok_for_letter_p (unsigned HOST_WIDE_INT value, unsigned c); | |
31 | |
32 #ifdef RTX_CODE /* inside TREE_CODE */ | |
33 | |
34 extern int picochip_reg_mode_ok_for_base_p (int mode, rtx x, unsigned strict); | |
35 extern void picochip_print_operand (FILE * file, rtx op, int letter); | |
36 extern void picochip_print_operand_address (FILE * file, rtx operand); | |
37 | |
38 extern const char *picochip_output_cbranch (rtx operands[]); | |
39 extern const char *picochip_output_branch (rtx operands[], rtx insn); | |
40 extern const char *picochip_output_compare (rtx operands[]); | |
41 extern const char *picochip_output_jump (rtx insn); | |
42 | |
43 extern const char *picochip_output_put_array (int alternative, | |
44 rtx operands[]); | |
45 extern const char *picochip_output_get_array (int alternative, | |
46 rtx operands[]); | |
47 extern const char *picochip_output_testport_array (int alternative, | |
48 rtx operands[]); | |
49 | |
50 extern rtx gen_SImode_mem(rtx opnd1,rtx opnd2); | |
51 extern bool ok_to_peephole_stw(rtx opnd0, rtx opnd1, rtx opnd2, rtx opnd3); | |
52 extern bool ok_to_peephole_ldw(rtx opnd0, rtx opnd1, rtx opnd2, rtx opnd3); | |
53 | |
54 extern rtx gen_min_reg(rtx opnd1,rtx opnd2); | |
55 | |
56 extern rtx picochip_function_arg (CUMULATIVE_ARGS cum, int mode, tree type, | |
57 int named); | |
58 | |
59 extern rtx picochip_incoming_function_arg (CUMULATIVE_ARGS, int, tree, int); | |
60 extern CUMULATIVE_ARGS picochip_arg_advance (CUMULATIVE_ARGS cum, int mode, | |
61 tree type, int named); | |
62 | |
63 extern int picochip_regno_nregs (int regno, int mode); | |
64 extern int picochip_class_max_nregs (int class, int mode); | |
65 | |
66 extern void picochip_order_regs_for_local_alloc (void); | |
67 | |
68 extern int picochip_word_aligned_memory_reference (rtx operand); | |
69 extern int picochip_alignable_memory_operand (rtx operand, enum machine_mode mode); | |
70 extern int picochip_absolute_memory_operand (rtx op, enum machine_mode mode); | |
71 | |
72 extern rtx picochip_function_value (const_tree valtype, const_tree func, bool outgoing); | |
73 extern int picochip_symbol_offset (rtx operand); | |
74 | |
75 extern int picochip_get_function_arg_boundary (enum machine_mode mode); | |
76 | |
77 extern enum reg_class picochip_secondary_reload(bool in_p, | |
78 rtx x, | |
79 enum reg_class cla, | |
80 enum machine_mode mode, | |
81 secondary_reload_info *sri); | |
82 | |
83 extern void picochip_get_hi_aligned_mem (rtx ref, rtx * paligned_mem, rtx * pbitnum); | |
84 | |
85 extern rtx picochip_get_low_const (rtx value); | |
86 extern rtx picochip_get_high_const (rtx value); | |
87 | |
88 extern void picochip_expand_prologue (void); | |
89 extern void picochip_expand_epilogue (int is_sibling_call); | |
90 | |
91 extern void picochip_final_prescan_insn (rtx insn, rtx * operand, int num_operands); | |
92 extern const char *picochip_asm_output_opcode (FILE * f, const char *ptr); | |
93 extern void picochip_override_options (void); | |
94 | |
95 extern int picochip_check_conditional_copy (rtx * operands); | |
96 | |
97 extern rtx picochip_return_addr_rtx(int count, rtx frameaddr); | |
98 extern rtx picochip_struct_value_rtx(tree fntype ATTRIBUTE_UNUSED, | |
99 int incoming ATTRIBUTE_UNUSED); | |
100 | |
101 #endif /* RTX_CODE inside TREE_CODE */ | |
102 | |
103 void picochip_output_ascii (FILE * file, const char *str, int length); | |
104 | |
105 extern int picochip_hard_regno_mode_ok (int regno, enum machine_mode mode); | |
106 extern void picochip_generate_internal_label (char *str, const char *prefix, | |
107 long num); | |
108 | |
109 extern bool picochip_return_in_memory(const_tree type, | |
110 const_tree fntype ATTRIBUTE_UNUSED); | |
111 | |
112 extern int initial_elimination_offset (int from, int to); | |
113 | |
114 extern void picochip_output_aligned_common (FILE * stream, const char *name, | |
115 unsigned size, unsigned align); | |
116 | |
117 extern void picochip_output_global (FILE * stream, const char *name); | |
118 | |
119 extern void picochip_output_aligned_local (FILE * stream, const char *name, | |
120 unsigned size, unsigned alignment); | |
121 | |
122 extern void picochip_output_label (FILE * stream, const char name[]); | |
123 extern void picochip_output_labelref (FILE * stream, const char name[]); | |
124 extern void picochip_weaken_label (FILE * stream, const char name[]); | |
125 extern void picochip_output_internal_label (FILE * stream, const char *prefix, | |
126 unsigned long num); | |
127 | |
128 extern void warn_of_byte_access (void); | |
129 | |
130 /* True if VLIW scheduling is enabled (i.e., second scheduling pass). */ | |
131 extern int picochip_flag_schedule_insns2; | |
132 | |
133 extern void picochip_asm_output_anchor (rtx symbol); | |
134 | |
135 /* Instruction set capability flags. These are initialised to the | |
136 appropriate values by picochip_override_options, once the user has | |
137 selected a CPU type. */ | |
138 extern bool picochip_has_mul_unit; | |
139 extern bool picochip_has_mac_unit; | |
140 |