1 /* Prototypes for exported functions defined in mep.c
2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 Free
3 Software Foundation, Inc.
4 Contributed by Red Hat Inc (dj@redhat.com)
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 extern int mep_regno_reg_class (int);
23 extern int mep_reg_class_from_constraint (int, const char *);
24 extern bool mep_const_ok_for_letter_p (HOST_WIDE_INT
, int);
25 extern bool mep_extra_constraint (rtx
, int);
26 extern rtx
mep_mulr_source (rtx
, rtx
, rtx
, rtx
);
27 extern bool mep_reuse_lo_p (rtx
, rtx
, rtx
, bool);
28 extern bool mep_use_post_modify_p (rtx
, rtx
, rtx
);
29 extern bool mep_allow_clip (rtx
, rtx
, int);
30 extern bool mep_bit_position_p (rtx
, bool);
31 extern bool mep_split_mov (rtx
*, int);
32 extern bool mep_vliw_mode_match (rtx
);
33 extern bool mep_vliw_jmp_match (rtx
);
34 extern bool mep_multi_slot (rtx
);
35 extern bool mep_legitimate_address (enum machine_mode
, rtx
, int);
36 extern int mep_legitimize_address (rtx
*, rtx
, enum machine_mode
);
37 extern int mep_legitimize_reload_address (rtx
*, enum machine_mode
, int, /*enum reload_type*/ int, int);
38 extern int mep_core_address_length (rtx
, int);
39 extern int mep_cop_address_length (rtx
, int);
40 extern bool mep_expand_mov (rtx
*, enum machine_mode
);
41 extern bool mep_mov_ok (rtx
*, enum machine_mode
);
42 extern void mep_split_wide_move (rtx
*, enum machine_mode
);
44 extern bool mep_expand_setcc (rtx
*);
45 extern rtx
mep_expand_cbranch (rtx
*);
46 extern bool mep_legitimate_constant_p (rtx
);
48 extern const char *mep_emit_cbranch (rtx
*, int);
49 extern void mep_expand_call (rtx
*, int);
50 extern rtx
mep_find_base_term (rtx
);
51 extern enum reg_class
mep_secondary_input_reload_class (enum reg_class
, enum machine_mode
, rtx
);
52 extern enum reg_class
mep_secondary_output_reload_class (enum reg_class
, enum machine_mode
, rtx
);
53 extern bool mep_secondary_memory_needed (enum reg_class
, enum reg_class
,
55 extern void mep_expand_reload (rtx
*, enum machine_mode
);
56 extern enum reg_class
mep_preferred_reload_class (rtx
, enum reg_class
);
57 extern int mep_register_move_cost (enum machine_mode
, enum reg_class
, enum reg_class
);
58 extern void mep_init_expanders (void);
59 extern rtx
mep_return_addr_rtx (int);
60 extern bool mep_epilogue_uses (int);
61 extern int mep_elimination_offset (int, int);
62 extern void mep_expand_prologue (void);
63 extern void mep_expand_epilogue (void);
64 extern void mep_expand_eh_return (rtx
*);
65 extern void mep_emit_eh_epilogue (rtx
*);
66 extern void mep_expand_sibcall_epilogue (void);
67 extern rtx
mep_return_stackadj_rtx (void);
68 extern rtx
mep_return_handler_rtx (void);
69 extern void mep_function_profiler (FILE *);
70 extern const char *mep_emit_bb_trace_ret (void);
71 extern void mep_print_operand_address (FILE *, rtx
);
72 extern void mep_print_operand (FILE *, rtx
, int);
73 extern void mep_final_prescan_insn (rtx
, rtx
*, int);
74 extern void mep_init_cumulative_args (CUMULATIVE_ARGS
*, tree
, rtx
, tree
);
75 extern bool mep_return_in_memory (const_tree
, const_tree
);
76 extern rtx
mep_function_value (const_tree
, const_tree
);
77 extern rtx
mep_libcall_value (enum machine_mode
);
78 extern void mep_asm_output_opcode (FILE *, const char *);
79 extern void mep_note_pragma_disinterrupt (const char *);
80 extern void mep_note_pragma_call (const char *);
81 extern void mep_file_cleanups (void);
82 extern const char *mep_strip_name_encoding (const char *);
83 extern void mep_output_aligned_common (FILE *, tree
, const char *,
85 extern void mep_emit_doloop (rtx
*, int);
86 extern bool mep_vliw_function_p (tree
);
87 extern bool mep_store_data_bypass_p (rtx
, rtx
);
88 extern bool mep_mul_hilo_bypass_p (rtx
, rtx
);
89 extern bool mep_ipipe_ldc_p (rtx
);
90 extern bool mep_emit_intrinsic (int, const rtx
*);
91 extern bool mep_expand_unary_intrinsic (int, rtx
*);
92 extern bool mep_expand_binary_intrinsic (int, int, int, int, rtx
*);
93 extern int mep_intrinsic_length (int);
95 extern void mep_register_pragmas (void);
96 extern int mep_section_tag (rtx
);
97 extern bool mep_lookup_pragma_call (const char *);
98 extern bool mep_have_core_copro_moves_p
;
99 extern bool mep_have_copro_copro_moves_p
;
101 extern bool mep_cannot_change_mode_class (enum machine_mode
, enum machine_mode
,
104 /* These are called from mep-pragmas (front end) and then call into
105 the RTL layer to re-initialize the register tables once we're done
106 changing them via pragmas. */
107 extern void mep_save_register_info (void);
108 extern void mep_reinit_regs (void);
109 extern void mep_init_regs (void);
112 extern int cgen_h_uint_6a1_immediate (rtx
, enum machine_mode
);
113 extern int cgen_h_uint_7a1_immediate (rtx
, enum machine_mode
);
114 extern int cgen_h_uint_8a1_immediate (rtx
, enum machine_mode
);
115 extern int cgen_h_uint_6a2_immediate (rtx
, enum machine_mode
);
116 extern int cgen_h_uint_22a4_immediate (rtx
, enum machine_mode
);
117 extern int cgen_h_sint_2a1_immediate (rtx
, enum machine_mode
);
118 extern int cgen_h_uint_24a1_immediate (rtx
, enum machine_mode
);
119 extern int cgen_h_sint_6a1_immediate (rtx
, enum machine_mode
);
120 extern int cgen_h_uint_5a4_immediate (rtx
, enum machine_mode
);
121 extern int cgen_h_uint_2a1_immediate (rtx
, enum machine_mode
);
122 extern int cgen_h_uint_16a1_immediate (rtx
, enum machine_mode
);
123 extern int cgen_h_uint_3a1_immediate (rtx
, enum machine_mode
);
124 extern int cgen_h_uint_5a1_immediate (rtx
, enum machine_mode
);
125 extern int cgen_h_sint_16a1_immediate (rtx
, enum machine_mode
);
126 extern int cgen_h_sint_8a1_immediate (rtx
, enum machine_mode
);
127 extern int cgen_h_sint_7a2_immediate (rtx
, enum machine_mode
);
128 extern int cgen_h_sint_6a4_immediate (rtx
, enum machine_mode
);
129 extern int cgen_h_sint_5a8_immediate (rtx
, enum machine_mode
);
130 extern int cgen_h_uint_4a1_immediate (rtx
, enum machine_mode
);
131 extern int cgen_h_sint_10a1_immediate (rtx
, enum machine_mode
);
132 extern int cgen_h_sint_12a1_immediate (rtx
, enum machine_mode
);
133 extern int cgen_h_uint_20a1_immediate (rtx
, enum machine_mode
);