1 |
709 |
jeremybenn |
/* Prototypes of target machine for TILE-Gx.
|
2 |
|
|
Copyright (C) 2011, 2012
|
3 |
|
|
Free Software Foundation, Inc.
|
4 |
|
|
Contributed by Walter Lee (walt@tilera.com)
|
5 |
|
|
|
6 |
|
|
This file is part of GCC.
|
7 |
|
|
|
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.
|
12 |
|
|
|
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.
|
17 |
|
|
|
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/>. */
|
21 |
|
|
|
22 |
|
|
#ifndef GCC_TILEGX_PROTOS_H
|
23 |
|
|
#define GCC_TILEGX_PROTOS_H
|
24 |
|
|
|
25 |
|
|
extern void tilegx_init_expanders (void);
|
26 |
|
|
extern bool tilegx_legitimate_pic_operand_p (rtx);
|
27 |
|
|
extern rtx tilegx_simd_int (rtx, enum machine_mode);
|
28 |
|
|
|
29 |
|
|
#ifdef RTX_CODE
|
30 |
|
|
extern bool tilegx_bitfield_operand_p (HOST_WIDE_INT, int *, int *);
|
31 |
|
|
extern void tilegx_expand_set_const64 (rtx, rtx);
|
32 |
|
|
extern bool tilegx_expand_mov (enum machine_mode, rtx *);
|
33 |
|
|
extern void tilegx_expand_unaligned_load (rtx, rtx, HOST_WIDE_INT,
|
34 |
|
|
HOST_WIDE_INT, bool);
|
35 |
|
|
extern void tilegx_expand_movmisalign (enum machine_mode, rtx *);
|
36 |
|
|
extern void tilegx_allocate_stack (rtx, rtx);
|
37 |
|
|
extern bool tilegx_expand_muldi (rtx, rtx, rtx);
|
38 |
|
|
extern void tilegx_expand_smuldi3_highpart (rtx, rtx, rtx);
|
39 |
|
|
extern void tilegx_expand_umuldi3_highpart (rtx, rtx, rtx);
|
40 |
|
|
|
41 |
|
|
extern bool tilegx_emit_setcc (rtx[], enum machine_mode);
|
42 |
|
|
extern void tilegx_emit_conditional_branch (rtx[], enum machine_mode);
|
43 |
|
|
extern rtx tilegx_emit_conditional_move (rtx);
|
44 |
|
|
extern const char *tilegx_output_cbranch_with_opcode (rtx, rtx *,
|
45 |
|
|
const char *,
|
46 |
|
|
const char *, int);
|
47 |
|
|
extern const char *tilegx_output_cbranch (rtx, rtx *, bool);
|
48 |
|
|
extern void tilegx_expand_tablejump (rtx, rtx);
|
49 |
|
|
extern void tilegx_expand_builtin_vector_binop (rtx (*)(rtx, rtx, rtx),
|
50 |
|
|
enum machine_mode, rtx,
|
51 |
|
|
enum machine_mode, rtx, rtx,
|
52 |
|
|
bool);
|
53 |
|
|
extern void tilegx_pre_atomic_barrier (enum memmodel);
|
54 |
|
|
extern void tilegx_post_atomic_barrier (enum memmodel);
|
55 |
|
|
#endif /* RTX_CODE */
|
56 |
|
|
|
57 |
|
|
extern bool tilegx_can_use_return_insn_p (void);
|
58 |
|
|
extern void tilegx_expand_prologue (void);
|
59 |
|
|
extern void tilegx_expand_epilogue (bool);
|
60 |
|
|
extern int tilegx_initial_elimination_offset (int, int);
|
61 |
|
|
extern rtx tilegx_return_addr (int, rtx);
|
62 |
|
|
extern rtx tilegx_eh_return_handler_rtx (void);
|
63 |
|
|
extern int tilegx_adjust_insn_length (rtx, int);
|
64 |
|
|
|
65 |
|
|
extern int tilegx_asm_preferred_eh_data_format (int, int);
|
66 |
|
|
extern void tilegx_final_prescan_insn (rtx);
|
67 |
|
|
extern const char *tilegx_asm_output_opcode (FILE *, const char *);
|
68 |
|
|
extern void tilegx_function_profiler (FILE *, int);
|
69 |
|
|
|
70 |
|
|
/* Declare functions in tilegx-c.c */
|
71 |
|
|
|
72 |
|
|
extern void tilegx_cpu_cpp_builtins (struct cpp_reader *);
|
73 |
|
|
|
74 |
|
|
#endif /* GCC_TILEGX_PROTOS_H */
|