]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/arc/arc-protos.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / arc / arc-protos.h
CommitLineData
526b7aee 1/* Definitions of target machine for GNU compiler, Synopsys DesignWare ARC cpu.
7adcbafe 2 Copyright (C) 2000-2022 Free Software Foundation, Inc.
526b7aee
SV
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 3, or (at your option)
9any later version.
10
11GCC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
19
20#ifdef RTX_CODE
21
ef4bddc2 22extern machine_mode arc_select_cc_mode (enum rtx_code, rtx, rtx);
526b7aee
SV
23
24/* Define the function that build the compare insn for scc, bcc and mov*cc. */
ef4bddc2 25extern struct rtx_def *gen_compare_reg (rtx, machine_mode);
526b7aee
SV
26
27/* Declarations for various fns used in the .md file. */
526b7aee 28extern const char *output_shift (rtx *);
b6fb7933 29extern bool compact_sda_memory_operand (rtx, machine_mode, bool);
526b7aee
SV
30extern bool arc_double_limm_p (rtx);
31extern void arc_print_operand (FILE *, rtx, int);
32extern void arc_print_operand_address (FILE *, rtx);
b3458f61 33extern void arc_final_prescan_insn (rtx_insn *, rtx *, int);
526b7aee 34extern const char *arc_output_libcall (const char *);
526b7aee
SV
35extern int arc_output_addsi (rtx *operands, bool, bool);
36extern int arc_output_commutative_cond_exec (rtx *operands, bool);
76715c32 37extern bool arc_expand_cpymem (rtx *operands);
ef4bddc2 38extern bool prepare_move_operands (rtx *operands, machine_mode mode);
526b7aee 39extern void emit_shift (enum rtx_code, rtx, rtx, rtx);
b8a64b7f
CZ
40extern void arc_expand_atomic_op (enum rtx_code, rtx, rtx, rtx, rtx, rtx);
41extern void arc_split_compare_and_swap (rtx *);
42extern void arc_expand_compare_and_swap (rtx *);
fc1c2d04 43extern bool compact_memory_operand_p (rtx, machine_mode, bool, bool);
8180c03f 44extern bool arc_is_uncached_mem_p (rtx);
8fa2c211 45extern bool gen_operands_ldd_std (rtx *operands, bool load, bool commute);
90b48013 46extern bool arc_check_multi (rtx, bool);
864e2eaa 47extern void arc_adjust_reg_alloc_order (void);
03301dcc
CZ
48extern bool arc_check_ior_const (HOST_WIDE_INT );
49extern void arc_split_ior (rtx *);
50extern bool arc_check_mov_const (HOST_WIDE_INT );
51extern bool arc_split_mov_const (rtx *);
ce9dbf20 52extern bool arc_can_use_return_insn (void);
c0ba7a8a 53extern bool arc_split_move_p (rtx *);
526b7aee
SV
54#endif /* RTX_CODE */
55
526b7aee
SV
56extern bool arc_ccfsm_branch_deleted_p (void);
57extern void arc_ccfsm_record_branch_deleted (void);
58
526b7aee
SV
59void arc_asm_output_aligned_decl_local (FILE *, tree, const char *,
60 unsigned HOST_WIDE_INT,
61 unsigned HOST_WIDE_INT,
62 unsigned HOST_WIDE_INT);
63extern rtx arc_return_addr_rtx (int , rtx);
64extern bool check_if_valid_regno_const (rtx *, int);
ef4bddc2 65extern bool arc_legitimate_constant_p (machine_mode, rtx);
526b7aee 66extern bool arc_legitimate_pic_addr_p (rtx);
526b7aee 67extern bool arc_raw_symbolic_reference_mentioned_p (rtx, bool);
526b7aee
SV
68extern bool arc_is_longcall_p (rtx);
69extern bool arc_is_shortcall_p (rtx);
526b7aee 70extern bool valid_brcc_with_delay_p (rtx *);
526b7aee 71extern bool arc_ccfsm_cond_exec_p (void);
526b7aee 72extern rtx disi_highpart (rtx);
647d790d 73extern int arc_adjust_insn_length (rtx_insn *, int, bool);
526b7aee 74extern int arc_corereg_hazard (rtx, rtx);
647d790d 75extern int arc_hazard (rtx_insn *, rtx_insn *);
526b7aee
SV
76extern int arc_write_ext_corereg (rtx);
77extern rtx gen_acc1 (void);
78extern rtx gen_acc2 (void);
526b7aee
SV
79extern bool arc_branch_size_unknown_p (void);
80struct arc_ccfsm;
b32d5189
DM
81extern void arc_ccfsm_record_condition (rtx, bool, rtx_insn *,
82 struct arc_ccfsm *);
526b7aee
SV
83extern void arc_expand_prologue (void);
84extern void arc_expand_epilogue (int);
85extern void arc_init_expanders (void);
86extern int arc_check_millicode (rtx op, int offset, int load_p);
526b7aee
SV
87extern void arc_clear_unalign (void);
88extern void arc_toggle_unalign (void);
89extern void split_addsi (rtx *);
90extern void split_subsi (rtx *);
d34a0fdc 91extern void arc_split_move (rtx *);
b3458f61 92extern const char *arc_short_long (rtx_insn *insn, const char *, const char *);
526b7aee 93extern rtx arc_regno_use_in (unsigned int, rtx);
82082f65 94extern int arc_label_align (rtx_insn *label);
b32d5189
DM
95extern bool arc_text_label (rtx_insn *insn);
96
526b7aee
SV
97extern bool arc_short_comparison_p (rtx, int);
98extern bool arc_epilogue_uses (int regno);
28633bbd 99extern bool arc_eh_uses (int regno);
526b7aee 100/* insn-attrtab.c doesn't include reload.h, which declares regno_clobbered_p. */
ef4bddc2 101extern int regno_clobbered_p (unsigned int, rtx_insn *, machine_mode, int);
ef4bddc2 102extern bool arc_legitimize_reload_address (rtx *, machine_mode, int, int);
f50bb868 103extern void arc_secondary_reload_conv (rtx, rtx, rtx, bool);
cf07c3de 104extern void arc_cpu_cpp_builtins (cpp_reader *);
e9472c81 105extern bool arc_store_addr_hazard_p (rtx_insn *, rtx_insn *);
3fd6ae8a 106extern void arc_eh_return_address_location (rtx);
6b55f8c9
CZ
107extern bool arc_is_jli_call_p (rtx);
108extern void arc_file_end (void);
7778a1ad 109extern bool arc_is_secure_call_p (rtx);
f60689fa
CZ
110
111rtl_opt_pass * make_pass_arc_ifcvt (gcc::context *ctxt);
112rtl_opt_pass * make_pass_arc_predicate_delay_insns (gcc::context *ctxt);