ipa-reference.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* IPA handling of references.
  2. Copyright (C) 2004-2019 Free Software Foundation, Inc.
  3. Contributed by Kenneth Zadeck <zadeck@naturalbridge.com>
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it under
  6. the terms of the GNU General Public License as published by the Free
  7. Software Foundation; either version 3, or (at your option) any later
  8. version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. #ifndef GCC_IPA_REFERENCE_H
  17. #define GCC_IPA_REFERENCE_H
  18. /* In ipa-reference.c */
  19. bitmap ipa_reference_get_not_read_global (struct cgraph_node *fn);
  20. bitmap ipa_reference_get_not_written_global (struct cgraph_node *fn);
  21. void ipa_reference_c_finalize (void);
  22. inline int
  23. ipa_reference_var_uid (tree t)
  24. {
  25. return DECL_UID (symtab_node::get (t)->ultimate_alias_target (NULL)->decl);
  26. }
  27. #endif /* GCC_IPA_REFERENCE_H */