]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/alias.h
RISC-V: Add testcase for pr114734
[thirdparty/gcc.git] / gcc / alias.h
CommitLineData
e53b6e56 1/* Exported functions from alias.cc
a945c346 2 Copyright (C) 2004-2024 Free Software Foundation, Inc.
78528714
JQ
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
9dcd6f09 8Software Foundation; either version 3, or (at your option) any later
78528714
JQ
9version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14for more details.
15
16You should have received a copy of the GNU General Public License
9dcd6f09
NC
17along 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
4862826d 23extern alias_set_type new_alias_set (void);
63d195d5 24extern alias_set_type get_alias_set (tree);
5006671f 25extern alias_set_type get_deref_alias_set (tree);
4862826d
ILT
26extern alias_set_type get_varargs_alias_set (void);
27extern alias_set_type get_frame_alias_set (void);
b4ada065 28extern tree component_uses_parent_alias_set_from (const_tree);
9640ff5a 29extern bool ends_tbaa_access_path_p (const_tree);
4862826d 30extern bool alias_set_subset_of (alias_set_type, alias_set_type);
794511d2 31extern void record_alias_subset (alias_set_type, alias_set_type);
63d195d5 32extern void record_component_aliases (tree);
4d519f1b
UB
33extern bool alias_sets_conflict_p (alias_set_type, alias_set_type);
34extern bool alias_sets_must_conflict_p (alias_set_type, alias_set_type);
35extern bool objects_must_conflict_p (tree, tree);
36extern bool nonoverlapping_memrefs_p (const_rtx, const_rtx, bool);
3ecf9d13 37extern void dump_alias_stats_in_alias_c (FILE *s);
f40333af 38tree reference_alias_ptr_type (tree);
d119f34c 39tree reference_alias_ptr_type_1 (tree *);
f40333af 40bool alias_ptr_types_compatible_p (tree, tree);
54363f8a 41int compare_base_decls (tree, tree);
3d6fd7ce 42bool refs_same_for_tbaa_p (tree, tree);
64ce76d9 43bool mems_same_for_tbaa_p (rtx, rtx);
78528714 44
9cd9e512
RH
45/* This alias set can be used to force a memory to conflict with all
46 other memories, creating a barrier across which no memory reference
47 can move. Note that there are other legacy ways to create such
48 memory barriers, including an address of SCRATCH. */
4862826d 49#define ALIAS_SET_MEMORY_BARRIER ((alias_set_type) -1)
9cd9e512 50
78528714 51#endif /* GCC_ALIAS_H */