tilegx-protos.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* Prototypes of target machine for TILE-Gx.
  2. Copyright (C) 2011-2015 Free Software Foundation, Inc.
  3. Contributed by Walter Lee (walt@tilera.com)
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published
  7. by the Free Software Foundation; either version 3, or (at your
  8. option) any later version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT
  10. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  12. License 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_TILEGX_PROTOS_H
  17. #define GCC_TILEGX_PROTOS_H
  18. extern void tilegx_init_expanders (void);
  19. extern void tilegx_compute_pcrel_address (rtx, rtx);
  20. extern void tilegx_compute_pcrel_plt_address (rtx, rtx);
  21. extern bool tilegx_legitimate_pic_operand_p (rtx);
  22. extern rtx tilegx_simd_int (rtx, machine_mode);
  23. #ifdef RTX_CODE
  24. extern bool tilegx_bitfield_operand_p (HOST_WIDE_INT, int *, int *);
  25. extern void tilegx_expand_set_const64 (rtx, rtx);
  26. extern bool tilegx_expand_mov (machine_mode, rtx *);
  27. extern void tilegx_expand_unaligned_load (rtx, rtx, HOST_WIDE_INT,
  28. HOST_WIDE_INT, bool);
  29. extern void tilegx_expand_movmisalign (machine_mode, rtx *);
  30. extern void tilegx_allocate_stack (rtx, rtx);
  31. extern bool tilegx_expand_muldi (rtx, rtx, rtx);
  32. extern void tilegx_expand_smuldi3_highpart (rtx, rtx, rtx);
  33. extern void tilegx_expand_umuldi3_highpart (rtx, rtx, rtx);
  34. extern bool tilegx_emit_setcc (rtx[], machine_mode);
  35. extern void tilegx_emit_conditional_branch (rtx[], machine_mode);
  36. extern rtx tilegx_emit_conditional_move (rtx);
  37. extern const char *tilegx_output_cbranch_with_opcode (rtx_insn *, rtx *,
  38. const char *,
  39. const char *, int);
  40. extern const char *tilegx_output_cbranch (rtx_insn *, rtx *, bool);
  41. extern void tilegx_expand_tablejump (rtx, rtx);
  42. extern void tilegx_expand_builtin_vector_binop (rtx (*)(rtx, rtx, rtx),
  43. machine_mode, rtx,
  44. machine_mode, rtx, rtx,
  45. bool);
  46. extern void tilegx_pre_atomic_barrier (enum memmodel);
  47. extern void tilegx_post_atomic_barrier (enum memmodel);
  48. #endif /* RTX_CODE */
  49. extern bool tilegx_can_use_return_insn_p (void);
  50. extern void tilegx_expand_prologue (void);
  51. extern void tilegx_expand_epilogue (bool);
  52. extern int tilegx_initial_elimination_offset (int, int);
  53. extern rtx tilegx_return_addr (int, rtx);
  54. extern rtx tilegx_eh_return_handler_rtx (void);
  55. extern int tilegx_adjust_insn_length (rtx_insn *, int);
  56. extern int tilegx_asm_preferred_eh_data_format (int, int);
  57. extern void tilegx_final_prescan_insn (rtx_insn *);
  58. extern const char *tilegx_asm_output_opcode (FILE *, const char *);
  59. extern void tilegx_function_profiler (FILE *, int);
  60. /* Declare functions in tilegx-c.c */
  61. extern void tilegx_cpu_cpp_builtins (struct cpp_reader *);
  62. #endif /* GCC_TILEGX_PROTOS_H */