Home | History | Annotate | Line # | Download | only in aarch64
aarch64-protos.h revision 1.4
      1  1.1  mrg /* Machine description for AArch64 architecture.
      2  1.4  mrg    Copyright (C) 2009-2016 Free Software Foundation, Inc.
      3  1.1  mrg    Contributed by ARM Ltd.
      4  1.1  mrg 
      5  1.1  mrg    This file is part of GCC.
      6  1.1  mrg 
      7  1.1  mrg    GCC is free software; you can redistribute it and/or modify it
      8  1.1  mrg    under the terms of the GNU General Public License as published by
      9  1.1  mrg    the Free Software Foundation; either version 3, or (at your option)
     10  1.1  mrg    any later version.
     11  1.1  mrg 
     12  1.1  mrg    GCC is distributed in the hope that it will be useful, but
     13  1.1  mrg    WITHOUT ANY WARRANTY; without even the implied warranty of
     14  1.1  mrg    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     15  1.1  mrg    General Public License for more details.
     16  1.1  mrg 
     17  1.1  mrg    You should have received a copy of the GNU General Public License
     18  1.1  mrg    along with GCC; see the file COPYING3.  If not see
     19  1.1  mrg    <http://www.gnu.org/licenses/>.  */
     20  1.1  mrg 
     21  1.1  mrg 
     22  1.1  mrg #ifndef GCC_AARCH64_PROTOS_H
     23  1.1  mrg #define GCC_AARCH64_PROTOS_H
     24  1.1  mrg 
     25  1.4  mrg #include "input.h"
     26  1.1  mrg 
     27  1.1  mrg /* SYMBOL_SMALL_ABSOLUTE: Generate symbol accesses through
     28  1.1  mrg    high and lo relocs that calculate the base address using a PC
     29  1.1  mrg    relative reloc.
     30  1.1  mrg    So to get the address of foo, we generate
     31  1.1  mrg    adrp x0, foo
     32  1.1  mrg    add  x0, x0, :lo12:foo
     33  1.1  mrg 
     34  1.1  mrg    To load or store something to foo, we could use the corresponding
     35  1.1  mrg    load store variants that generate an
     36  1.1  mrg    ldr x0, [x0,:lo12:foo]
     37  1.1  mrg    or
     38  1.1  mrg    str x1, [x0, :lo12:foo]
     39  1.1  mrg 
     40  1.1  mrg    This corresponds to the small code model of the compiler.
     41  1.1  mrg 
     42  1.4  mrg    SYMBOL_SMALL_GOT_4G: Similar to the one above but this
     43  1.1  mrg    gives us the GOT entry of the symbol being referred to :
     44  1.1  mrg    Thus calculating the GOT entry for foo is done using the
     45  1.1  mrg    following sequence of instructions.  The ADRP instruction
     46  1.1  mrg    gets us to the page containing the GOT entry of the symbol
     47  1.4  mrg    and the got_lo12 gets us the actual offset in it, together
     48  1.4  mrg    the base and offset, we can address 4G size GOT table.
     49  1.1  mrg 
     50  1.1  mrg    adrp  x0, :got:foo
     51  1.1  mrg    ldr   x0, [x0, :gotoff_lo12:foo]
     52  1.1  mrg 
     53  1.1  mrg    This corresponds to the small PIC model of the compiler.
     54  1.1  mrg 
     55  1.4  mrg    SYMBOL_SMALL_GOT_28K: Similar to SYMBOL_SMALL_GOT_4G, but used for symbol
     56  1.4  mrg    restricted within 28K GOT table size.
     57  1.4  mrg 
     58  1.4  mrg    ldr reg, [gp, #:gotpage_lo15:sym]
     59  1.4  mrg 
     60  1.4  mrg    This corresponds to -fpic model for small memory model of the compiler.
     61  1.4  mrg 
     62  1.1  mrg    SYMBOL_SMALL_TLSGD
     63  1.1  mrg    SYMBOL_SMALL_TLSDESC
     64  1.4  mrg    SYMBOL_SMALL_TLSIE
     65  1.4  mrg    SYMBOL_TINY_TLSIE
     66  1.4  mrg    SYMBOL_TLSLE12
     67  1.4  mrg    SYMBOL_TLSLE24
     68  1.4  mrg    SYMBOL_TLSLE32
     69  1.4  mrg    SYMBOL_TLSLE48
     70  1.4  mrg    Each of these represents a thread-local symbol, and corresponds to the
     71  1.1  mrg    thread local storage relocation operator for the symbol being referred to.
     72  1.1  mrg 
     73  1.3  mrg    SYMBOL_TINY_ABSOLUTE
     74  1.3  mrg 
     75  1.3  mrg    Generate symbol accesses as a PC relative address using a single
     76  1.3  mrg    instruction.  To compute the address of symbol foo, we generate:
     77  1.3  mrg 
     78  1.3  mrg    ADR x0, foo
     79  1.3  mrg 
     80  1.3  mrg    SYMBOL_TINY_GOT
     81  1.3  mrg 
     82  1.3  mrg    Generate symbol accesses via the GOT using a single PC relative
     83  1.3  mrg    instruction.  To compute the address of symbol foo, we generate:
     84  1.3  mrg 
     85  1.3  mrg    ldr t0, :got:foo
     86  1.3  mrg 
     87  1.3  mrg    The value of foo can subsequently read using:
     88  1.3  mrg 
     89  1.3  mrg    ldrb    t0, [t0]
     90  1.3  mrg 
     91  1.1  mrg    SYMBOL_FORCE_TO_MEM : Global variables are addressed using
     92  1.1  mrg    constant pool.  All variable addresses are spilled into constant
     93  1.1  mrg    pools.  The constant pools themselves are addressed using PC
     94  1.1  mrg    relative accesses.  This only works for the large code model.
     95  1.1  mrg  */
     96  1.1  mrg enum aarch64_symbol_type
     97  1.1  mrg {
     98  1.1  mrg   SYMBOL_SMALL_ABSOLUTE,
     99  1.4  mrg   SYMBOL_SMALL_GOT_28K,
    100  1.4  mrg   SYMBOL_SMALL_GOT_4G,
    101  1.1  mrg   SYMBOL_SMALL_TLSGD,
    102  1.1  mrg   SYMBOL_SMALL_TLSDESC,
    103  1.4  mrg   SYMBOL_SMALL_TLSIE,
    104  1.3  mrg   SYMBOL_TINY_ABSOLUTE,
    105  1.3  mrg   SYMBOL_TINY_GOT,
    106  1.4  mrg   SYMBOL_TINY_TLSIE,
    107  1.4  mrg   SYMBOL_TLSLE12,
    108  1.4  mrg   SYMBOL_TLSLE24,
    109  1.4  mrg   SYMBOL_TLSLE32,
    110  1.4  mrg   SYMBOL_TLSLE48,
    111  1.1  mrg   SYMBOL_FORCE_TO_MEM
    112  1.1  mrg };
    113  1.1  mrg 
    114  1.1  mrg /* A set of tuning parameters contains references to size and time
    115  1.1  mrg    cost models and vectors for address cost calculations, register
    116  1.1  mrg    move costs and memory move costs.  */
    117  1.1  mrg 
    118  1.3  mrg /* Scaled addressing modes can vary cost depending on the mode of the
    119  1.3  mrg    value to be loaded/stored.  QImode values cannot use scaled
    120  1.3  mrg    addressing modes.  */
    121  1.1  mrg 
    122  1.3  mrg struct scale_addr_mode_cost
    123  1.1  mrg {
    124  1.3  mrg   const int hi;
    125  1.3  mrg   const int si;
    126  1.3  mrg   const int di;
    127  1.3  mrg   const int ti;
    128  1.1  mrg };
    129  1.1  mrg 
    130  1.1  mrg /* Additional cost for addresses.  */
    131  1.1  mrg struct cpu_addrcost_table
    132  1.1  mrg {
    133  1.3  mrg   const struct scale_addr_mode_cost addr_scale_costs;
    134  1.1  mrg   const int pre_modify;
    135  1.1  mrg   const int post_modify;
    136  1.1  mrg   const int register_offset;
    137  1.4  mrg   const int register_sextend;
    138  1.4  mrg   const int register_zextend;
    139  1.1  mrg   const int imm_offset;
    140  1.1  mrg };
    141  1.1  mrg 
    142  1.1  mrg /* Additional costs for register copies.  Cost is for one register.  */
    143  1.1  mrg struct cpu_regmove_cost
    144  1.1  mrg {
    145  1.1  mrg   const int GP2GP;
    146  1.1  mrg   const int GP2FP;
    147  1.1  mrg   const int FP2GP;
    148  1.1  mrg   const int FP2FP;
    149  1.1  mrg };
    150  1.1  mrg 
    151  1.3  mrg /* Cost for vector insn classes.  */
    152  1.3  mrg struct cpu_vector_cost
    153  1.3  mrg {
    154  1.3  mrg   const int scalar_stmt_cost;		 /* Cost of any scalar operation,
    155  1.3  mrg 					    excluding load and store.  */
    156  1.3  mrg   const int scalar_load_cost;		 /* Cost of scalar load.  */
    157  1.3  mrg   const int scalar_store_cost;		 /* Cost of scalar store.  */
    158  1.3  mrg   const int vec_stmt_cost;		 /* Cost of any vector operation,
    159  1.4  mrg 					    excluding load, store, permute,
    160  1.3  mrg 					    vector-to-scalar and
    161  1.3  mrg 					    scalar-to-vector operation.  */
    162  1.4  mrg   const int vec_permute_cost;		 /* Cost of permute operation.  */
    163  1.3  mrg   const int vec_to_scalar_cost;		 /* Cost of vec-to-scalar operation.  */
    164  1.3  mrg   const int scalar_to_vec_cost;		 /* Cost of scalar-to-vector
    165  1.3  mrg 					    operation.  */
    166  1.3  mrg   const int vec_align_load_cost;	 /* Cost of aligned vector load.  */
    167  1.3  mrg   const int vec_unalign_load_cost;	 /* Cost of unaligned vector load.  */
    168  1.3  mrg   const int vec_unalign_store_cost;	 /* Cost of unaligned vector store.  */
    169  1.3  mrg   const int vec_store_cost;		 /* Cost of vector store.  */
    170  1.3  mrg   const int cond_taken_branch_cost;	 /* Cost of taken branch.  */
    171  1.3  mrg   const int cond_not_taken_branch_cost;  /* Cost of not taken branch.  */
    172  1.3  mrg };
    173  1.3  mrg 
    174  1.4  mrg /* Branch costs.  */
    175  1.4  mrg struct cpu_branch_cost
    176  1.4  mrg {
    177  1.4  mrg   const int predictable;    /* Predictable branch or optimizing for size.  */
    178  1.4  mrg   const int unpredictable;  /* Unpredictable branch or optimizing for speed.  */
    179  1.4  mrg };
    180  1.4  mrg 
    181  1.1  mrg struct tune_params
    182  1.1  mrg {
    183  1.4  mrg   const struct cpu_cost_table *insn_extra_cost;
    184  1.4  mrg   const struct cpu_addrcost_table *addr_cost;
    185  1.4  mrg   const struct cpu_regmove_cost *regmove_cost;
    186  1.4  mrg   const struct cpu_vector_cost *vec_costs;
    187  1.4  mrg   const struct cpu_branch_cost *branch_costs;
    188  1.4  mrg   int memmov_cost;
    189  1.4  mrg   int issue_rate;
    190  1.4  mrg   unsigned int fusible_ops;
    191  1.4  mrg   int function_align;
    192  1.4  mrg   int jump_align;
    193  1.4  mrg   int loop_align;
    194  1.4  mrg   int int_reassoc_width;
    195  1.4  mrg   int fp_reassoc_width;
    196  1.4  mrg   int vec_reassoc_width;
    197  1.4  mrg   int min_div_recip_mul_sf;
    198  1.4  mrg   int min_div_recip_mul_df;
    199  1.4  mrg   /* Value for aarch64_case_values_threshold; or 0 for the default.  */
    200  1.4  mrg   unsigned int max_case_values;
    201  1.4  mrg   /* Value for PARAM_L1_CACHE_LINE_SIZE; or 0 to use the default.  */
    202  1.4  mrg   unsigned int cache_line_size;
    203  1.4  mrg 
    204  1.4  mrg /* An enum specifying how to take into account CPU autoprefetch capabilities
    205  1.4  mrg    during instruction scheduling:
    206  1.4  mrg    - AUTOPREFETCHER_OFF: Do not take autoprefetch capabilities into account.
    207  1.4  mrg    - AUTOPREFETCHER_WEAK: Attempt to sort sequences of loads/store in order of
    208  1.4  mrg    offsets but allow the pipeline hazard recognizer to alter that order to
    209  1.4  mrg    maximize multi-issue opportunities.
    210  1.4  mrg    - AUTOPREFETCHER_STRONG: Attempt to sort sequences of loads/store in order of
    211  1.4  mrg    offsets and prefer this even if it restricts multi-issue opportunities.  */
    212  1.4  mrg 
    213  1.4  mrg   enum aarch64_autoprefetch_model
    214  1.4  mrg   {
    215  1.4  mrg     AUTOPREFETCHER_OFF,
    216  1.4  mrg     AUTOPREFETCHER_WEAK,
    217  1.4  mrg     AUTOPREFETCHER_STRONG
    218  1.4  mrg   } autoprefetcher_model;
    219  1.4  mrg 
    220  1.4  mrg   unsigned int extra_tuning_flags;
    221  1.4  mrg };
    222  1.4  mrg 
    223  1.4  mrg #define AARCH64_FUSION_PAIR(x, name) \
    224  1.4  mrg   AARCH64_FUSE_##name##_index,
    225  1.4  mrg /* Supported fusion operations.  */
    226  1.4  mrg enum aarch64_fusion_pairs_index
    227  1.4  mrg {
    228  1.4  mrg #include "aarch64-fusion-pairs.def"
    229  1.4  mrg   AARCH64_FUSE_index_END
    230  1.4  mrg };
    231  1.4  mrg #undef AARCH64_FUSION_PAIR
    232  1.4  mrg 
    233  1.4  mrg #define AARCH64_FUSION_PAIR(x, name) \
    234  1.4  mrg   AARCH64_FUSE_##name = (1u << AARCH64_FUSE_##name##_index),
    235  1.4  mrg /* Supported fusion operations.  */
    236  1.4  mrg enum aarch64_fusion_pairs
    237  1.4  mrg {
    238  1.4  mrg   AARCH64_FUSE_NOTHING = 0,
    239  1.4  mrg #include "aarch64-fusion-pairs.def"
    240  1.4  mrg   AARCH64_FUSE_ALL = (1u << AARCH64_FUSE_index_END) - 1
    241  1.1  mrg };
    242  1.4  mrg #undef AARCH64_FUSION_PAIR
    243  1.4  mrg 
    244  1.4  mrg #define AARCH64_EXTRA_TUNING_OPTION(x, name) \
    245  1.4  mrg   AARCH64_EXTRA_TUNE_##name##_index,
    246  1.4  mrg /* Supported tuning flags indexes.  */
    247  1.4  mrg enum aarch64_extra_tuning_flags_index
    248  1.4  mrg {
    249  1.4  mrg #include "aarch64-tuning-flags.def"
    250  1.4  mrg   AARCH64_EXTRA_TUNE_index_END
    251  1.4  mrg };
    252  1.4  mrg #undef AARCH64_EXTRA_TUNING_OPTION
    253  1.4  mrg 
    254  1.4  mrg 
    255  1.4  mrg #define AARCH64_EXTRA_TUNING_OPTION(x, name) \
    256  1.4  mrg   AARCH64_EXTRA_TUNE_##name = (1u << AARCH64_EXTRA_TUNE_##name##_index),
    257  1.4  mrg /* Supported tuning flags.  */
    258  1.4  mrg enum aarch64_extra_tuning_flags
    259  1.4  mrg {
    260  1.4  mrg   AARCH64_EXTRA_TUNE_NONE = 0,
    261  1.4  mrg #include "aarch64-tuning-flags.def"
    262  1.4  mrg   AARCH64_EXTRA_TUNE_ALL = (1u << AARCH64_EXTRA_TUNE_index_END) - 1
    263  1.4  mrg };
    264  1.4  mrg #undef AARCH64_EXTRA_TUNING_OPTION
    265  1.4  mrg 
    266  1.4  mrg /* Enum describing the various ways that the
    267  1.4  mrg    aarch64_parse_{arch,tune,cpu,extension} functions can fail.
    268  1.4  mrg    This way their callers can choose what kind of error to give.  */
    269  1.4  mrg 
    270  1.4  mrg enum aarch64_parse_opt_result
    271  1.4  mrg {
    272  1.4  mrg   AARCH64_PARSE_OK,			/* Parsing was successful.  */
    273  1.4  mrg   AARCH64_PARSE_MISSING_ARG,		/* Missing argument.  */
    274  1.4  mrg   AARCH64_PARSE_INVALID_FEATURE,	/* Invalid feature modifier.  */
    275  1.4  mrg   AARCH64_PARSE_INVALID_ARG		/* Invalid arch, tune, cpu arg.  */
    276  1.4  mrg };
    277  1.4  mrg 
    278  1.4  mrg extern struct tune_params aarch64_tune_params;
    279  1.1  mrg 
    280  1.1  mrg HOST_WIDE_INT aarch64_initial_elimination_offset (unsigned, unsigned);
    281  1.3  mrg int aarch64_get_condition_code (rtx);
    282  1.3  mrg bool aarch64_bitmask_imm (HOST_WIDE_INT val, machine_mode);
    283  1.4  mrg int aarch64_branch_cost (bool, bool);
    284  1.4  mrg enum aarch64_symbol_type aarch64_classify_symbolic_expression (rtx);
    285  1.3  mrg bool aarch64_cannot_change_mode_class (machine_mode,
    286  1.3  mrg 				       machine_mode,
    287  1.3  mrg 				       enum reg_class);
    288  1.3  mrg bool aarch64_const_vec_all_same_int_p (rtx, HOST_WIDE_INT);
    289  1.1  mrg bool aarch64_constant_address_p (rtx);
    290  1.3  mrg bool aarch64_expand_movmem (rtx *);
    291  1.1  mrg bool aarch64_float_const_zero_rtx_p (rtx);
    292  1.1  mrg bool aarch64_function_arg_regno_p (unsigned);
    293  1.1  mrg bool aarch64_gen_movmemqi (rtx *);
    294  1.3  mrg bool aarch64_gimple_fold_builtin (gimple_stmt_iterator *);
    295  1.3  mrg bool aarch64_is_extend_from_extract (machine_mode, rtx, rtx);
    296  1.1  mrg bool aarch64_is_long_call_p (rtx);
    297  1.4  mrg bool aarch64_is_noplt_call_p (rtx);
    298  1.1  mrg bool aarch64_label_mentioned_p (rtx);
    299  1.4  mrg void aarch64_declare_function_name (FILE *, const char*, tree);
    300  1.1  mrg bool aarch64_legitimate_pic_operand_p (rtx);
    301  1.3  mrg bool aarch64_modes_tieable_p (machine_mode mode1,
    302  1.3  mrg 			      machine_mode mode2);
    303  1.3  mrg bool aarch64_zero_extend_const_eq (machine_mode, rtx, machine_mode, rtx);
    304  1.3  mrg bool aarch64_move_imm (HOST_WIDE_INT, machine_mode);
    305  1.4  mrg bool aarch64_mov_operand_p (rtx, machine_mode);
    306  1.3  mrg int aarch64_simd_attr_length_rglist (enum machine_mode);
    307  1.3  mrg rtx aarch64_reverse_mask (enum machine_mode);
    308  1.3  mrg bool aarch64_offset_7bit_signed_scaled_p (machine_mode, HOST_WIDE_INT);
    309  1.3  mrg char *aarch64_output_scalar_simd_mov_immediate (rtx, machine_mode);
    310  1.3  mrg char *aarch64_output_simd_mov_immediate (rtx, machine_mode, unsigned);
    311  1.3  mrg bool aarch64_pad_arg_upward (machine_mode, const_tree);
    312  1.3  mrg bool aarch64_pad_reg_upward (machine_mode, const_tree, bool);
    313  1.1  mrg bool aarch64_regno_ok_for_base_p (int, bool);
    314  1.1  mrg bool aarch64_regno_ok_for_index_p (int, bool);
    315  1.3  mrg bool aarch64_simd_check_vect_par_cnst_half (rtx op, machine_mode mode,
    316  1.3  mrg 					    bool high);
    317  1.3  mrg bool aarch64_simd_imm_scalar_p (rtx x, machine_mode mode);
    318  1.3  mrg bool aarch64_simd_imm_zero_p (rtx, machine_mode);
    319  1.3  mrg bool aarch64_simd_scalar_immediate_valid_for_move (rtx, machine_mode);
    320  1.3  mrg bool aarch64_simd_shift_imm_p (rtx, machine_mode, bool);
    321  1.3  mrg bool aarch64_simd_valid_immediate (rtx, machine_mode, bool,
    322  1.3  mrg 				   struct simd_immediate_info *);
    323  1.1  mrg bool aarch64_symbolic_address_p (rtx);
    324  1.1  mrg bool aarch64_uimm12_shift (HOST_WIDE_INT);
    325  1.3  mrg bool aarch64_use_return_insn_p (void);
    326  1.3  mrg const char *aarch64_mangle_builtin_type (const_tree);
    327  1.1  mrg const char *aarch64_output_casesi (rtx *);
    328  1.3  mrg 
    329  1.4  mrg enum aarch64_symbol_type aarch64_classify_symbol (rtx, rtx);
    330  1.1  mrg enum aarch64_symbol_type aarch64_classify_tls_symbol (rtx);
    331  1.1  mrg enum reg_class aarch64_regno_regclass (unsigned);
    332  1.1  mrg int aarch64_asm_preferred_eh_data_format (int, int);
    333  1.4  mrg int aarch64_fpconst_pow_of_2 (rtx);
    334  1.3  mrg machine_mode aarch64_hard_regno_caller_save_mode (unsigned, unsigned,
    335  1.3  mrg 						       machine_mode);
    336  1.3  mrg int aarch64_hard_regno_mode_ok (unsigned, machine_mode);
    337  1.3  mrg int aarch64_hard_regno_nregs (unsigned, machine_mode);
    338  1.3  mrg int aarch64_simd_attr_length_move (rtx_insn *);
    339  1.1  mrg int aarch64_uxt_size (int, HOST_WIDE_INT);
    340  1.4  mrg int aarch64_vec_fpconst_pow_of_2 (rtx);
    341  1.4  mrg rtx aarch64_eh_return_handler_rtx (void);
    342  1.3  mrg rtx aarch64_legitimize_reload_address (rtx *, machine_mode, int, int, int);
    343  1.4  mrg rtx aarch64_mask_from_zextract_ops (rtx, rtx);
    344  1.1  mrg const char *aarch64_output_move_struct (rtx *operands);
    345  1.1  mrg rtx aarch64_return_addr (int, rtx);
    346  1.3  mrg rtx aarch64_simd_gen_const_vector_dup (machine_mode, int);
    347  1.1  mrg bool aarch64_simd_mem_operand_p (rtx);
    348  1.3  mrg rtx aarch64_simd_vect_par_cnst_half (machine_mode, bool);
    349  1.1  mrg rtx aarch64_tls_get_addr (void);
    350  1.3  mrg tree aarch64_fold_builtin (tree, int, tree *, bool);
    351  1.1  mrg unsigned aarch64_dbx_register_number (unsigned);
    352  1.1  mrg unsigned aarch64_trampoline_size (void);
    353  1.1  mrg void aarch64_asm_output_labelref (FILE *, const char *);
    354  1.4  mrg void aarch64_cpu_cpp_builtins (cpp_reader *);
    355  1.1  mrg void aarch64_elf_asm_named_section (const char *, unsigned, tree);
    356  1.4  mrg const char * aarch64_gen_far_branch (rtx *, int, const char *, const char *);
    357  1.4  mrg const char * aarch64_output_probe_stack_range (rtx, rtx);
    358  1.4  mrg void aarch64_err_no_fpadvsimd (machine_mode, const char *);
    359  1.1  mrg void aarch64_expand_epilogue (bool);
    360  1.1  mrg void aarch64_expand_mov_immediate (rtx, rtx);
    361  1.1  mrg void aarch64_expand_prologue (void);
    362  1.1  mrg void aarch64_expand_vector_init (rtx, rtx);
    363  1.1  mrg void aarch64_init_cumulative_args (CUMULATIVE_ARGS *, const_tree, rtx,
    364  1.1  mrg 				   const_tree, unsigned);
    365  1.1  mrg void aarch64_init_expanders (void);
    366  1.4  mrg void aarch64_init_simd_builtins (void);
    367  1.3  mrg void aarch64_emit_call_insn (rtx);
    368  1.4  mrg void aarch64_register_pragmas (void);
    369  1.4  mrg void aarch64_relayout_simd_types (void);
    370  1.4  mrg void aarch64_reset_previous_fndecl (void);
    371  1.4  mrg void aarch64_save_restore_target_globals (tree);
    372  1.4  mrg void aarch64_emit_approx_rsqrt (rtx, rtx);
    373  1.1  mrg 
    374  1.1  mrg /* Initialize builtins for SIMD intrinsics.  */
    375  1.1  mrg void init_aarch64_simd_builtins (void);
    376  1.1  mrg 
    377  1.3  mrg void aarch64_simd_emit_reg_reg_move (rtx *, enum machine_mode, unsigned int);
    378  1.1  mrg 
    379  1.1  mrg /* Expand builtins for SIMD intrinsics.  */
    380  1.1  mrg rtx aarch64_simd_expand_builtin (int, tree, rtx);
    381  1.1  mrg 
    382  1.3  mrg void aarch64_simd_lane_bounds (rtx, HOST_WIDE_INT, HOST_WIDE_INT, const_tree);
    383  1.1  mrg 
    384  1.1  mrg void aarch64_split_128bit_move (rtx, rtx);
    385  1.1  mrg 
    386  1.1  mrg bool aarch64_split_128bit_move_p (rtx, rtx);
    387  1.1  mrg 
    388  1.3  mrg void aarch64_split_simd_combine (rtx, rtx, rtx);
    389  1.3  mrg 
    390  1.3  mrg void aarch64_split_simd_move (rtx, rtx);
    391  1.3  mrg 
    392  1.1  mrg /* Check for a legitimate floating point constant for FMOV.  */
    393  1.1  mrg bool aarch64_float_const_representable_p (rtx);
    394  1.1  mrg 
    395  1.1  mrg #if defined (RTX_CODE)
    396  1.1  mrg 
    397  1.3  mrg bool aarch64_legitimate_address_p (machine_mode, rtx, RTX_CODE, bool);
    398  1.3  mrg machine_mode aarch64_select_cc_mode (RTX_CODE, rtx, rtx);
    399  1.1  mrg rtx aarch64_gen_compare_reg (RTX_CODE, rtx, rtx);
    400  1.1  mrg rtx aarch64_load_tp (rtx);
    401  1.1  mrg 
    402  1.1  mrg void aarch64_expand_compare_and_swap (rtx op[]);
    403  1.1  mrg void aarch64_split_compare_and_swap (rtx op[]);
    404  1.4  mrg void aarch64_gen_atomic_cas (rtx, rtx, rtx, rtx, rtx);
    405  1.4  mrg 
    406  1.4  mrg bool aarch64_atomic_ldop_supported_p (enum rtx_code);
    407  1.4  mrg void aarch64_gen_atomic_ldop (enum rtx_code, rtx, rtx, rtx, rtx, rtx);
    408  1.1  mrg void aarch64_split_atomic_op (enum rtx_code, rtx, rtx, rtx, rtx, rtx, rtx);
    409  1.1  mrg 
    410  1.3  mrg bool aarch64_gen_adjusted_ldpstp (rtx *, bool, enum machine_mode, RTX_CODE);
    411  1.1  mrg #endif /* RTX_CODE */
    412  1.1  mrg 
    413  1.1  mrg void aarch64_init_builtins (void);
    414  1.4  mrg 
    415  1.4  mrg bool aarch64_process_target_attr (tree, const char*);
    416  1.4  mrg void aarch64_override_options_internal (struct gcc_options *);
    417  1.4  mrg 
    418  1.1  mrg rtx aarch64_expand_builtin (tree exp,
    419  1.1  mrg 			    rtx target,
    420  1.1  mrg 			    rtx subtarget ATTRIBUTE_UNUSED,
    421  1.3  mrg 			    machine_mode mode ATTRIBUTE_UNUSED,
    422  1.1  mrg 			    int ignore ATTRIBUTE_UNUSED);
    423  1.1  mrg tree aarch64_builtin_decl (unsigned, bool ATTRIBUTE_UNUSED);
    424  1.4  mrg tree aarch64_builtin_rsqrt (unsigned int);
    425  1.4  mrg tree aarch64_builtin_vectorized_function (unsigned int, tree, tree);
    426  1.1  mrg 
    427  1.1  mrg extern void aarch64_split_combinev16qi (rtx operands[3]);
    428  1.1  mrg extern void aarch64_expand_vec_perm (rtx target, rtx op0, rtx op1, rtx sel);
    429  1.3  mrg extern bool aarch64_madd_needs_nop (rtx_insn *);
    430  1.3  mrg extern void aarch64_final_prescan_insn (rtx_insn *);
    431  1.1  mrg extern bool
    432  1.1  mrg aarch64_expand_vec_perm_const (rtx target, rtx op0, rtx op1, rtx sel);
    433  1.3  mrg void aarch64_atomic_assign_expand_fenv (tree *, tree *, tree *);
    434  1.3  mrg int aarch64_ccmp_mode_to_code (enum machine_mode mode);
    435  1.1  mrg 
    436  1.3  mrg bool extract_base_offset_in_addr (rtx mem, rtx *base, rtx *offset);
    437  1.3  mrg bool aarch64_operands_ok_for_ldpstp (rtx *, bool, enum machine_mode);
    438  1.3  mrg bool aarch64_operands_adjust_ok_for_ldpstp (rtx *, bool, enum machine_mode);
    439  1.4  mrg extern bool aarch64_nopcrelative_literal_loads;
    440  1.4  mrg 
    441  1.4  mrg extern void aarch64_asm_output_pool_epilogue (FILE *, const char *,
    442  1.4  mrg 					      tree, HOST_WIDE_INT);
    443  1.4  mrg 
    444  1.4  mrg /* Defined in common/config/aarch64-common.c.  */
    445  1.4  mrg bool aarch64_handle_option (struct gcc_options *, struct gcc_options *,
    446  1.4  mrg 			     const struct cl_decoded_option *, location_t);
    447  1.4  mrg const char *aarch64_rewrite_selected_cpu (const char *name);
    448  1.4  mrg enum aarch64_parse_opt_result aarch64_parse_extension (const char *,
    449  1.4  mrg 						       unsigned long *);
    450  1.4  mrg std::string aarch64_get_extension_string_for_isa_flags (unsigned long,
    451  1.4  mrg 							unsigned long);
    452  1.4  mrg 
    453  1.1  mrg #endif /* GCC_AARCH64_PROTOS_H */
    454