| 1 |
/* Definitions for GCC. Part of the machine description for CRIS. |
| 2 |
Copyright (C) 1998-2025 Free Software Foundation, Inc. |
| 3 |
Contributed by Axis Communications. |
| 4 |
|
| 5 |
This file is part of GCC. |
| 6 |
|
| 7 |
GCC is free software; you can redistribute it and/or modify |
| 8 |
it under the terms of the GNU General Public License as published by |
| 9 |
the Free Software Foundation; either version 3, or (at your option) |
| 10 |
any later version. |
| 11 |
|
| 12 |
GCC is distributed in the hope that it will be useful, |
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
GNU General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU General Public License |
| 18 |
along with GCC; see the file COPYING3. If not see |
| 19 |
<http://www.gnu.org/licenses/>. */ |
| 20 |
|
| 21 |
/* Prototypes for the CRIS port. */ |
| 22 |
|
| 23 |
extern bool cris_simple_epilogue (void); |
| 24 |
#ifdef RTX_CODE |
| 25 |
extern const char *cris_op_str (rtx); |
| 26 |
extern machine_mode cris_select_cc_mode (enum rtx_code, rtx, rtx); |
| 27 |
extern bool cris_reload_address_legitimized (rtx, machine_mode, int, int, int); |
| 28 |
extern int cris_side_effect_mode_ok (enum rtx_code, rtx *, int, int, |
| 29 |
int, int, int); |
| 30 |
extern rtx cris_return_addr_rtx (int, rtx); |
| 31 |
extern rtx cris_eh_return_handler_rtx (); |
| 32 |
extern rtx cris_split_movdx (rtx *); |
| 33 |
extern bool cris_base_p (const_rtx, bool); |
| 34 |
extern bool cris_base_or_autoincr_p (const_rtx, bool); |
| 35 |
extern bool cris_bdap_index_p (const_rtx, bool); |
| 36 |
extern void cris_reduce_compare (rtx *, rtx *, rtx *); |
| 37 |
extern bool cris_biap_index_p (const_rtx, bool); |
| 38 |
extern bool cris_legitimate_address_p (machine_mode, rtx, bool); |
| 39 |
extern bool cris_store_multiple_op_p (rtx); |
| 40 |
extern bool cris_movem_load_rest_p (rtx); |
| 41 |
extern void cris_asm_output_symbol_ref (FILE *, rtx); |
| 42 |
extern void cris_asm_output_case_end (FILE *, int, rtx_insn *); |
| 43 |
extern rtx cris_gen_movem_load (rtx, rtx); |
| 44 |
extern rtx cris_emit_movem_store (rtx, rtx, int, bool); |
| 45 |
extern rtx_insn *cris_emit_insn (rtx x); |
| 46 |
extern void cris_order_for_addsi3 (rtx *, int); |
| 47 |
extern void cris_emit_trap_for_misalignment (rtx); |
| 48 |
extern int cris_split_constant (HOST_WIDE_INT, enum rtx_code, |
| 49 |
machine_mode, bool, |
| 50 |
bool generate = false, |
| 51 |
rtx dest = NULL_RTX, |
| 52 |
rtx op = NULL_RTX); |
| 53 |
#define cris_splittable_constant_p cris_split_constant |
| 54 |
#endif /* RTX_CODE */ |
| 55 |
extern void cris_asm_output_label_ref (FILE *, char *); |
| 56 |
extern void cris_asm_output_ident (const char *); |
| 57 |
extern void cris_expand_prologue (void); |
| 58 |
extern void cris_expand_epilogue (void); |
| 59 |
extern void cris_expand_return (bool); |
| 60 |
extern bool cris_return_address_on_stack_for_return (void); |
| 61 |
extern bool cris_return_address_on_stack (void); |
| 62 |
extern void cris_pragma_expand_mul (struct cpp_reader *); |
| 63 |
|
| 64 |
/* Need one that returns an int; usable in expressions. */ |
| 65 |
extern int cris_fatal (char *); |
| 66 |
|
| 67 |
extern int cris_initial_elimination_offset (int, int); |
| 68 |
|
| 69 |
extern void cris_init_expanders (void); |
| 70 |
|
| 71 |
extern rtl_opt_pass *make_pass_cris_postdbr_cmpelim (gcc::context *); |