]>
Commit | Line | Data |
---|---|---|
78528714 | 1 | /* Exported functions from alias.c |
23a5b65a | 2 | Copyright (C) 2004-2014 Free Software Foundation, Inc. |
78528714 JQ |
3 | |
4 | This file is part of GCC. | |
5 | ||
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 | |
9dcd6f09 | 8 | Software Foundation; either version 3, or (at your option) any later |
78528714 JQ |
9 | version. |
10 | ||
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 | |
14 | for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
9dcd6f09 NC |
17 | along with GCC; see the file COPYING3. If not see |
18 | <http://www.gnu.org/licenses/>. */ | |
78528714 JQ |
19 | |
20 | #ifndef GCC_ALIAS_H | |
21 | #define GCC_ALIAS_H | |
22 | ||
6ab81302 ILT |
23 | /* The type of an alias set. Code currently assumes that variables of |
24 | this type can take the values 0 (the alias set which aliases | |
25 | everything) and -1 (sometimes indicating that the alias set is | |
26 | unknown, sometimes indicating a memory barrier) and -2 (indicating | |
27 | that the alias set should be set to a unique value but has not been | |
28 | set yet). */ | |
29 | typedef int alias_set_type; | |
4862826d ILT |
30 | |
31 | extern alias_set_type new_alias_set (void); | |
63d195d5 | 32 | extern alias_set_type get_alias_set (tree); |
5006671f | 33 | extern alias_set_type get_deref_alias_set (tree); |
4862826d ILT |
34 | extern alias_set_type get_varargs_alias_set (void); |
35 | extern alias_set_type get_frame_alias_set (void); | |
b4ada065 | 36 | extern tree component_uses_parent_alias_set_from (const_tree); |
4862826d | 37 | extern bool alias_set_subset_of (alias_set_type, alias_set_type); |
794511d2 | 38 | extern void record_alias_subset (alias_set_type, alias_set_type); |
63d195d5 RG |
39 | extern void record_component_aliases (tree); |
40 | extern int alias_sets_conflict_p (alias_set_type, alias_set_type); | |
41 | extern int alias_sets_must_conflict_p (alias_set_type, alias_set_type); | |
42 | extern int objects_must_conflict_p (tree, tree); | |
c6ea834c | 43 | extern int nonoverlapping_memrefs_p (const_rtx, const_rtx, bool); |
f40333af RB |
44 | tree reference_alias_ptr_type (tree); |
45 | bool alias_ptr_types_compatible_p (tree, tree); | |
78528714 | 46 | |
9cd9e512 RH |
47 | /* This alias set can be used to force a memory to conflict with all |
48 | other memories, creating a barrier across which no memory reference | |
49 | can move. Note that there are other legacy ways to create such | |
50 | memory barriers, including an address of SCRATCH. */ | |
4862826d | 51 | #define ALIAS_SET_MEMORY_BARRIER ((alias_set_type) -1) |
9cd9e512 | 52 | |
78528714 | 53 | #endif /* GCC_ALIAS_H */ |