alias.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* Exported functions from alias.c
  2. Copyright (C) 2004-2015 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. /* The type of an alias set. Code currently assumes that variables of
  18. this type can take the values 0 (the alias set which aliases
  19. everything) and -1 (sometimes indicating that the alias set is
  20. unknown, sometimes indicating a memory barrier) and -2 (indicating
  21. that the alias set should be set to a unique value but has not been
  22. set yet). */
  23. typedef int alias_set_type;
  24. extern alias_set_type new_alias_set (void);
  25. extern alias_set_type get_alias_set (tree);
  26. extern alias_set_type get_deref_alias_set (tree);
  27. extern alias_set_type get_varargs_alias_set (void);
  28. extern alias_set_type get_frame_alias_set (void);
  29. extern tree component_uses_parent_alias_set_from (const_tree);
  30. extern bool alias_set_subset_of (alias_set_type, alias_set_type);
  31. extern void record_alias_subset (alias_set_type, alias_set_type);
  32. extern void record_component_aliases (tree);
  33. extern int alias_sets_conflict_p (alias_set_type, alias_set_type);
  34. extern int alias_sets_must_conflict_p (alias_set_type, alias_set_type);
  35. extern int objects_must_conflict_p (tree, tree);
  36. extern int nonoverlapping_memrefs_p (const_rtx, const_rtx, bool);
  37. tree reference_alias_ptr_type (tree);
  38. bool alias_ptr_types_compatible_p (tree, tree);
  39. /* This alias set can be used to force a memory to conflict with all
  40. other memories, creating a barrier across which no memory reference
  41. can move. Note that there are other legacy ways to create such
  42. memory barriers, including an address of SCRATCH. */
  43. #define ALIAS_SET_MEMORY_BARRIER ((alias_set_type) -1)
  44. #endif /* GCC_ALIAS_H */