You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.6KB

  1. /* Header file for memory address lowering and mode selection.
  2. Copyright (C) 2013-2020 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_TREE_SSA_ADDRESS_H
  16. #define GCC_TREE_SSA_ADDRESS_H
  17. /* Description of a memory address. */
  18. struct mem_address
  19. {
  20. tree symbol, base, index, step, offset;
  21. };
  22. extern rtx addr_for_mem_ref (struct mem_address *, addr_space_t, bool);
  23. extern rtx addr_for_mem_ref (tree exp, addr_space_t as, bool really_expand);
  24. extern void get_address_description (tree, struct mem_address *);
  25. extern tree tree_mem_ref_addr (tree, tree);
  26. extern bool valid_mem_ref_p (machine_mode, addr_space_t, struct mem_address *);
  27. extern void move_fixed_address_to_symbol (struct mem_address *,
  28. class aff_tree *);
  29. tree create_mem_ref (gimple_stmt_iterator *, tree,
  30. class aff_tree *, tree, tree, tree, bool);
  31. extern void copy_ref_info (tree, tree);
  32. tree maybe_fold_tmr (tree);
  33. extern unsigned int preferred_mem_scale_factor (tree base,
  34. machine_mode mem_mode,
  35. bool speed);
  36. #endif /* GCC_TREE_SSA_ADDRESS_H */