* 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
+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.
*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
/* 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)
{
/* 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;
#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);