PR96463: Optimise svld1rq from vectors for little endian AArch64 targets.
[official-gcc.git] / gcc / config / nios2 / nios2-protos.h
blob62de3a8a9cbaaf424f4cb6adb5a8c5d68d124f51
1 /* Subroutine declarations for Altera Nios II target support.
2 Copyright (C) 2012-2022 Free Software Foundation, Inc.
3 Contributed by Jonah Graham (jgraham@altera.com).
4 Contributed by Mentor Graphics, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published
10 by the Free Software Foundation; either version 3, or (at your
11 option) any later version.
13 GCC is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
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/>. */
22 #ifndef GCC_NIOS2_PROTOS_H
23 #define GCC_NIOS2_PROTOS_H
25 extern int nios2_initial_elimination_offset (int, int);
26 extern int nios2_can_use_return_insn (void);
27 extern void nios2_expand_prologue (void);
28 extern void nios2_expand_epilogue (bool);
29 extern bool nios2_expand_return (void);
30 extern void nios2_function_profiler (FILE *, int);
31 extern bool nios2_fpu_insn_enabled (enum n2fpu_code);
33 #ifdef RTX_CODE
34 extern bool nios2_large_constant_p (rtx);
35 extern bool nios2_large_constant_memory_operand_p (rtx);
37 extern rtx nios2_split_large_constant (rtx, rtx);
38 extern rtx nios2_split_large_constant_memory_operand (rtx);
39 extern bool nios2_emit_move_sequence (rtx *, machine_mode);
40 extern void nios2_emit_expensive_div (rtx *, machine_mode);
41 extern void nios2_adjust_call_address (rtx *, rtx);
43 extern rtx nios2_get_return_address (int);
44 extern void nios2_set_return_address (rtx, rtx);
46 extern bool nios2_validate_compare (machine_mode, rtx *, rtx *, rtx *);
47 extern bool nios2_validate_fpu_compare (machine_mode, rtx *, rtx *, rtx *,
48 bool);
50 extern const char * nios2_fpu_insn_asm (enum n2fpu_code);
51 extern const char * nios2_add_insn_asm (rtx_insn *, rtx *);
53 extern bool nios2_legitimate_pic_operand_p (rtx);
54 extern bool gprel_constant_p (rtx);
55 extern bool r0rel_constant_p (rtx);
56 extern bool nios2_regno_ok_for_base_p (int, bool);
57 extern bool nios2_unspec_reloc_p (rtx);
59 extern int nios2_label_align (rtx);
60 extern bool nios2_cdx_narrow_form_p (rtx_insn *);
62 extern bool pop_operation_p (rtx);
63 extern bool ldstwm_operation_p (rtx, bool);
64 extern bool gen_ldstwm_peep (bool, int, rtx, rtx *);
66 extern void nios2_adjust_reg_alloc_order (void);
68 extern pad_direction nios2_block_reg_padding (machine_mode, tree, int);
70 #endif /* RTX_CODE */
72 #endif /* GCC_NIOS2_PROTOS_H */