GCC Middle and Back End API Reference
tree-ssa-address.h
Go to the documentation of this file.
1/* Header file for memory address lowering and mode selection.
2 Copyright (C) 2013-2026 Free Software Foundation, Inc.
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
23/* Description of a memory address. */
24
29
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 *);
34extern bool valid_mem_ref_p (machine_mode, addr_space_t, struct mem_address *,
35 code_helper = ERROR_MARK);
36extern void move_fixed_address_to_symbol (struct mem_address *,
37 class aff_tree *);
39 class aff_tree *, tree, tree, tree, bool);
40extern void copy_ref_info (tree, tree);
42
43extern unsigned int preferred_mem_scale_factor (tree base,
44 machine_mode mem_mode,
45 bool speed);
46#endif /* GCC_TREE_SSA_ADDRESS_H */
Definition tree-affine.h:42
Definition tree.h:82
struct rtx_def * rtx
Definition coretypes.h:57
unsigned char addr_space_t
Definition coretypes.h:191
union tree_node * tree
Definition coretypes.h:97
double exp(double)
Definition gimple-iterator.h:26
Definition tree-ssa-address.h:26
tree index
Definition tree-ssa-address.h:27
tree offset
Definition tree-ssa-address.h:27
tree step
Definition tree-ssa-address.h:27
tree symbol
Definition tree-ssa-address.h:27
tree base
Definition tree-ssa-address.h:27
bool valid_mem_ref_p(machine_mode mode, addr_space_t as, struct mem_address *addr, code_helper ch)
Definition tree-ssa-address.cc:346
tree create_mem_ref(gimple_stmt_iterator *gsi, tree type, aff_tree *addr, tree alias_ptr_type, tree iv_cand, tree base_hint, bool speed)
Definition tree-ssa-address.cc:802
rtx addr_for_mem_ref(struct mem_address *addr, addr_space_t as, bool really_expand)
Definition tree-ssa-address.cc:192
void copy_ref_info(tree new_ref, tree old_ref)
Definition tree-ssa-address.cc:1009
tree maybe_fold_tmr(tree ref)
Definition tree-ssa-address.cc:1072
void move_fixed_address_to_symbol(struct mem_address *parts, aff_tree *addr)
Definition tree-ssa-address.cc:421
unsigned int preferred_mem_scale_factor(tree base, machine_mode mem_mode, bool speed)
Definition tree-ssa-address.cc:1148
void get_address_description(tree op, struct mem_address *addr)
Definition tree-ssa-address.cc:982
tree tree_mem_ref_addr(tree type, tree mem_ref)
Definition tree-ssa-address.cc:297