]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/tree-ssa-address.h
Update copyright years.
[thirdparty/gcc.git] / gcc / tree-ssa-address.h
CommitLineData
c1bf2a39 1/* Header file for memory address lowering and mode selection.
7adcbafe 2 Copyright (C) 2013-2022 Free Software Foundation, Inc.
c1bf2a39
AM
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
8Software Foundation; either version 3, or (at your option) any later
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
14 for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
19
20#ifndef GCC_TREE_SSA_ADDRESS_H
21#define GCC_TREE_SSA_ADDRESS_H
22
c2b64cea
BC
23/* Description of a memory address. */
24
25struct mem_address
26{
27 tree symbol, base, index, step, offset;
28};
29
c1bf2a39
AM
30extern rtx addr_for_mem_ref (struct mem_address *, addr_space_t, bool);
31extern rtx addr_for_mem_ref (tree exp, addr_space_t as, bool really_expand);
32extern void get_address_description (tree, struct mem_address *);
33extern tree tree_mem_ref_addr (tree, tree);
c2b64cea
BC
34extern bool valid_mem_ref_p (machine_mode, addr_space_t, struct mem_address *);
35extern void move_fixed_address_to_symbol (struct mem_address *,
99b1c316 36 class aff_tree *);
c1bf2a39 37tree create_mem_ref (gimple_stmt_iterator *, tree,
99b1c316 38 class aff_tree *, tree, tree, tree, bool);
c1bf2a39
AM
39extern void copy_ref_info (tree, tree);
40tree maybe_fold_tmr (tree);
41
fa9863e7
KV
42extern unsigned int preferred_mem_scale_factor (tree base,
43 machine_mode mem_mode,
44 bool speed);
c1bf2a39 45#endif /* GCC_TREE_SSA_ADDRESS_H */