rtlhooks-def.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Default macros to initialize an rtl_hooks data structure.
  2. Copyright (C) 2004-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. GCC is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License 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_RTL_HOOKS_DEF_H
  16. #define GCC_RTL_HOOKS_DEF_H
  17. #include "rtl.h"
  18. #define RTL_HOOKS_GEN_LOWPART gen_lowpart_general
  19. #define RTL_HOOKS_GEN_LOWPART_NO_EMIT gen_lowpart_if_possible
  20. #define RTL_HOOKS_REG_NONZERO_REG_BITS reg_nonzero_bits_general
  21. #define RTL_HOOKS_REG_NUM_SIGN_BIT_COPIES reg_num_sign_bit_copies_general
  22. #define RTL_HOOKS_REG_TRUNCATED_TO_MODE reg_truncated_to_mode_general
  23. /* The structure is defined in rtl.h. */
  24. #define RTL_HOOKS_INITIALIZER { \
  25. RTL_HOOKS_GEN_LOWPART, \
  26. RTL_HOOKS_GEN_LOWPART_NO_EMIT, \
  27. RTL_HOOKS_REG_NONZERO_REG_BITS, \
  28. RTL_HOOKS_REG_NUM_SIGN_BIT_COPIES, \
  29. RTL_HOOKS_REG_TRUNCATED_TO_MODE \
  30. }
  31. extern rtx gen_lowpart_general (machine_mode, rtx);
  32. extern rtx reg_nonzero_bits_general (const_rtx, machine_mode, const_rtx,
  33. machine_mode,
  34. unsigned HOST_WIDE_INT,
  35. unsigned HOST_WIDE_INT *);
  36. extern rtx reg_num_sign_bit_copies_general (const_rtx, machine_mode, const_rtx,
  37. machine_mode,
  38. unsigned int, unsigned int *);
  39. extern bool reg_truncated_to_mode_general (machine_mode, const_rtx);
  40. #endif /* GCC_RTL_HOOKS_DEF_H */