OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [spu/] [spu-protos.h] - Blame information for rev 849

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 709 jeremybenn
/* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
2
   Free Software Foundation, Inc.
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
6
   Software Foundation; either version 3 of the License, or (at your option)
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
15
   along with GCC; see the file COPYING3.  If not see
16
   <http://www.gnu.org/licenses/>.  */
17
 
18
#ifndef _SPU_PROTOS_
19
#define _SPU_PROTOS_
20
 
21
extern void spu_cpu_cpp_builtins (struct cpp_reader * pfile);
22
extern void builtin_define_std (const char *);
23
extern void spu_c_common_override_options (void);
24
extern int valid_subreg (rtx op);
25
extern void spu_expand_extv (rtx * ops, int unsignedp);
26
extern void spu_expand_insv (rtx * ops);
27
extern int spu_expand_block_move (rtx * ops);
28
extern void spu_emit_branch_or_set (int is_set, rtx cmp, rtx * operands);
29
extern int spu_emit_vector_cond_expr (rtx, rtx, rtx, rtx, rtx, rtx);
30
extern HOST_WIDE_INT const_double_to_hwint (rtx x);
31
extern void print_operand_address (FILE * file, register rtx addr);
32
extern void print_operand (FILE * file, rtx x, int code);
33
extern int spu_split_immediate (rtx * ops);
34
extern int spu_saved_regs_size (void);
35
extern int direct_return (void);
36
extern void spu_expand_prologue (void);
37
extern void spu_expand_epilogue (bool sibcall_p);
38
extern rtx spu_return_addr (int count, rtx frame);
39
 
40
#ifdef RTX_CODE
41
extern rtx hwint_to_const_double (enum machine_mode mode, HOST_WIDE_INT v);
42
extern rtx spu_const (enum machine_mode mode, HOST_WIDE_INT val);
43
extern rtx spu_const_from_ints (enum machine_mode mode,
44
                                int a, int b, int c, int d);
45
extern rtx spu_float_const (const char *string,
46
                            enum machine_mode mode);
47
extern int immediate_load_p (rtx op, enum machine_mode mode);
48
extern int logical_immediate_p (rtx op, enum machine_mode mode);
49
extern int iohl_immediate_p (rtx op, enum machine_mode mode);
50
extern int arith_immediate_p (rtx op, enum machine_mode mode,
51
                              HOST_WIDE_INT low, HOST_WIDE_INT high);
52
extern bool exp2_immediate_p (rtx op, enum machine_mode mode, int low,
53
                              int high);
54
extern int spu_constant_address_p (rtx x);
55
extern bool spu_legitimate_constant_p (enum machine_mode, rtx);
56
extern int spu_initial_elimination_offset (int from, int to);
57
extern rtx spu_function_value (const_tree type, const_tree func);
58
extern int spu_expand_mov (rtx * ops, enum machine_mode mode);
59
extern int spu_split_load (rtx * ops);
60
extern int spu_split_store (rtx * ops);
61
extern int fsmbi_const_p (rtx x);
62
extern int cpat_const_p (rtx x, enum machine_mode mode);
63
extern rtx gen_cpat_const (rtx * ops);
64
extern void constant_to_array (enum machine_mode mode, rtx x,
65
                               unsigned char *arr);
66
extern rtx array_to_constant (enum machine_mode mode, const unsigned char *arr);
67
extern rtx spu_gen_exp2 (enum machine_mode mode, rtx x);
68
extern void spu_allocate_stack (rtx op0, rtx op1);
69
extern void spu_restore_stack_nonlocal (rtx op0, rtx op1);
70
extern void spu_restore_stack_block (rtx op0, rtx op1);
71
extern rtx spu_gen_subreg (enum machine_mode mode, rtx x);
72
extern int spu_safe_dma(HOST_WIDE_INT channel);
73
extern void spu_builtin_splats (rtx ops[]);
74
extern void spu_builtin_extract (rtx ops[]);
75
extern void spu_builtin_insert (rtx ops[]);
76
extern void spu_builtin_promote (rtx ops[]);
77
extern void spu_expand_sign_extend (rtx ops[]);
78
extern void spu_expand_vector_init (rtx target, rtx vals);
79
extern rtx spu_legitimize_reload_address (rtx, enum machine_mode, int, int);
80
#endif /* RTX_CODE  */
81
 
82
extern void spu_init_expanders (void);
83
extern void spu_split_convert (rtx *);
84
extern void spu_function_profiler (FILE *, int);
85
 
86
/* spu-c.c */
87
extern tree spu_resolve_overloaded_builtin (location_t, tree fndecl,
88
                                            void *fnargs);
89
extern rtx spu_expand_builtin (tree exp, rtx target, rtx subtarget,
90
                               enum machine_mode mode, int ignore);
91
extern rtx spu_expand_builtin (tree, rtx, rtx, enum machine_mode, int);
92
 
93
#endif /* _SPU_PROTOS_  */
94
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.