comparison gcc/ipa-reference.h @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents f6334be47118
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* IPA handling of references. 1 /* IPA handling of references.
2 Copyright (C) 2004, 2005, 2007, 2008, 2010 2 Copyright (C) 2004-2017 Free Software Foundation, Inc.
3 Free Software Foundation, Inc.
4 Contributed by Kenneth Zadeck <zadeck@naturalbridge.com> 3 Contributed by Kenneth Zadeck <zadeck@naturalbridge.com>
5 4
6 This file is part of GCC. 5 This file is part of GCC.
7 6
8 GCC is free software; you can redistribute it and/or modify it under 7 GCC is free software; you can redistribute it and/or modify it under
19 along with GCC; see the file COPYING3. If not see 18 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */ 19 <http://www.gnu.org/licenses/>. */
21 20
22 #ifndef GCC_IPA_REFERENCE_H 21 #ifndef GCC_IPA_REFERENCE_H
23 #define GCC_IPA_REFERENCE_H 22 #define GCC_IPA_REFERENCE_H
24 #include "bitmap.h"
25 #include "tree.h"
26 23
27 /* In ipa-reference.c */ 24 /* In ipa-reference.c */
28 bitmap ipa_reference_get_not_read_global (struct cgraph_node *fn); 25 bitmap ipa_reference_get_not_read_global (struct cgraph_node *fn);
29 bitmap ipa_reference_get_not_written_global (struct cgraph_node *fn); 26 bitmap ipa_reference_get_not_written_global (struct cgraph_node *fn);
27 void ipa_reference_c_finalize (void);
28
29 inline int
30 ipa_reference_var_uid (tree t)
31 {
32 return DECL_UID (symtab_node::get (t)->ultimate_alias_target (NULL)->decl);
33 }
30 34
31 #endif /* GCC_IPA_REFERENCE_H */ 35 #endif /* GCC_IPA_REFERENCE_H */
32 36