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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [config/] [crx/] [crx-protos.h] - Blame information for rev 298

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

Line No. Rev Author Line
1 282 jeremybenn
/* Prototypes for exported functions defined in crx.c
2
   Copyright (C) 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
3
   2002, 2003, 2004, 2007 Free Software Foundation, Inc.
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_CRX_PROTOS_H
22
#define GCC_CRX_PROTOS_H
23
 
24
 
25
/* Register usage. */
26
extern enum reg_class crx_regno_reg_class (int);
27
extern int crx_hard_regno_mode_ok (int regno, enum machine_mode);
28
#ifdef RTX_CODE
29
extern enum reg_class crx_secondary_reload_class (enum reg_class, enum machine_mode, rtx);
30
#endif /* RTX_CODE */
31
 
32
/* Passing function arguments.  */
33
extern int crx_function_arg_regno_p (int);
34
#ifdef TREE_CODE
35
extern void crx_function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode, tree, int);
36
#ifdef RTX_CODE
37
extern void crx_init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx);
38
extern rtx crx_function_arg (struct cumulative_args *, enum machine_mode, tree, int);
39
#endif /* RTX_CODE */
40
#endif /* TREE_CODE */
41
 
42
#ifdef RTX_CODE
43
/* Addressing Modes.  */
44
struct crx_address
45
{
46
  rtx base, index, disp, side_effect;
47
  int scale;
48
};
49
 
50
enum crx_addrtype
51
{
52
  CRX_INVALID, CRX_REG_REL, CRX_POST_INC, CRX_SCALED_INDX, CRX_ABSOLUTE
53
};
54
 
55
extern enum crx_addrtype crx_decompose_address (rtx addr, struct crx_address *out);
56
 
57
extern int crx_const_double_ok (rtx op);
58
 
59
/* Instruction output.  */
60
extern void crx_print_operand (FILE *, rtx, int);
61
extern void crx_print_operand_address (FILE *, rtx);
62
 
63
/* Misc functions called from crx.md.  */
64
extern void crx_expand_movmem_single (rtx, rtx, rtx, rtx, rtx, unsigned HOST_WIDE_INT *);
65
extern int crx_expand_movmem (rtx, rtx, rtx, rtx);
66
#endif /* RTX_CODE */
67
 
68
/* Routines to compute costs.  */
69
extern int crx_memory_move_cost (enum machine_mode, enum reg_class, int);
70
 
71
/* Prologue/Epilogue functions.  */
72
extern int crx_initial_elimination_offset (int, int);
73
extern char *crx_prepare_push_pop_string (int);
74
extern void crx_expand_prologue (void);
75
extern void crx_expand_epilogue (void);
76
 
77
 
78
/* Handling the "interrupt" attribute */
79
extern int crx_interrupt_function_p (void);
80
 
81
#endif /* GCC_CRX_PROTOS_H */

powered by: WebSVN 2.1.0

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