Home | History | Annotate | Line # | Download | only in s390
s390-protos.h revision 1.3
      1 /* Definitions of target machine for GNU compiler, for IBM S/390.
      2    Copyright (C) 2000-2013 Free Software Foundation, Inc.
      3 
      4    Contributed by Hartmut Penner (hpenner (at) de.ibm.com)
      5 
      6 This file is part of GCC.
      7 
      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
     11 version.
     12 
     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
     16 for more details.
     17 
     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/>.  */
     21 
     22 
     23 
     24 /* Prototypes of functions used for constraint evaluation in
     25    constraints.c.  */
     26 
     27 extern int s390_mem_constraint (const char *str, rtx op);
     28 extern int s390_O_constraint_str (const char c, HOST_WIDE_INT value);
     29 extern int s390_N_constraint_str (const char *str, HOST_WIDE_INT value);
     30 extern int s390_float_const_zero_p (rtx value);
     31 extern bool s390_check_symref_alignment (rtx addr, HOST_WIDE_INT alignment);
     32 
     33 
     34 /* Declare functions in s390.c.  */
     35 
     36 extern HOST_WIDE_INT s390_initial_elimination_offset (int, int);
     37 extern void s390_emit_prologue (void);
     38 extern void s390_emit_epilogue (bool);
     39 extern void s390_function_profiler (FILE *, int);
     40 extern void s390_set_has_landing_pad_p (bool);
     41 extern bool s390_hard_regno_mode_ok (unsigned int, enum machine_mode);
     42 extern bool s390_hard_regno_rename_ok (unsigned int, unsigned int);
     43 extern int s390_class_max_nregs (enum reg_class, enum machine_mode);
     44 
     45 #ifdef RTX_CODE
     46 extern int s390_extra_constraint_str (rtx, int, const char *);
     47 extern int s390_const_ok_for_constraint_p (HOST_WIDE_INT, int, const char *);
     48 extern int s390_const_double_ok_for_constraint_p (rtx, int, const char *);
     49 extern int s390_single_part (rtx, enum machine_mode, enum machine_mode, int);
     50 extern unsigned HOST_WIDE_INT s390_extract_part (rtx, enum machine_mode, int);
     51 extern bool s390_contiguous_bitmask_p (unsigned HOST_WIDE_INT, int, int *, int *);
     52 extern bool s390_split_ok_p (rtx, rtx, enum machine_mode, int);
     53 extern bool s390_overlap_p (rtx, rtx, HOST_WIDE_INT);
     54 extern bool s390_offset_p (rtx, rtx, rtx);
     55 extern int tls_symbolic_operand (rtx);
     56 
     57 extern bool s390_match_ccmode (rtx, enum machine_mode);
     58 extern enum machine_mode s390_tm_ccmode (rtx, rtx, bool);
     59 extern enum machine_mode s390_select_ccmode (enum rtx_code, rtx, rtx);
     60 extern rtx s390_emit_compare (enum rtx_code, rtx, rtx);
     61 extern rtx s390_emit_jump (rtx, rtx);
     62 extern bool symbolic_reference_mentioned_p (rtx);
     63 extern bool tls_symbolic_reference_mentioned_p (rtx);
     64 extern bool legitimate_la_operand_p (rtx);
     65 extern bool preferred_la_operand_p (rtx, rtx);
     66 extern int legitimate_pic_operand_p (rtx);
     67 extern bool legitimate_reload_constant_p (rtx);
     68 extern rtx legitimize_pic_address (rtx, rtx);
     69 extern rtx legitimize_reload_address (rtx, enum machine_mode, int, int);
     70 extern enum reg_class s390_secondary_input_reload_class (enum reg_class,
     71 							 enum machine_mode,
     72 							 rtx);
     73 extern enum reg_class s390_secondary_output_reload_class (enum reg_class,
     74 							  enum machine_mode,
     75 							  rtx);
     76 extern void s390_reload_larl_operand (rtx , rtx , rtx);
     77 extern void s390_reload_symref_address (rtx , rtx , rtx , bool);
     78 extern void s390_expand_plus_operand (rtx, rtx, rtx);
     79 extern void emit_symbolic_move (rtx *);
     80 extern void s390_load_address (rtx, rtx);
     81 extern bool s390_expand_movmem (rtx, rtx, rtx);
     82 extern void s390_expand_setmem (rtx, rtx, rtx);
     83 extern bool s390_expand_cmpmem (rtx, rtx, rtx, rtx);
     84 extern bool s390_expand_addcc (enum rtx_code, rtx, rtx, rtx, rtx, rtx);
     85 extern bool s390_expand_insv (rtx, rtx, rtx, rtx);
     86 extern void s390_expand_cs_hqi (enum machine_mode, rtx, rtx, rtx,
     87 				rtx, rtx, bool);
     88 extern void s390_expand_atomic (enum machine_mode, enum rtx_code,
     89 				rtx, rtx, rtx, bool);
     90 extern void s390_expand_tbegin (rtx, rtx, rtx, bool);
     91 extern rtx s390_return_addr_rtx (int, rtx);
     92 extern rtx s390_back_chain_rtx (void);
     93 extern rtx s390_emit_call (rtx, rtx, rtx, rtx);
     94 extern void s390_expand_logical_operator (enum rtx_code,
     95 					  enum machine_mode, rtx *);
     96 extern bool s390_logical_operator_ok_p (rtx *);
     97 extern void s390_narrow_logical_operator (enum rtx_code, rtx *, rtx *);
     98 extern void s390_split_access_reg (rtx, rtx *, rtx *);
     99 
    100 extern void print_operand_address (FILE *, rtx);
    101 extern void print_operand (FILE *, rtx, int);
    102 extern void s390_output_pool_entry (rtx, enum machine_mode, unsigned int);
    103 extern int s390_label_align (rtx);
    104 extern int s390_agen_dep_p (rtx, rtx);
    105 extern rtx s390_load_got (void);
    106 extern rtx s390_get_thread_pointer (void);
    107 extern void s390_emit_tpf_eh_return (rtx);
    108 extern bool s390_legitimate_address_without_index_p (rtx);
    109 extern bool s390_decompose_shift_count (rtx, rtx *, HOST_WIDE_INT *);
    110 extern int s390_branch_condition_mask (rtx);
    111 extern int s390_compare_and_branch_condition_mask (rtx);
    112 extern bool s390_extzv_shift_ok (int, int, unsigned HOST_WIDE_INT);
    113 extern void s390_asm_output_function_label (FILE *, const char *, tree);
    114 
    115 #endif /* RTX_CODE */
    116