]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/alias.h
re PR bootstrap/53021 (bootstrap failure on Linux/ia32)
[thirdparty/gcc.git] / gcc / alias.h
1 /* Exported functions from alias.c
2 Copyright (C) 2004, 2007, 2008, 2009, 2010, 2012
3 Free Software Foundation, Inc.
4
5 This file is part of GCC.
6
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
10 version.
11
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
20
21 #ifndef GCC_ALIAS_H
22 #define GCC_ALIAS_H
23
24 #include "coretypes.h"
25
26 /* The type of an alias set. Code currently assumes that variables of
27 this type can take the values 0 (the alias set which aliases
28 everything) and -1 (sometimes indicating that the alias set is
29 unknown, sometimes indicating a memory barrier) and -2 (indicating
30 that the alias set should be set to a unique value but has not been
31 set yet). */
32 typedef int alias_set_type;
33
34 extern alias_set_type new_alias_set (void);
35 extern alias_set_type get_alias_set (tree);
36 extern alias_set_type get_deref_alias_set (tree);
37 extern alias_set_type get_varargs_alias_set (void);
38 extern alias_set_type get_frame_alias_set (void);
39 extern bool component_uses_parent_alias_set (const_tree);
40 extern bool alias_set_subset_of (alias_set_type, alias_set_type);
41 extern void record_alias_subset (alias_set_type, alias_set_type);
42 extern void record_component_aliases (tree);
43 extern int alias_sets_conflict_p (alias_set_type, alias_set_type);
44 extern int alias_sets_must_conflict_p (alias_set_type, alias_set_type);
45 extern int objects_must_conflict_p (tree, tree);
46 extern int nonoverlapping_memrefs_p (const_rtx, const_rtx, bool);
47
48 /* This alias set can be used to force a memory to conflict with all
49 other memories, creating a barrier across which no memory reference
50 can move. Note that there are other legacy ways to create such
51 memory barriers, including an address of SCRATCH. */
52 #define ALIAS_SET_MEMORY_BARRIER ((alias_set_type) -1)
53
54 #endif /* GCC_ALIAS_H */