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