rtlhooks-def.h revision 169689
1/* Default macros to initialize an rtl_hooks data structure. 2 Copyright 2004, 2005 Free Software Foundation, Inc. 3 4This file is part of GCC. 5 6GCC is free software; you can redistribute it and/or modify 7it under the terms of the GNU General Public License as published by 8the Free Software Foundation; either version 2, or (at your option) 9any later version. 10 11GCC is distributed in the hope that it will be useful, 12but WITHOUT ANY WARRANTY; without even the implied warranty of 13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14GNU General Public License for more details. 15 16You should have received a copy of the GNU General Public License 17along with GCC; see the file COPYING. If not, write to 18the Free Software Foundation, 51 Franklin Street, Fifth Floor, 19Boston, MA 02110-1301, USA. */ 20 21#ifndef GCC_RTL_HOOKS_DEF_H 22#define GCC_RTL_HOOKS_DEF_H 23 24#include "rtl.h" 25 26#define RTL_HOOKS_GEN_LOWPART gen_lowpart_general 27#define RTL_HOOKS_GEN_LOWPART_NO_EMIT gen_lowpart_no_emit_general 28#define RTL_HOOKS_REG_NONZERO_REG_BITS reg_nonzero_bits_general 29#define RTL_HOOKS_REG_NUM_SIGN_BIT_COPIES reg_num_sign_bit_copies_general 30#define RTL_HOOKS_REG_TRUNCATED_TO_MODE reg_truncated_to_mode_general 31 32/* The structure is defined in rtl.h. */ 33#define RTL_HOOKS_INITIALIZER { \ 34 RTL_HOOKS_GEN_LOWPART, \ 35 RTL_HOOKS_GEN_LOWPART_NO_EMIT, \ 36 RTL_HOOKS_REG_NONZERO_REG_BITS, \ 37 RTL_HOOKS_REG_NUM_SIGN_BIT_COPIES, \ 38 RTL_HOOKS_REG_TRUNCATED_TO_MODE, \ 39} 40 41extern rtx gen_lowpart_general (enum machine_mode, rtx); 42extern rtx gen_lowpart_no_emit_general (enum machine_mode, rtx); 43extern rtx reg_nonzero_bits_general (rtx, enum machine_mode, rtx, 44 enum machine_mode, 45 unsigned HOST_WIDE_INT, 46 unsigned HOST_WIDE_INT *); 47extern rtx reg_num_sign_bit_copies_general (rtx, enum machine_mode, rtx, 48 enum machine_mode, 49 unsigned int, unsigned int *); 50extern bool reg_truncated_to_mode_general (enum machine_mode, rtx); 51 52#endif /* GCC_RTL_HOOKS_DEF_H */ 53