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