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

Subversion Repositories altor32

[/] [altor32/] [trunk/] [gcc-x64/] [or1knd-elf/] [lib/] [gcc/] [or1knd-elf/] [4.8.0/] [plugin/] [include/] [ipa-ref.h] - Blame information for rev 35

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 35 ultra_embe
/* IPA reference lists.
2
   Copyright (C) 2010
3
   Free Software Foundation, Inc.
4
   Contributed by Jan Hubicka
5
 
6
This file is part of GCC.
7
 
8
GCC is free software; you can redistribute it and/or modify it under
9
the terms of the GNU General Public License as published by the Free
10
Software Foundation; either version 3, or (at your option) any later
11
version.
12
 
13
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14
WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16
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
struct cgraph_node;
23
struct varpool_node;
24
union symtab_node_def;
25
typedef union symtab_node_def *symtab_node;
26
typedef const union symtab_node_def *const_symtab_node;
27
 
28
 
29
/* How the reference is done.  */
30
enum GTY(()) ipa_ref_use
31
{
32
  IPA_REF_LOAD,
33
  IPA_REF_STORE,
34
  IPA_REF_ADDR,
35
  IPA_REF_ALIAS
36
};
37
 
38
/* Record of reference in callgraph or varpool.  */
39
struct GTY(()) ipa_ref
40
{
41
  symtab_node referring;
42
  symtab_node referred;
43
  gimple stmt;
44
  unsigned int referred_index;
45
  ENUM_BITFIELD (ipa_ref_use) use:2;
46
};
47
 
48
typedef struct ipa_ref ipa_ref_t;
49
typedef struct ipa_ref *ipa_ref_ptr;
50
 
51
 
52
/* List of references.  This is stored in both callgraph and varpool nodes.  */
53
struct GTY(()) ipa_ref_list
54
{
55
  /* Store actual references in references vector.  */
56
  vec<ipa_ref_t, va_gc> *references;
57
  /* Referring is vector of pointers to references.  It must not live in GGC space
58
     or GGC will try to mark middle of references vectors.  */
59
  vec<ipa_ref_ptr>  GTY((skip)) referring;
60
};
61
 
62
struct ipa_ref * ipa_record_reference (symtab_node,
63
                                       symtab_node,
64
                                       enum ipa_ref_use, gimple);
65
 
66
void ipa_remove_reference (struct ipa_ref *);
67
void ipa_remove_all_references (struct ipa_ref_list *);
68
void ipa_remove_all_referring (struct ipa_ref_list *);
69
void ipa_dump_references (FILE *, struct ipa_ref_list *);
70
void ipa_dump_referring (FILE *, struct ipa_ref_list *);
71
void ipa_clone_references (symtab_node, struct ipa_ref_list *);
72
void ipa_clone_referring (symtab_node, struct ipa_ref_list *);
73
bool ipa_ref_cannot_lead_to_return (struct ipa_ref *);
74
bool ipa_ref_has_aliases_p (struct ipa_ref_list *);

powered by: WebSVN 2.1.0

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