]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/spu/spu-protos.h
re PR middle-end/46500 (target.h includes tm.h)
[thirdparty/gcc.git] / gcc / config / spu / spu-protos.h
CommitLineData
984514ac 1/* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
65ea7e28 2 Free Software Foundation, Inc.
85d9c13c
TS
3
4 This file is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
2f83c7d6 6 Software Foundation; either version 3 of the License, or (at your option)
85d9c13c
TS
7 any later version.
8
9 This file is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 for more details.
13
14 You should have received a copy of the GNU General Public License
2f83c7d6
NC
15 along with GCC; see the file COPYING3. If not see
16 <http://www.gnu.org/licenses/>. */
85d9c13c
TS
17
18#ifndef _SPU_PROTOS_
19#define _SPU_PROTOS_
20
85d9c13c
TS
21extern void spu_cpu_cpp_builtins (struct cpp_reader * pfile);
22extern void builtin_define_std (const char *);
83a01f24 23extern void spu_c_common_override_options (void);
85d9c13c
TS
24extern int valid_subreg (rtx op);
25extern void spu_expand_extv (rtx * ops, int unsignedp);
26extern void spu_expand_insv (rtx * ops);
27extern int spu_expand_block_move (rtx * ops);
f90b7a5a 28extern void spu_emit_branch_or_set (int is_set, rtx cmp, rtx * operands);
39aeae85 29extern int spu_emit_vector_cond_expr (rtx, rtx, rtx, rtx, rtx, rtx);
85d9c13c 30extern HOST_WIDE_INT const_double_to_hwint (rtx x);
85d9c13c
TS
31extern void print_operand_address (FILE * file, register rtx addr);
32extern void print_operand (FILE * file, rtx x, int code);
a1c6e4b8 33extern int spu_split_immediate (rtx * ops);
85d9c13c
TS
34extern int spu_saved_regs_size (void);
35extern int direct_return (void);
36extern void spu_expand_prologue (void);
82c0295a 37extern void spu_expand_epilogue (bool sibcall_p);
85d9c13c 38extern rtx spu_return_addr (int count, rtx frame);
65ea7e28
SB
39
40#ifdef RTX_CODE
41extern rtx hwint_to_const_double (enum machine_mode mode, HOST_WIDE_INT v);
85d9c13c 42extern rtx spu_const (enum machine_mode mode, HOST_WIDE_INT val);
39aeae85
SL
43extern rtx spu_const_from_ints (enum machine_mode mode,
44 int a, int b, int c, int d);
984514ac
JM
45extern rtx spu_float_const (const char *string,
46 enum machine_mode mode);
85d9c13c
TS
47extern int immediate_load_p (rtx op, enum machine_mode mode);
48extern int logical_immediate_p (rtx op, enum machine_mode mode);
49extern int iohl_immediate_p (rtx op, enum machine_mode mode);
50extern int arith_immediate_p (rtx op, enum machine_mode mode,
51 HOST_WIDE_INT low, HOST_WIDE_INT high);
5345cf68
TS
52extern bool exp2_immediate_p (rtx op, enum machine_mode mode, int low,
53 int high);
85d9c13c 54extern int spu_constant_address_p (rtx x);
1a627b35 55extern bool spu_legitimate_constant_p (enum machine_mode, rtx);
85d9c13c 56extern int spu_initial_elimination_offset (int from, int to);
586de218 57extern rtx spu_function_value (const_tree type, const_tree func);
85d9c13c 58extern int spu_expand_mov (rtx * ops, enum machine_mode mode);
eec9405e
TS
59extern int spu_split_load (rtx * ops);
60extern int spu_split_store (rtx * ops);
85d9c13c 61extern int fsmbi_const_p (rtx x);
a1c6e4b8
TS
62extern int cpat_const_p (rtx x, enum machine_mode mode);
63extern rtx gen_cpat_const (rtx * ops);
85d9c13c
TS
64extern void constant_to_array (enum machine_mode mode, rtx x,
65 unsigned char *arr);
a85b4c91 66extern rtx array_to_constant (enum machine_mode mode, const unsigned char *arr);
5345cf68 67extern rtx spu_gen_exp2 (enum machine_mode mode, rtx x);
85d9c13c
TS
68extern void spu_allocate_stack (rtx op0, rtx op1);
69extern void spu_restore_stack_nonlocal (rtx op0, rtx op1);
e1f1d97f 70extern void spu_restore_stack_block (rtx op0, rtx op1);
85d9c13c
TS
71extern rtx spu_gen_subreg (enum machine_mode mode, rtx x);
72extern int spu_safe_dma(HOST_WIDE_INT channel);
73extern void spu_builtin_splats (rtx ops[]);
74extern void spu_builtin_extract (rtx ops[]);
75extern void spu_builtin_insert (rtx ops[]);
76extern void spu_builtin_promote (rtx ops[]);
85d9c13c
TS
77extern void spu_expand_sign_extend (rtx ops[]);
78extern void spu_expand_vector_init (rtx target, rtx vals);
65ea7e28
SB
79#endif /* RTX_CODE */
80
73701e27 81extern void spu_init_expanders (void);
eec9405e 82extern void spu_split_convert (rtx *);
75741fed 83extern void spu_function_profiler (FILE *, int);
85d9c13c
TS
84
85/* spu-c.c */
4c4bde29
AH
86extern tree spu_resolve_overloaded_builtin (location_t, tree fndecl,
87 void *fnargs);
85d9c13c
TS
88extern rtx spu_expand_builtin (tree exp, rtx target, rtx subtarget,
89 enum machine_mode mode, int ignore);
90extern rtx spu_expand_builtin (tree, rtx, rtx, enum machine_mode, int);
91
65ea7e28
SB
92#endif /* _SPU_PROTOS_ */
93