alias.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* Exported functions from alias.c
  2. Copyright (C) 2004-2019 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_ALIAS_H
  16. #define GCC_ALIAS_H
  17. extern alias_set_type new_alias_set (void);
  18. extern alias_set_type get_alias_set (tree);
  19. extern alias_set_type get_deref_alias_set (tree);
  20. extern alias_set_type get_varargs_alias_set (void);
  21. extern alias_set_type get_frame_alias_set (void);
  22. extern tree component_uses_parent_alias_set_from (const_tree);
  23. extern bool alias_set_subset_of (alias_set_type, alias_set_type);
  24. extern void record_alias_subset (alias_set_type, alias_set_type);
  25. extern void record_component_aliases (tree);
  26. extern int alias_sets_conflict_p (alias_set_type, alias_set_type);
  27. extern int alias_sets_must_conflict_p (alias_set_type, alias_set_type);
  28. extern int objects_must_conflict_p (tree, tree);
  29. extern int nonoverlapping_memrefs_p (const_rtx, const_rtx, bool);
  30. extern void dump_alias_stats_in_alias_c (FILE *s);
  31. tree reference_alias_ptr_type (tree);
  32. bool alias_ptr_types_compatible_p (tree, tree);
  33. int compare_base_decls (tree, tree);
  34. /* This alias set can be used to force a memory to conflict with all
  35. other memories, creating a barrier across which no memory reference
  36. can move. Note that there are other legacy ways to create such
  37. memory barriers, including an address of SCRATCH. */
  38. #define ALIAS_SET_MEMORY_BARRIER ((alias_set_type) -1)
  39. #endif /* GCC_ALIAS_H */