gcse.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Global common subexpression elimination/Partial redundancy elimination
  2. and global constant/copy propagation for GNU compiler.
  3. Copyright (C) 1997-2015 Free Software Foundation, Inc.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it under
  6. the terms of the GNU General Public License as published by the Free
  7. Software Foundation; either version 3, or (at your option) any later
  8. version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. #ifndef GCC_GCSE_H
  17. #define GCC_GCSE_H
  18. /* Target-dependent globals. */
  19. struct target_gcse {
  20. /* Nonzero for each mode that supports (set (reg) (reg)).
  21. This is trivially true for integer and floating point values.
  22. It may or may not be true for condition codes. */
  23. char x_can_copy[(int) NUM_MACHINE_MODES];
  24. /* True if the previous field has been initialized. */
  25. bool x_can_copy_init_p;
  26. };
  27. extern struct target_gcse default_target_gcse;
  28. #if SWITCHABLE_TARGET
  29. extern struct target_gcse *this_target_gcse;
  30. #else
  31. #define this_target_gcse (&default_target_gcse)
  32. #endif
  33. void gcse_c_finalize (void);
  34. #endif