]>
Commit | Line | Data |
---|---|---|
7ce78e23 | 1 | /* Prototypes of target machine for TILE-Gx. |
3aea1f79 | 2 | Copyright (C) 2011-2014 Free Software Foundation, Inc. |
7ce78e23 | 3 | Contributed by Walter Lee (walt@tilera.com) |
4 | ||
5 | This file is part of GCC. | |
6 | ||
7 | GCC is free software; you can redistribute it and/or modify it | |
8 | under the terms of the GNU General Public License as published | |
9 | by the Free Software Foundation; either version 3, or (at your | |
10 | option) any later version. | |
11 | ||
12 | GCC is distributed in the hope that it will be useful, but WITHOUT | |
13 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
15 | 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 | #ifndef GCC_TILEGX_PROTOS_H | |
22 | #define GCC_TILEGX_PROTOS_H | |
23 | ||
24 | extern void tilegx_init_expanders (void); | |
c9d5ca27 | 25 | extern void tilegx_compute_pcrel_address (rtx, rtx); |
26 | extern void tilegx_compute_pcrel_plt_address (rtx, rtx); | |
7ce78e23 | 27 | extern bool tilegx_legitimate_pic_operand_p (rtx); |
3754d046 | 28 | extern rtx tilegx_simd_int (rtx, machine_mode); |
7ce78e23 | 29 | |
30 | #ifdef RTX_CODE | |
31 | extern bool tilegx_bitfield_operand_p (HOST_WIDE_INT, int *, int *); | |
32 | extern void tilegx_expand_set_const64 (rtx, rtx); | |
3754d046 | 33 | extern bool tilegx_expand_mov (machine_mode, rtx *); |
7ce78e23 | 34 | extern void tilegx_expand_unaligned_load (rtx, rtx, HOST_WIDE_INT, |
35 | HOST_WIDE_INT, bool); | |
3754d046 | 36 | extern void tilegx_expand_movmisalign (machine_mode, rtx *); |
7ce78e23 | 37 | extern void tilegx_allocate_stack (rtx, rtx); |
38 | extern bool tilegx_expand_muldi (rtx, rtx, rtx); | |
39 | extern void tilegx_expand_smuldi3_highpart (rtx, rtx, rtx); | |
40 | extern void tilegx_expand_umuldi3_highpart (rtx, rtx, rtx); | |
41 | ||
3754d046 | 42 | extern bool tilegx_emit_setcc (rtx[], machine_mode); |
43 | extern void tilegx_emit_conditional_branch (rtx[], machine_mode); | |
7ce78e23 | 44 | extern rtx tilegx_emit_conditional_move (rtx); |
91e21bf5 | 45 | extern const char *tilegx_output_cbranch_with_opcode (rtx_insn *, rtx *, |
7ce78e23 | 46 | const char *, |
47 | const char *, int); | |
91e21bf5 | 48 | extern const char *tilegx_output_cbranch (rtx_insn *, rtx *, bool); |
7ce78e23 | 49 | extern void tilegx_expand_tablejump (rtx, rtx); |
50 | extern void tilegx_expand_builtin_vector_binop (rtx (*)(rtx, rtx, rtx), | |
3754d046 | 51 | machine_mode, rtx, |
52 | machine_mode, rtx, rtx, | |
7ce78e23 | 53 | bool); |
54 | extern void tilegx_pre_atomic_barrier (enum memmodel); | |
55 | extern void tilegx_post_atomic_barrier (enum memmodel); | |
56 | #endif /* RTX_CODE */ | |
57 | ||
58 | extern bool tilegx_can_use_return_insn_p (void); | |
59 | extern void tilegx_expand_prologue (void); | |
60 | extern void tilegx_expand_epilogue (bool); | |
61 | extern int tilegx_initial_elimination_offset (int, int); | |
62 | extern rtx tilegx_return_addr (int, rtx); | |
63 | extern rtx tilegx_eh_return_handler_rtx (void); | |
91e21bf5 | 64 | extern int tilegx_adjust_insn_length (rtx_insn *, int); |
7ce78e23 | 65 | |
66 | extern int tilegx_asm_preferred_eh_data_format (int, int); | |
91e21bf5 | 67 | extern void tilegx_final_prescan_insn (rtx_insn *); |
7ce78e23 | 68 | extern const char *tilegx_asm_output_opcode (FILE *, const char *); |
69 | extern void tilegx_function_profiler (FILE *, int); | |
70 | ||
71 | /* Declare functions in tilegx-c.c */ | |
72 | ||
73 | extern void tilegx_cpu_cpp_builtins (struct cpp_reader *); | |
74 | ||
75 | #endif /* GCC_TILEGX_PROTOS_H */ |