source: arduino-1-6-7/trunk/fuentes/arduino-ide-amd64/hardware/tools/avr/lib/gcc/avr/4.9.2/plugin/include/ipa-ref.h @ 4837

Last change on this file since 4837 was 4837, checked in by daduve, 2 years ago

Adding new version

File size: 2.6 KB
Line 
1/* IPA reference lists.
2   Copyright (C) 2010-2014 Free Software Foundation, Inc.
3   Contributed by Jan Hubicka
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 3, or (at your option) any later
10version.
11
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING3.  If not see
19<http://www.gnu.org/licenses/>.  */
20
21struct cgraph_node;
22class varpool_node;
23class symtab_node;
24
25
26/* How the reference is done.  */
27enum GTY(()) ipa_ref_use
28{
29  IPA_REF_LOAD,
30  IPA_REF_STORE,
31  IPA_REF_ADDR,
32  IPA_REF_ALIAS
33};
34
35/* Record of reference in callgraph or varpool.  */
36struct GTY(()) ipa_ref
37{
38  symtab_node *referring;
39  symtab_node *referred;
40  gimple stmt;
41  unsigned int lto_stmt_uid;
42  unsigned int referred_index;
43  ENUM_BITFIELD (ipa_ref_use) use:2;
44  unsigned int speculative:1;
45};
46
47typedef struct ipa_ref ipa_ref_t;
48typedef struct ipa_ref *ipa_ref_ptr;
49
50
51/* List of references.  This is stored in both callgraph and varpool nodes.  */
52struct GTY(()) ipa_ref_list
53{
54  /* Store actual references in references vector.  */
55  vec<ipa_ref_t, va_gc> *references;
56  /* Referring is vector of pointers to references.  It must not live in GGC space
57     or GGC will try to mark middle of references vectors.  */
58  vec<ipa_ref_ptr>  GTY((skip)) referring;
59};
60
61struct ipa_ref * ipa_record_reference (symtab_node *,
62                                       symtab_node *,
63                                       enum ipa_ref_use, gimple);
64struct ipa_ref * ipa_maybe_record_reference (symtab_node *, tree,
65                                             enum ipa_ref_use, gimple);
66
67void ipa_remove_reference (struct ipa_ref *);
68void ipa_remove_all_references (struct ipa_ref_list *);
69void ipa_remove_all_referring (struct ipa_ref_list *);
70void ipa_dump_references (FILE *, struct ipa_ref_list *);
71void ipa_dump_referring (FILE *, struct ipa_ref_list *);
72void ipa_clone_references (symtab_node *, struct ipa_ref_list *);
73void ipa_clone_referring (symtab_node *, struct ipa_ref_list *);
74struct ipa_ref * ipa_clone_ref (struct ipa_ref *, symtab_node *, gimple);
75bool ipa_ref_cannot_lead_to_return (struct ipa_ref *);
76bool ipa_ref_has_aliases_p (struct ipa_ref_list *);
77struct ipa_ref * ipa_find_reference (symtab_node *, symtab_node *, gimple, unsigned int);
78void ipa_remove_stmt_references (symtab_node *, gimple);
79void ipa_clear_stmts_in_references (symtab_node *);
Note: See TracBrowser for help on using the repository browser.