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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 709 jeremybenn
/* Prototypes for exported functions defined in picochip.c
2
 
3
   Copyright (C) 2000, 2001, 2008, 2009, 2010 Free Software Foundation, Inc.
4
   Contributed by Picochip 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
extern void picochip_function_prologue (FILE *, HOST_WIDE_INT);
25
extern void picochip_function_epilogue (FILE *, HOST_WIDE_INT);
26
 
27
extern enum reg_class picochip_reg_class_from_letter (unsigned);
28
extern int picochip_const_ok_for_letter_p (unsigned HOST_WIDE_INT value, unsigned c);
29
 
30
#ifdef RTX_CODE                 /* inside TREE_CODE */
31
 
32
extern int picochip_reg_mode_ok_for_base_p (int mode, rtx x, unsigned strict);
33
extern void picochip_print_operand (FILE * file, rtx op, int letter);
34
extern void picochip_print_operand_address (FILE * file, rtx operand);
35
 
36
extern const char *picochip_output_cbranch (rtx operands[]);
37
extern const char *picochip_output_branch (rtx operands[], rtx insn);
38
extern const char *picochip_output_compare (rtx operands[]);
39
extern const char *picochip_output_jump (rtx insn);
40
 
41
extern const char *picochip_output_put_array (int alternative,
42
                                              rtx operands[]);
43
extern const char *picochip_output_get_array (int alternative,
44
                                              rtx operands[]);
45
extern const char *picochip_output_testport_array (int alternative,
46
                                                   rtx operands[]);
47
 
48
extern int picochip_expand_movmemhi (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 int picochip_regno_nregs (int regno, int mode);
57
extern int picochip_class_max_nregs (int klass, int mode);
58
 
59
extern void picochip_order_regs_for_local_alloc (void);
60
 
61
extern int picochip_word_aligned_memory_reference (rtx operand);
62
extern int picochip_alignable_memory_operand (rtx operand, enum machine_mode mode);
63
extern int picochip_absolute_memory_operand (rtx op, enum machine_mode mode);
64
 
65
extern rtx picochip_function_value (const_tree valtype, const_tree func, bool outgoing);
66
extern int picochip_symbol_offset (rtx operand);
67
 
68
extern void picochip_get_hi_aligned_mem (rtx ref, rtx * paligned_mem, rtx * pbitnum);
69
 
70
extern rtx picochip_get_low_const (rtx value);
71
extern rtx picochip_get_high_const (rtx value);
72
 
73
extern void picochip_expand_prologue (void);
74
extern void picochip_expand_epilogue (int is_sibling_call);
75
 
76
extern void picochip_final_prescan_insn (rtx insn, rtx * operand, int num_operands);
77
extern const char *picochip_asm_output_opcode (FILE * f, const char *ptr);
78
 
79
extern int picochip_check_conditional_copy (rtx * operands);
80
 
81
extern rtx picochip_return_addr_rtx(int count, rtx frameaddr);
82
extern rtx picochip_struct_value_rtx(tree fntype ATTRIBUTE_UNUSED,
83
                              int incoming ATTRIBUTE_UNUSED);
84
 
85
#endif /* RTX_CODE inside TREE_CODE */
86
 
87
extern int picochip_legitimize_reload_address (rtx *x, enum machine_mode mode,
88
                                        int opnum, int type, int ind_levels);
89
 
90
 
91
void picochip_output_ascii (FILE * file, const char *str, int length);
92
 
93
extern int picochip_hard_regno_mode_ok (int regno, enum machine_mode mode);
94
extern void picochip_generate_internal_label (char *str, const char *prefix,
95
                                              long num);
96
 
97
extern bool picochip_return_in_memory(const_tree type,
98
                                      const_tree fntype ATTRIBUTE_UNUSED);
99
 
100
extern int initial_elimination_offset (int from, int to);
101
 
102
extern void picochip_output_aligned_common (FILE * stream, const char *name,
103
                                            unsigned size, unsigned align);
104
 
105
extern void picochip_output_global (FILE * stream, const char *name);
106
 
107
extern void picochip_output_aligned_local (FILE * stream, const char *name,
108
                                           unsigned size, unsigned alignment);
109
 
110
extern void picochip_output_label (FILE * stream, const char name[]);
111
extern void picochip_output_labelref (FILE * stream, const char name[]);
112
extern void picochip_weaken_label (FILE * stream, const char name[]);
113
extern void picochip_output_internal_label (FILE * stream, const char *prefix,
114
                                     unsigned long num);
115
 
116
extern void warn_of_byte_access (void);
117
 
118
/* True if VLIW scheduling is enabled (i.e., second scheduling pass). */
119
extern int picochip_flag_schedule_insns2;
120
 
121
extern void picochip_asm_output_anchor (rtx symbol);
122
 
123
/* Instruction set capability flags.  These are initialised to the
124
   appropriate values by picochip_option_override, once the user has
125
   selected a CPU type. */
126
extern bool picochip_has_mul_unit;
127
extern bool picochip_has_mac_unit;
128
 

powered by: WebSVN 2.1.0

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