Commit c2b64cea by Bin Cheng Committed by Bin Cheng

tree-ssa-address.c (struct mem_address): Move to header file.

	* tree-ssa-address.c (struct mem_address): Move to header file.
	(valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
	* tree-ssa-address.h (struct mem_address): Move from C file.
	(valid_mem_ref_p, move_fixed_address_to_symbol): Declare.

From-SVN: r247884
parent b7b5203d
2017-05-11 Bin Cheng <bin.cheng@arm.com>
* tree-ssa-address.c (struct mem_address): Move to header file.
(valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
* tree-ssa-address.h (struct mem_address): Move from C file.
(valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
2017-05-11 Bin Cheng <bin.cheng@arm.com>
* tree-affine.h (aff_combination_type): New interface.
(aff_combination_zero_p): Remove static.
(aff_combination_const_p): New interface.
......
......@@ -178,13 +178,6 @@ gen_addr_rtx (machine_mode address_mode,
*addr = const0_rtx;
}
/* Description of a memory address. */
struct mem_address
{
tree symbol, base, index, step, offset;
};
/* Returns address for TARGET_MEM_REF with parameters given by ADDR
in address space AS.
If REALLY_EXPAND is false, just make fake registers instead
......@@ -330,7 +323,7 @@ tree_mem_ref_addr (tree type, tree mem_ref)
/* Returns true if a memory reference in MODE and with parameters given by
ADDR is valid on the current target. */
static bool
bool
valid_mem_ref_p (machine_mode mode, addr_space_t as,
struct mem_address *addr)
{
......@@ -408,7 +401,7 @@ fixed_address_object_p (tree obj)
/* If ADDR contains an address of object that is a link time constant,
move it to PARTS->symbol. */
static void
void
move_fixed_address_to_symbol (struct mem_address *parts, aff_tree *addr)
{
unsigned i;
......
......@@ -20,10 +20,20 @@ along with GCC; see the file COPYING3. If not see
#ifndef GCC_TREE_SSA_ADDRESS_H
#define GCC_TREE_SSA_ADDRESS_H
/* Description of a memory address. */
struct mem_address
{
tree symbol, base, index, step, offset;
};
extern rtx addr_for_mem_ref (struct mem_address *, addr_space_t, bool);
extern rtx addr_for_mem_ref (tree exp, addr_space_t as, bool really_expand);
extern void get_address_description (tree, struct mem_address *);
extern tree tree_mem_ref_addr (tree, tree);
extern bool valid_mem_ref_p (machine_mode, addr_space_t, struct mem_address *);
extern void move_fixed_address_to_symbol (struct mem_address *,
struct aff_tree *);
tree create_mem_ref (gimple_stmt_iterator *, tree,
struct aff_tree *, tree, tree, tree, bool);
extern void copy_ref_info (tree, tree);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment