]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/xtensa/xtensa-protos.h
1 /* Prototypes of target machine for GNU compiler for Xtensa.
2 Copyright (C) 2001-2023 Free Software Foundation, Inc.
3 Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
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/>. */
21 #ifndef __XTENSA_PROTOS_H__
22 #define __XTENSA_PROTOS_H__
24 /* Functions to test whether an immediate fits in a given field. */
25 extern bool xtensa_simm8 (HOST_WIDE_INT
);
26 extern bool xtensa_simm8x256 (HOST_WIDE_INT
);
27 extern bool xtensa_simm12b (HOST_WIDE_INT
);
28 extern bool xtensa_b4const_or_zero (HOST_WIDE_INT
);
29 extern bool xtensa_b4constu (HOST_WIDE_INT
);
30 extern bool xtensa_mask_immediate (HOST_WIDE_INT
);
31 extern bool xtensa_mem_offset (unsigned, machine_mode
);
33 /* Functions within xtensa.cc that we reference. */
35 extern int xt_true_regnum (rtx
);
36 extern int xtensa_valid_move (machine_mode
, rtx
*);
37 extern int smalloffset_mem_p (rtx
);
38 extern int constantpool_mem_p (rtx
);
39 extern void xtensa_extend_reg (rtx
, rtx
);
40 extern void xtensa_expand_conditional_branch (rtx
*, machine_mode
);
41 extern int xtensa_expand_conditional_move (rtx
*, int);
42 extern int xtensa_expand_scc (rtx
*, machine_mode
);
43 extern int xtensa_expand_block_move (rtx
*);
44 extern int xtensa_expand_block_set_unrolled_loop (rtx
*);
45 extern int xtensa_expand_block_set_small_loop (rtx
*);
46 extern void xtensa_split_operand_pair (rtx
*, machine_mode
);
47 extern int xtensa_constantsynth (rtx
, HOST_WIDE_INT
);
48 extern int xtensa_emit_move_sequence (rtx
*, machine_mode
);
49 extern rtx
xtensa_copy_incoming_a7 (rtx
);
50 extern void xtensa_expand_nonlocal_goto (rtx
*);
51 extern void xtensa_expand_compare_and_swap (rtx
, rtx
, rtx
, rtx
);
52 extern void xtensa_expand_atomic (enum rtx_code
, rtx
, rtx
, rtx
, bool);
53 extern void xtensa_emit_loop_end (rtx_insn
*, rtx
*);
54 extern char *xtensa_emit_branch (bool, rtx
*);
55 extern char *xtensa_emit_movcc (bool, bool, bool, rtx
*);
56 extern void xtensa_prepare_expand_call (int, rtx
*);
57 extern char *xtensa_emit_call (int, rtx
*);
58 extern char *xtensa_emit_sibcall (int, rtx
*);
59 extern bool xtensa_tls_referenced_p (rtx
);
60 extern enum rtx_code
xtensa_shlrd_which_direction (rtx
, rtx
);
61 extern bool xtensa_split1_finished_p (void);
62 extern void xtensa_split_DI_reg_imm (rtx
*);
65 extern void init_cumulative_args (CUMULATIVE_ARGS
*, int);
66 #endif /* TREE_CODE */
68 extern void print_operand (FILE *, rtx
, int);
69 extern void print_operand_address (FILE *, rtx
);
70 extern void xtensa_output_literal (FILE *, rtx
, machine_mode
, int);
71 extern void xtensa_set_return_address (rtx
, rtx
);
72 extern rtx
xtensa_return_addr (int, rtx
);
75 extern void xtensa_setup_frame_addresses (void);
76 extern int xtensa_debugger_regno (int);
77 extern long compute_frame_size (poly_int64
);
78 extern bool xtensa_use_return_instruction_p (void);
79 extern void xtensa_expand_prologue (void);
80 extern void xtensa_expand_epilogue (bool);
81 extern void xtensa_adjust_reg_alloc_order (void);
82 extern enum reg_class
xtensa_regno_to_class (int regno
);
83 extern HOST_WIDE_INT
xtensa_initial_elimination_offset (int from
, int to
);
84 extern const char **xtensa_get_config_strings (void);
86 #endif /* !__XTENSA_PROTOS_H__ */