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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [fortran/] [trans-types.h] - Blame information for rev 712

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 712 jeremybenn
/* Header for Fortran 95 types backend support.
2
   Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2010
3
   Free Software Foundation, Inc.
4
   Contributed by Paul Brook <paul@nowt.org>
5
   and Steven Bosscher <s.bosscher@student.tudelft.nl>
6
 
7
This file is part of GCC.
8
 
9
GCC is free software; you can redistribute it and/or modify it under
10
the terms of the GNU General Public License as published by the Free
11
Software Foundation; either version 3, or (at your option) any later
12
version.
13
 
14
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15
WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
17
for more details.
18
 
19
You should have received a copy of the GNU General Public License
20
along with GCC; see the file COPYING3.  If not see
21
<http://www.gnu.org/licenses/>.  */
22
 
23
 
24
#ifndef GFC_BACKEND_H
25
#define GFC_BACKEND_H
26
 
27
extern GTY(()) tree gfc_array_index_type;
28
extern GTY(()) tree gfc_array_range_type;
29
extern GTY(()) tree gfc_character1_type_node;
30
extern GTY(()) tree ppvoid_type_node;
31
extern GTY(()) tree pvoid_type_node;
32
extern GTY(()) tree prvoid_type_node;
33
extern GTY(()) tree pchar_type_node;
34
extern GTY(()) tree float128_type_node;
35
extern GTY(()) tree complex_float128_type_node;
36
 
37
/* This is the type used to hold the lengths of character variables.
38
   It must be the same as the corresponding definition in gfortran.h.  */
39
/* TODO: This is still hardcoded as kind=4 in some bits of the compiler
40
   and runtime library.  */
41
extern GTY(()) tree gfc_charlen_type_node;
42
 
43
/* The following flags give us information on the correspondance of
44
   real (and complex) kinds with C floating-point types long double
45
   and __float128.  */
46
extern bool gfc_real16_is_float128;
47
 
48
typedef enum {
49
  PACKED_NO = 0,
50
  PACKED_PARTIAL,
51
  PACKED_FULL,
52
  PACKED_STATIC
53
} gfc_packed;
54
 
55
/* be-function.c */
56
void gfc_convert_function_code (gfc_namespace *);
57
 
58
/* trans-types.c */
59
void gfc_init_kinds (void);
60
void gfc_init_types (void);
61
void gfc_init_c_interop_kinds (void);
62
 
63
tree gfc_get_int_type (int);
64
tree gfc_get_real_type (int);
65
tree gfc_get_complex_type (int);
66
tree gfc_get_logical_type (int);
67
tree gfc_get_char_type (int);
68
tree gfc_get_pchar_type (int);
69
tree gfc_get_character_type (int, gfc_charlen *);
70
tree gfc_get_character_type_len (int, tree);
71
tree gfc_get_character_type_len_for_eltype (tree, tree);
72
 
73
tree gfc_sym_type (gfc_symbol *);
74
tree gfc_typenode_for_spec (gfc_typespec *);
75
int gfc_copy_dt_decls_ifequal (gfc_symbol *, gfc_symbol *, bool);
76
 
77
tree gfc_get_function_type (gfc_symbol *);
78
 
79
tree gfc_type_for_size (unsigned, int);
80
tree gfc_type_for_mode (enum machine_mode, int);
81
tree gfc_build_uint_type (int);
82
 
83
tree gfc_get_element_type (tree);
84
tree gfc_get_array_type_bounds (tree, int, int, tree *, tree *, int,
85
                                enum gfc_array_kind, bool);
86
tree gfc_get_nodesc_array_type (tree, gfc_array_spec *, gfc_packed, bool);
87
 
88
/* Add a field of given name and type to a UNION_TYPE or RECORD_TYPE.  */
89
tree gfc_add_field_to_struct (tree, tree, tree, tree **);
90
 
91
/* Layout and output debugging info for a type.  */
92
void gfc_finish_type (tree);
93
 
94
/* Some functions have an extra parameter for the return value.  */
95
int gfc_return_by_reference (gfc_symbol *);
96
 
97
/* Returns true if the array sym does not require a descriptor.  */
98
int gfc_is_nodesc_array (gfc_symbol *);
99
 
100
/* Return the DTYPE for an array.  */
101
tree gfc_get_dtype (tree);
102
 
103
tree gfc_get_ppc_type (gfc_component *);
104
 
105
#endif

powered by: WebSVN 2.1.0

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