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/] [picochip/] [picochip-protos.h] - Blame information for rev 298

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

Line No. Rev Author Line
1 282 jeremybenn
/* 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_const_ok_for_letter_p (unsigned HOST_WIDE_INT value, unsigned c);
30
 
31
#ifdef RTX_CODE                 /* inside TREE_CODE */
32
 
33
extern int picochip_reg_mode_ok_for_base_p (int mode, rtx x, unsigned strict);
34
extern void picochip_print_operand (FILE * file, rtx op, int letter);
35
extern void picochip_print_operand_address (FILE * file, rtx operand);
36
 
37
extern const char *picochip_output_cbranch (rtx operands[]);
38
extern const char *picochip_output_branch (rtx operands[], rtx insn);
39
extern const char *picochip_output_compare (rtx operands[]);
40
extern const char *picochip_output_jump (rtx insn);
41
 
42
extern const char *picochip_output_put_array (int alternative,
43
                                              rtx operands[]);
44
extern const char *picochip_output_get_array (int alternative,
45
                                              rtx operands[]);
46
extern const char *picochip_output_testport_array (int alternative,
47
                                                   rtx operands[]);
48
 
49
extern rtx gen_SImode_mem(rtx opnd1,rtx opnd2);
50
extern bool ok_to_peephole_stw(rtx opnd0, rtx opnd1, rtx opnd2, rtx opnd3);
51
extern bool ok_to_peephole_ldw(rtx opnd0, rtx opnd1, rtx opnd2, rtx opnd3);
52
 
53
extern rtx gen_min_reg(rtx opnd1,rtx opnd2);
54
 
55
extern rtx picochip_function_arg (CUMULATIVE_ARGS cum, int mode, tree type,
56
                           int named);
57
 
58
extern rtx picochip_incoming_function_arg (CUMULATIVE_ARGS, int, tree, int);
59
extern CUMULATIVE_ARGS picochip_arg_advance (CUMULATIVE_ARGS cum, int mode,
60
                                      tree type, int named);
61
 
62
extern int picochip_regno_nregs (int regno, int mode);
63
extern int picochip_class_max_nregs (int klass, int mode);
64
 
65
extern void picochip_order_regs_for_local_alloc (void);
66
 
67
extern int picochip_word_aligned_memory_reference (rtx operand);
68
extern int picochip_alignable_memory_operand (rtx operand, enum machine_mode mode);
69
extern int picochip_absolute_memory_operand (rtx op, enum machine_mode mode);
70
 
71
extern rtx picochip_function_value (const_tree valtype, const_tree func, bool outgoing);
72
extern int picochip_symbol_offset (rtx operand);
73
 
74
extern int picochip_get_function_arg_boundary (enum machine_mode mode);
75
 
76
extern enum reg_class picochip_secondary_reload(bool in_p,
77
                                 rtx x,
78
                                 enum reg_class cla,
79
                                 enum machine_mode mode,
80
                                 secondary_reload_info *sri);
81
 
82
extern void picochip_get_hi_aligned_mem (rtx ref, rtx * paligned_mem, rtx * pbitnum);
83
 
84
extern rtx picochip_get_low_const (rtx value);
85
extern rtx picochip_get_high_const (rtx value);
86
 
87
extern void picochip_expand_prologue (void);
88
extern void picochip_expand_epilogue (int is_sibling_call);
89
 
90
extern void picochip_final_prescan_insn (rtx insn, rtx * operand, int num_operands);
91
extern const char *picochip_asm_output_opcode (FILE * f, const char *ptr);
92
extern void picochip_override_options (void);
93
 
94
extern int picochip_check_conditional_copy (rtx * operands);
95
 
96
extern rtx picochip_return_addr_rtx(int count, rtx frameaddr);
97
extern rtx picochip_struct_value_rtx(tree fntype ATTRIBUTE_UNUSED,
98
                              int incoming ATTRIBUTE_UNUSED);
99
 
100
#endif /* RTX_CODE inside TREE_CODE */
101
 
102
void picochip_output_ascii (FILE * file, const char *str, int length);
103
 
104
extern int picochip_hard_regno_mode_ok (int regno, enum machine_mode mode);
105
extern void picochip_generate_internal_label (char *str, const char *prefix,
106
                                              long num);
107
 
108
extern bool picochip_return_in_memory(const_tree type,
109
                                      const_tree fntype ATTRIBUTE_UNUSED);
110
 
111
extern int initial_elimination_offset (int from, int to);
112
 
113
extern void picochip_output_aligned_common (FILE * stream, const char *name,
114
                                            unsigned size, unsigned align);
115
 
116
extern void picochip_output_global (FILE * stream, const char *name);
117
 
118
extern void picochip_output_aligned_local (FILE * stream, const char *name,
119
                                           unsigned size, unsigned alignment);
120
 
121
extern void picochip_output_label (FILE * stream, const char name[]);
122
extern void picochip_output_labelref (FILE * stream, const char name[]);
123
extern void picochip_weaken_label (FILE * stream, const char name[]);
124
extern void picochip_output_internal_label (FILE * stream, const char *prefix,
125
                                     unsigned long num);
126
 
127
extern void warn_of_byte_access (void);
128
 
129
/* True if VLIW scheduling is enabled (i.e., second scheduling pass). */
130
extern int picochip_flag_schedule_insns2;
131
 
132
extern void picochip_asm_output_anchor (rtx symbol);
133
 
134
/* Instruction set capability flags.  These are initialised to the
135
   appropriate values by picochip_override_options, once the user has
136
   selected a CPU type. */
137
extern bool picochip_has_mul_unit;
138
extern bool picochip_has_mac_unit;
139
 

powered by: WebSVN 2.1.0

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