xtensa-protos.h revision 1.1.1.1
1/* Prototypes of target machine for GNU compiler for Xtensa. 2 Copyright 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 3 Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica. 4 5This file is part of GCC. 6 7GCC is free software; you can redistribute it and/or modify it under 8the terms of the GNU General Public License as published by the Free 9Software Foundation; either version 2, or (at your option) any later 10version. 11 12GCC is distributed in the hope that it will be useful, but WITHOUT ANY 13WARRANTY; without even the implied warranty of MERCHANTABILITY or 14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15for more details. 16 17You should have received a copy of the GNU General Public License 18along with GCC; see the file COPYING. If not, write to the Free 19Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 2002110-1301, USA. */ 21 22#ifndef __XTENSA_PROTOS_H__ 23#define __XTENSA_PROTOS_H__ 24 25/* Functions to test whether an immediate fits in a given field. */ 26extern bool xtensa_simm8 (HOST_WIDE_INT); 27extern bool xtensa_simm8x256 (HOST_WIDE_INT); 28extern bool xtensa_simm12b (HOST_WIDE_INT); 29extern bool xtensa_b4const_or_zero (HOST_WIDE_INT); 30extern bool xtensa_b4constu (HOST_WIDE_INT); 31extern bool xtensa_mask_immediate (HOST_WIDE_INT); 32extern bool xtensa_const_ok_for_letter_p (HOST_WIDE_INT, int); 33extern bool xtensa_mem_offset (unsigned, enum machine_mode); 34 35/* Functions within xtensa.c that we reference. */ 36#ifdef RTX_CODE 37extern int xt_true_regnum (rtx); 38extern int xtensa_valid_move (enum machine_mode, rtx *); 39extern int smalloffset_mem_p (rtx); 40extern int constantpool_address_p (rtx); 41extern int constantpool_mem_p (rtx); 42extern void xtensa_extend_reg (rtx, rtx); 43extern bool xtensa_extra_constraint (rtx, int); 44extern void xtensa_expand_conditional_branch (rtx *, enum rtx_code); 45extern int xtensa_expand_conditional_move (rtx *, int); 46extern int xtensa_expand_scc (rtx *); 47extern int xtensa_expand_block_move (rtx *); 48extern void xtensa_split_operand_pair (rtx *, enum machine_mode); 49extern int xtensa_emit_move_sequence (rtx *, enum machine_mode); 50extern rtx xtensa_copy_incoming_a7 (rtx); 51extern void xtensa_expand_nonlocal_goto (rtx *); 52extern void xtensa_emit_loop_end (rtx, rtx *); 53extern char *xtensa_emit_call (int, rtx *); 54 55#ifdef TREE_CODE 56extern void init_cumulative_args (CUMULATIVE_ARGS *, int); 57extern void xtensa_va_start (tree, rtx); 58#endif /* TREE_CODE */ 59 60extern void print_operand (FILE *, rtx, int); 61extern void print_operand_address (FILE *, rtx); 62extern void xtensa_output_literal (FILE *, rtx, enum machine_mode, int); 63extern rtx xtensa_return_addr (int, rtx); 64extern enum reg_class xtensa_preferred_reload_class (rtx, enum reg_class, int); 65extern enum reg_class xtensa_secondary_reload_class (enum reg_class, 66 enum machine_mode, rtx, 67 int); 68#endif /* RTX_CODE */ 69 70#ifdef TREE_CODE 71extern void function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode, tree); 72extern struct rtx_def *function_arg (CUMULATIVE_ARGS *, enum machine_mode, 73 tree, int); 74#endif /* TREE_CODE */ 75 76extern void xtensa_setup_frame_addresses (void); 77extern int xtensa_dbx_register_number (int); 78extern void override_options (void); 79extern long compute_frame_size (int); 80extern int xtensa_frame_pointer_required (void); 81extern void xtensa_expand_prologue (void); 82extern void order_regs_for_local_alloc (void); 83 84#endif /* !__XTENSA_PROTOS_H__ */ 85