]> gcc.gnu.org Git - gcc.git/blame - gcc/config/arc/arc-protos.h
Update copyright years.
[gcc.git] / gcc / config / arc / arc-protos.h
CommitLineData
526b7aee 1/* Definitions of target machine for GNU compiler, Synopsys DesignWare ARC cpu.
5624e564 2 Copyright (C) 2000-2015 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. */
28extern void arc_output_function_epilogue (FILE *, HOST_WIDE_INT, int);
29extern const char *output_shift (rtx *);
ef4bddc2 30extern bool compact_sda_memory_operand (rtx op,machine_mode mode);
526b7aee
SV
31extern bool arc_double_limm_p (rtx);
32extern void arc_print_operand (FILE *, rtx, int);
33extern void arc_print_operand_address (FILE *, rtx);
b3458f61 34extern void arc_final_prescan_insn (rtx_insn *, rtx *, int);
526b7aee
SV
35extern void arc_set_default_type_attributes(tree type);
36extern const char *arc_output_libcall (const char *);
37extern bool prepare_extend_operands (rtx *operands, enum rtx_code code,
ef4bddc2 38 machine_mode omode);
526b7aee
SV
39extern int arc_output_addsi (rtx *operands, bool, bool);
40extern int arc_output_commutative_cond_exec (rtx *operands, bool);
41extern bool arc_expand_movmem (rtx *operands);
ef4bddc2 42extern bool prepare_move_operands (rtx *operands, machine_mode mode);
526b7aee
SV
43extern void emit_shift (enum rtx_code, rtx, rtx, rtx);
44#endif /* RTX_CODE */
45
46#ifdef TREE_CODE
47extern enum arc_function_type arc_compute_function_type (struct function *);
48#endif /* TREE_CODE */
49
50
51extern void arc_init (void);
52extern unsigned int arc_compute_frame_size (int);
53extern bool arc_ccfsm_branch_deleted_p (void);
54extern void arc_ccfsm_record_branch_deleted (void);
55
56extern rtx arc_legitimize_pic_address (rtx, rtx);
57void arc_asm_output_aligned_decl_local (FILE *, tree, const char *,
58 unsigned HOST_WIDE_INT,
59 unsigned HOST_WIDE_INT,
60 unsigned HOST_WIDE_INT);
61extern rtx arc_return_addr_rtx (int , rtx);
62extern bool check_if_valid_regno_const (rtx *, int);
63extern bool check_if_valid_sleep_operand (rtx *, int);
ef4bddc2 64extern bool arc_legitimate_constant_p (machine_mode, rtx);
526b7aee
SV
65extern bool arc_legitimate_pc_offset_p (rtx);
66extern bool arc_legitimate_pic_addr_p (rtx);
ef4bddc2 67extern void emit_pic_move (rtx *, machine_mode);
526b7aee
SV
68extern bool arc_raw_symbolic_reference_mentioned_p (rtx, bool);
69extern bool arc_legitimate_pic_operand_p (rtx);
70extern bool arc_is_longcall_p (rtx);
71extern bool arc_is_shortcall_p (rtx);
72extern bool arc_profile_call (rtx callee);
73extern bool valid_brcc_with_delay_p (rtx *);
ef4bddc2 74extern bool small_data_pattern (rtx , machine_mode);
526b7aee
SV
75extern rtx arc_rewrite_small_data (rtx);
76extern bool arc_ccfsm_cond_exec_p (void);
77struct secondary_reload_info;
ef4bddc2 78extern int arc_register_move_cost (machine_mode, enum reg_class,
526b7aee
SV
79 enum reg_class);
80extern rtx disi_highpart (rtx);
647d790d 81extern int arc_adjust_insn_length (rtx_insn *, int, bool);
526b7aee 82extern int arc_corereg_hazard (rtx, rtx);
647d790d 83extern int arc_hazard (rtx_insn *, rtx_insn *);
526b7aee
SV
84extern int arc_write_ext_corereg (rtx);
85extern rtx gen_acc1 (void);
86extern rtx gen_acc2 (void);
87extern rtx gen_mlo (void);
88extern rtx gen_mhi (void);
89extern bool arc_branch_size_unknown_p (void);
90struct arc_ccfsm;
b32d5189
DM
91extern void arc_ccfsm_record_condition (rtx, bool, rtx_insn *,
92 struct arc_ccfsm *);
526b7aee
SV
93extern void arc_expand_prologue (void);
94extern void arc_expand_epilogue (int);
95extern void arc_init_expanders (void);
96extern int arc_check_millicode (rtx op, int offset, int load_p);
97extern int arc_get_unalign (void);
98extern void arc_clear_unalign (void);
99extern void arc_toggle_unalign (void);
100extern void split_addsi (rtx *);
101extern void split_subsi (rtx *);
102extern void arc_pad_return (void);
103extern rtx arc_split_move (rtx *);
b3458f61
DM
104extern int arc_verify_short (rtx_insn *insn, int unalign, int);
105extern const char *arc_short_long (rtx_insn *insn, const char *, const char *);
526b7aee 106extern rtx arc_regno_use_in (unsigned int, rtx);
84034c69 107extern int arc_attr_type (rtx_insn *);
526b7aee 108extern bool arc_scheduling_not_expected (void);
84034c69 109extern bool arc_sets_cc_p (rtx_insn *insn);
526b7aee 110extern int arc_label_align (rtx label);
b3458f61 111extern bool arc_need_delay (rtx_insn *insn);
b32d5189
DM
112extern bool arc_text_label (rtx_insn *insn);
113
526b7aee
SV
114extern int arc_decl_pretend_args (tree decl);
115extern bool arc_short_comparison_p (rtx, int);
116extern bool arc_epilogue_uses (int regno);
117/* insn-attrtab.c doesn't include reload.h, which declares regno_clobbered_p. */
ef4bddc2 118extern int regno_clobbered_p (unsigned int, rtx_insn *, machine_mode, int);
526b7aee 119extern int arc_return_slot_offset (void);
ef4bddc2 120extern bool arc_legitimize_reload_address (rtx *, machine_mode, int, int);
This page took 0.469724 seconds and 5 git commands to generate.