1 |
38 |
julius |
/* Definitions for GCC. Part of the machine description for CRIS.
|
2 |
|
|
Copyright (C) 1998, 1999, 2000, 2001, 2004, 2005, 2006, 2007
|
3 |
|
|
Free Software Foundation, Inc.
|
4 |
|
|
Contributed by Axis Communications.
|
5 |
|
|
|
6 |
|
|
This file is part of GCC.
|
7 |
|
|
|
8 |
|
|
GCC is free software; you can redistribute it and/or modify
|
9 |
|
|
it under the terms of the GNU General Public License as published by
|
10 |
|
|
the Free Software Foundation; either version 3, or (at your option)
|
11 |
|
|
any later version.
|
12 |
|
|
|
13 |
|
|
GCC is distributed in the hope that it will be useful,
|
14 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16 |
|
|
GNU General Public License for more details.
|
17 |
|
|
|
18 |
|
|
You should have received a copy of the GNU General Public License
|
19 |
|
|
along with GCC; see the file COPYING3. If not see
|
20 |
|
|
<http://www.gnu.org/licenses/>. */
|
21 |
|
|
|
22 |
|
|
/* Prototypes for the CRIS port. */
|
23 |
|
|
|
24 |
|
|
#if defined(FILE) || defined(stdin) || defined(stdout) || defined(getc) || defined(putc)
|
25 |
|
|
#define STDIO_INCLUDED
|
26 |
|
|
#endif
|
27 |
|
|
|
28 |
|
|
extern void cris_conditional_register_usage (void);
|
29 |
|
|
extern bool cris_simple_epilogue (void);
|
30 |
|
|
#ifdef RTX_CODE
|
31 |
|
|
extern const char *cris_op_str (rtx);
|
32 |
|
|
extern void cris_notice_update_cc (rtx, rtx);
|
33 |
|
|
extern bool cris_reload_address_legitimized (rtx, enum machine_mode, int, int, int);
|
34 |
|
|
extern void cris_print_operand (FILE *, rtx, int);
|
35 |
|
|
extern void cris_print_operand_address (FILE *, rtx);
|
36 |
|
|
extern int cris_side_effect_mode_ok (enum rtx_code, rtx *, int, int,
|
37 |
|
|
int, int, int);
|
38 |
|
|
extern rtx cris_return_addr_rtx (int, rtx);
|
39 |
|
|
extern rtx cris_split_movdx (rtx *);
|
40 |
|
|
extern int cris_legitimate_pic_operand (rtx);
|
41 |
|
|
extern enum cris_pic_symbol_type cris_pic_symbol_type_of (rtx);
|
42 |
|
|
extern bool cris_valid_pic_const (rtx);
|
43 |
|
|
extern bool cris_store_multiple_op_p (rtx);
|
44 |
|
|
extern bool cris_movem_load_rest_p (rtx, int);
|
45 |
|
|
extern void cris_asm_output_symbol_ref (FILE *, rtx);
|
46 |
|
|
extern bool cris_output_addr_const_extra (FILE *, rtx);
|
47 |
|
|
extern int cris_cfun_uses_pic_table (void);
|
48 |
|
|
extern rtx cris_gen_movem_load (rtx, rtx, int);
|
49 |
|
|
extern rtx cris_emit_movem_store (rtx, rtx, int, bool);
|
50 |
|
|
extern void cris_expand_pic_call_address (rtx *);
|
51 |
|
|
extern void cris_order_for_addsi3 (rtx *, int);
|
52 |
|
|
#endif /* RTX_CODE */
|
53 |
|
|
extern void cris_asm_output_label_ref (FILE *, char *);
|
54 |
|
|
extern void cris_target_asm_named_section (const char *, unsigned int, tree);
|
55 |
|
|
extern void cris_expand_prologue (void);
|
56 |
|
|
extern void cris_expand_epilogue (void);
|
57 |
|
|
extern void cris_expand_return (bool);
|
58 |
|
|
extern bool cris_return_address_on_stack_for_return (void);
|
59 |
|
|
extern bool cris_return_address_on_stack (void);
|
60 |
|
|
extern void cris_pragma_expand_mul (struct cpp_reader *);
|
61 |
|
|
|
62 |
|
|
/* Need one that returns an int; usable in expressions. */
|
63 |
|
|
extern int cris_fatal (char *);
|
64 |
|
|
|
65 |
|
|
extern void cris_override_options (void);
|
66 |
|
|
|
67 |
|
|
extern int cris_initial_elimination_offset (int, int);
|
68 |
|
|
|
69 |
|
|
extern void cris_init_expanders (void);
|