Home | History | Annotate | Line # | Download | only in aarch64
aarch64-protos.h revision 1.8
      1  1.1  mrg /* Machine description for AArch64 architecture.
      2  1.8  mrg    Copyright (C) 2009-2019 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.7  mrg /* Classifies the type of an address query.
    115  1.7  mrg 
    116  1.7  mrg    ADDR_QUERY_M
    117  1.7  mrg       Query what is valid for an "m" constraint and a memory_operand
    118  1.7  mrg       (the rules are the same for both).
    119  1.7  mrg 
    120  1.7  mrg    ADDR_QUERY_LDP_STP
    121  1.7  mrg       Query what is valid for a load/store pair.
    122  1.7  mrg 
    123  1.8  mrg    ADDR_QUERY_LDP_STP_N
    124  1.8  mrg       Query what is valid for a load/store pair, but narrow the incoming mode
    125  1.8  mrg       for address checking.  This is used for the store_pair_lanes patterns.
    126  1.8  mrg 
    127  1.7  mrg    ADDR_QUERY_ANY
    128  1.7  mrg       Query what is valid for at least one memory constraint, which may
    129  1.7  mrg       allow things that "m" doesn't.  For example, the SVE LDR and STR
    130  1.7  mrg       addressing modes allow a wider range of immediate offsets than "m"
    131  1.7  mrg       does.  */
    132  1.7  mrg enum aarch64_addr_query_type {
    133  1.7  mrg   ADDR_QUERY_M,
    134  1.7  mrg   ADDR_QUERY_LDP_STP,
    135  1.8  mrg   ADDR_QUERY_LDP_STP_N,
    136  1.7  mrg   ADDR_QUERY_ANY
    137  1.7  mrg };
    138  1.7  mrg 
    139  1.1  mrg /* A set of tuning parameters contains references to size and time
    140  1.1  mrg    cost models and vectors for address cost calculations, register
    141  1.1  mrg    move costs and memory move costs.  */
    142  1.1  mrg 
    143  1.3  mrg /* Scaled addressing modes can vary cost depending on the mode of the
    144  1.3  mrg    value to be loaded/stored.  QImode values cannot use scaled
    145  1.3  mrg    addressing modes.  */
    146  1.1  mrg 
    147  1.3  mrg struct scale_addr_mode_cost
    148  1.1  mrg {
    149  1.3  mrg   const int hi;
    150  1.3  mrg   const int si;
    151  1.3  mrg   const int di;
    152  1.3  mrg   const int ti;
    153  1.1  mrg };
    154  1.1  mrg 
    155  1.1  mrg /* Additional cost for addresses.  */
    156  1.1  mrg struct cpu_addrcost_table
    157  1.1  mrg {
    158  1.3  mrg   const struct scale_addr_mode_cost addr_scale_costs;
    159  1.1  mrg   const int pre_modify;
    160  1.1  mrg   const int post_modify;
    161  1.1  mrg   const int register_offset;
    162  1.4  mrg   const int register_sextend;
    163  1.4  mrg   const int register_zextend;
    164  1.1  mrg   const int imm_offset;
    165  1.1  mrg };
    166  1.1  mrg 
    167  1.1  mrg /* Additional costs for register copies.  Cost is for one register.  */
    168  1.1  mrg struct cpu_regmove_cost
    169  1.1  mrg {
    170  1.1  mrg   const int GP2GP;
    171  1.1  mrg   const int GP2FP;
    172  1.1  mrg   const int FP2GP;
    173  1.1  mrg   const int FP2FP;
    174  1.1  mrg };
    175  1.1  mrg 
    176  1.3  mrg /* Cost for vector insn classes.  */
    177  1.3  mrg struct cpu_vector_cost
    178  1.3  mrg {
    179  1.6  mrg   const int scalar_int_stmt_cost;	 /* Cost of any int scalar operation,
    180  1.6  mrg 					    excluding load and store.  */
    181  1.6  mrg   const int scalar_fp_stmt_cost;	 /* Cost of any fp scalar operation,
    182  1.3  mrg 					    excluding load and store.  */
    183  1.3  mrg   const int scalar_load_cost;		 /* Cost of scalar load.  */
    184  1.3  mrg   const int scalar_store_cost;		 /* Cost of scalar store.  */
    185  1.6  mrg   const int vec_int_stmt_cost;		 /* Cost of any int vector operation,
    186  1.6  mrg 					    excluding load, store, permute,
    187  1.6  mrg 					    vector-to-scalar and
    188  1.6  mrg 					    scalar-to-vector operation.  */
    189  1.6  mrg   const int vec_fp_stmt_cost;		 /* Cost of any fp vector operation,
    190  1.4  mrg 					    excluding load, store, permute,
    191  1.3  mrg 					    vector-to-scalar and
    192  1.3  mrg 					    scalar-to-vector operation.  */
    193  1.4  mrg   const int vec_permute_cost;		 /* Cost of permute operation.  */
    194  1.3  mrg   const int vec_to_scalar_cost;		 /* Cost of vec-to-scalar operation.  */
    195  1.3  mrg   const int scalar_to_vec_cost;		 /* Cost of scalar-to-vector
    196  1.3  mrg 					    operation.  */
    197  1.3  mrg   const int vec_align_load_cost;	 /* Cost of aligned vector load.  */
    198  1.3  mrg   const int vec_unalign_load_cost;	 /* Cost of unaligned vector load.  */
    199  1.3  mrg   const int vec_unalign_store_cost;	 /* Cost of unaligned vector store.  */
    200  1.3  mrg   const int vec_store_cost;		 /* Cost of vector store.  */
    201  1.3  mrg   const int cond_taken_branch_cost;	 /* Cost of taken branch.  */
    202  1.3  mrg   const int cond_not_taken_branch_cost;  /* Cost of not taken branch.  */
    203  1.3  mrg };
    204  1.3  mrg 
    205  1.4  mrg /* Branch costs.  */
    206  1.4  mrg struct cpu_branch_cost
    207  1.4  mrg {
    208  1.4  mrg   const int predictable;    /* Predictable branch or optimizing for size.  */
    209  1.4  mrg   const int unpredictable;  /* Unpredictable branch or optimizing for speed.  */
    210  1.4  mrg };
    211  1.4  mrg 
    212  1.6  mrg /* Control approximate alternatives to certain FP operators.  */
    213  1.6  mrg #define AARCH64_APPROX_MODE(MODE) \
    214  1.6  mrg   ((MIN_MODE_FLOAT <= (MODE) && (MODE) <= MAX_MODE_FLOAT) \
    215  1.6  mrg    ? (1 << ((MODE) - MIN_MODE_FLOAT)) \
    216  1.6  mrg    : (MIN_MODE_VECTOR_FLOAT <= (MODE) && (MODE) <= MAX_MODE_VECTOR_FLOAT) \
    217  1.6  mrg      ? (1 << ((MODE) - MIN_MODE_VECTOR_FLOAT \
    218  1.6  mrg 	      + MAX_MODE_FLOAT - MIN_MODE_FLOAT + 1)) \
    219  1.6  mrg      : (0))
    220  1.6  mrg #define AARCH64_APPROX_NONE (0)
    221  1.6  mrg #define AARCH64_APPROX_ALL (-1)
    222  1.6  mrg 
    223  1.6  mrg /* Allowed modes for approximations.  */
    224  1.6  mrg struct cpu_approx_modes
    225  1.6  mrg {
    226  1.6  mrg   const unsigned int division;		/* Division.  */
    227  1.6  mrg   const unsigned int sqrt;		/* Square root.  */
    228  1.6  mrg   const unsigned int recip_sqrt;	/* Reciprocal square root.  */
    229  1.6  mrg };
    230  1.6  mrg 
    231  1.7  mrg /* Cache prefetch settings for prefetch-loop-arrays.  */
    232  1.7  mrg struct cpu_prefetch_tune
    233  1.7  mrg {
    234  1.7  mrg   const int num_slots;
    235  1.7  mrg   const int l1_cache_size;
    236  1.7  mrg   const int l1_cache_line_size;
    237  1.7  mrg   const int l2_cache_size;
    238  1.8  mrg   /* Whether software prefetch hints should be issued for non-constant
    239  1.8  mrg      strides.  */
    240  1.8  mrg   const bool prefetch_dynamic_strides;
    241  1.8  mrg   /* The minimum constant stride beyond which we should use prefetch
    242  1.8  mrg      hints for.  */
    243  1.8  mrg   const int minimum_stride;
    244  1.7  mrg   const int default_opt_level;
    245  1.7  mrg };
    246  1.7  mrg 
    247  1.1  mrg struct tune_params
    248  1.1  mrg {
    249  1.4  mrg   const struct cpu_cost_table *insn_extra_cost;
    250  1.4  mrg   const struct cpu_addrcost_table *addr_cost;
    251  1.4  mrg   const struct cpu_regmove_cost *regmove_cost;
    252  1.4  mrg   const struct cpu_vector_cost *vec_costs;
    253  1.4  mrg   const struct cpu_branch_cost *branch_costs;
    254  1.6  mrg   const struct cpu_approx_modes *approx_modes;
    255  1.8  mrg   /* Width of the SVE registers or SVE_NOT_IMPLEMENTED if not applicable.
    256  1.8  mrg      Only used for tuning decisions, does not disable VLA
    257  1.8  mrg      vectorization.  */
    258  1.8  mrg   enum aarch64_sve_vector_bits_enum sve_width;
    259  1.4  mrg   int memmov_cost;
    260  1.4  mrg   int issue_rate;
    261  1.4  mrg   unsigned int fusible_ops;
    262  1.8  mrg   const char *function_align;
    263  1.8  mrg   const char *jump_align;
    264  1.8  mrg   const char *loop_align;
    265  1.4  mrg   int int_reassoc_width;
    266  1.4  mrg   int fp_reassoc_width;
    267  1.4  mrg   int vec_reassoc_width;
    268  1.4  mrg   int min_div_recip_mul_sf;
    269  1.4  mrg   int min_div_recip_mul_df;
    270  1.4  mrg   /* Value for aarch64_case_values_threshold; or 0 for the default.  */
    271  1.4  mrg   unsigned int max_case_values;
    272  1.4  mrg /* An enum specifying how to take into account CPU autoprefetch capabilities
    273  1.4  mrg    during instruction scheduling:
    274  1.4  mrg    - AUTOPREFETCHER_OFF: Do not take autoprefetch capabilities into account.
    275  1.4  mrg    - AUTOPREFETCHER_WEAK: Attempt to sort sequences of loads/store in order of
    276  1.4  mrg    offsets but allow the pipeline hazard recognizer to alter that order to
    277  1.4  mrg    maximize multi-issue opportunities.
    278  1.4  mrg    - AUTOPREFETCHER_STRONG: Attempt to sort sequences of loads/store in order of
    279  1.4  mrg    offsets and prefer this even if it restricts multi-issue opportunities.  */
    280  1.4  mrg 
    281  1.4  mrg   enum aarch64_autoprefetch_model
    282  1.4  mrg   {
    283  1.4  mrg     AUTOPREFETCHER_OFF,
    284  1.4  mrg     AUTOPREFETCHER_WEAK,
    285  1.4  mrg     AUTOPREFETCHER_STRONG
    286  1.4  mrg   } autoprefetcher_model;
    287  1.4  mrg 
    288  1.4  mrg   unsigned int extra_tuning_flags;
    289  1.7  mrg 
    290  1.7  mrg   /* Place prefetch struct pointer at the end to enable type checking
    291  1.7  mrg      errors when tune_params misses elements (e.g., from erroneous merges).  */
    292  1.7  mrg   const struct cpu_prefetch_tune *prefetch;
    293  1.4  mrg };
    294  1.4  mrg 
    295  1.8  mrg /* Classifies an address.
    296  1.8  mrg 
    297  1.8  mrg    ADDRESS_REG_IMM
    298  1.8  mrg        A simple base register plus immediate offset.
    299  1.8  mrg 
    300  1.8  mrg    ADDRESS_REG_WB
    301  1.8  mrg        A base register indexed by immediate offset with writeback.
    302  1.8  mrg 
    303  1.8  mrg    ADDRESS_REG_REG
    304  1.8  mrg        A base register indexed by (optionally scaled) register.
    305  1.8  mrg 
    306  1.8  mrg    ADDRESS_REG_UXTW
    307  1.8  mrg        A base register indexed by (optionally scaled) zero-extended register.
    308  1.8  mrg 
    309  1.8  mrg    ADDRESS_REG_SXTW
    310  1.8  mrg        A base register indexed by (optionally scaled) sign-extended register.
    311  1.8  mrg 
    312  1.8  mrg    ADDRESS_LO_SUM
    313  1.8  mrg        A LO_SUM rtx with a base register and "LO12" symbol relocation.
    314  1.8  mrg 
    315  1.8  mrg    ADDRESS_SYMBOLIC:
    316  1.8  mrg        A constant symbolic address, in pc-relative literal pool.  */
    317  1.8  mrg 
    318  1.8  mrg enum aarch64_address_type {
    319  1.8  mrg   ADDRESS_REG_IMM,
    320  1.8  mrg   ADDRESS_REG_WB,
    321  1.8  mrg   ADDRESS_REG_REG,
    322  1.8  mrg   ADDRESS_REG_UXTW,
    323  1.8  mrg   ADDRESS_REG_SXTW,
    324  1.8  mrg   ADDRESS_LO_SUM,
    325  1.8  mrg   ADDRESS_SYMBOLIC
    326  1.8  mrg };
    327  1.8  mrg 
    328  1.8  mrg /* Address information.  */
    329  1.8  mrg struct aarch64_address_info {
    330  1.8  mrg   enum aarch64_address_type type;
    331  1.8  mrg   rtx base;
    332  1.8  mrg   rtx offset;
    333  1.8  mrg   poly_int64 const_offset;
    334  1.8  mrg   int shift;
    335  1.8  mrg   enum aarch64_symbol_type symbol_type;
    336  1.8  mrg };
    337  1.8  mrg 
    338  1.4  mrg #define AARCH64_FUSION_PAIR(x, name) \
    339  1.4  mrg   AARCH64_FUSE_##name##_index,
    340  1.4  mrg /* Supported fusion operations.  */
    341  1.4  mrg enum aarch64_fusion_pairs_index
    342  1.4  mrg {
    343  1.4  mrg #include "aarch64-fusion-pairs.def"
    344  1.4  mrg   AARCH64_FUSE_index_END
    345  1.4  mrg };
    346  1.4  mrg 
    347  1.4  mrg #define AARCH64_FUSION_PAIR(x, name) \
    348  1.4  mrg   AARCH64_FUSE_##name = (1u << AARCH64_FUSE_##name##_index),
    349  1.4  mrg /* Supported fusion operations.  */
    350  1.4  mrg enum aarch64_fusion_pairs
    351  1.4  mrg {
    352  1.4  mrg   AARCH64_FUSE_NOTHING = 0,
    353  1.4  mrg #include "aarch64-fusion-pairs.def"
    354  1.4  mrg   AARCH64_FUSE_ALL = (1u << AARCH64_FUSE_index_END) - 1
    355  1.1  mrg };
    356  1.4  mrg 
    357  1.4  mrg #define AARCH64_EXTRA_TUNING_OPTION(x, name) \
    358  1.4  mrg   AARCH64_EXTRA_TUNE_##name##_index,
    359  1.4  mrg /* Supported tuning flags indexes.  */
    360  1.4  mrg enum aarch64_extra_tuning_flags_index
    361  1.4  mrg {
    362  1.4  mrg #include "aarch64-tuning-flags.def"
    363  1.4  mrg   AARCH64_EXTRA_TUNE_index_END
    364  1.4  mrg };
    365  1.4  mrg 
    366  1.4  mrg 
    367  1.4  mrg #define AARCH64_EXTRA_TUNING_OPTION(x, name) \
    368  1.4  mrg   AARCH64_EXTRA_TUNE_##name = (1u << AARCH64_EXTRA_TUNE_##name##_index),
    369  1.4  mrg /* Supported tuning flags.  */
    370  1.4  mrg enum aarch64_extra_tuning_flags
    371  1.4  mrg {
    372  1.4  mrg   AARCH64_EXTRA_TUNE_NONE = 0,
    373  1.4  mrg #include "aarch64-tuning-flags.def"
    374  1.4  mrg   AARCH64_EXTRA_TUNE_ALL = (1u << AARCH64_EXTRA_TUNE_index_END) - 1
    375  1.4  mrg };
    376  1.4  mrg 
    377  1.4  mrg /* Enum describing the various ways that the
    378  1.4  mrg    aarch64_parse_{arch,tune,cpu,extension} functions can fail.
    379  1.4  mrg    This way their callers can choose what kind of error to give.  */
    380  1.4  mrg 
    381  1.4  mrg enum aarch64_parse_opt_result
    382  1.4  mrg {
    383  1.4  mrg   AARCH64_PARSE_OK,			/* Parsing was successful.  */
    384  1.4  mrg   AARCH64_PARSE_MISSING_ARG,		/* Missing argument.  */
    385  1.4  mrg   AARCH64_PARSE_INVALID_FEATURE,	/* Invalid feature modifier.  */
    386  1.4  mrg   AARCH64_PARSE_INVALID_ARG		/* Invalid arch, tune, cpu arg.  */
    387  1.4  mrg };
    388  1.4  mrg 
    389  1.7  mrg /* Enum to distinguish which type of check is to be done in
    390  1.7  mrg    aarch64_simd_valid_immediate.  This is used as a bitmask where
    391  1.7  mrg    AARCH64_CHECK_MOV has both bits set.  Thus AARCH64_CHECK_MOV will
    392  1.7  mrg    perform all checks.  Adding new types would require changes accordingly.  */
    393  1.7  mrg enum simd_immediate_check {
    394  1.7  mrg   AARCH64_CHECK_ORR  = 1 << 0,
    395  1.7  mrg   AARCH64_CHECK_BIC  = 1 << 1,
    396  1.7  mrg   AARCH64_CHECK_MOV  = AARCH64_CHECK_ORR | AARCH64_CHECK_BIC
    397  1.7  mrg };
    398  1.7  mrg 
    399  1.4  mrg extern struct tune_params aarch64_tune_params;
    400  1.1  mrg 
    401  1.7  mrg poly_int64 aarch64_initial_elimination_offset (unsigned, unsigned);
    402  1.3  mrg int aarch64_get_condition_code (rtx);
    403  1.7  mrg bool aarch64_address_valid_for_prefetch_p (rtx, bool);
    404  1.3  mrg bool aarch64_bitmask_imm (HOST_WIDE_INT val, machine_mode);
    405  1.6  mrg unsigned HOST_WIDE_INT aarch64_and_split_imm1 (HOST_WIDE_INT val_in);
    406  1.6  mrg unsigned HOST_WIDE_INT aarch64_and_split_imm2 (HOST_WIDE_INT val_in);
    407  1.6  mrg bool aarch64_and_bitmask_imm (unsigned HOST_WIDE_INT val_in, machine_mode mode);
    408  1.4  mrg int aarch64_branch_cost (bool, bool);
    409  1.4  mrg enum aarch64_symbol_type aarch64_classify_symbolic_expression (rtx);
    410  1.7  mrg bool aarch64_can_const_movi_rtx_p (rtx x, machine_mode mode);
    411  1.3  mrg bool aarch64_const_vec_all_same_int_p (rtx, HOST_WIDE_INT);
    412  1.7  mrg bool aarch64_const_vec_all_same_in_range_p (rtx, HOST_WIDE_INT,
    413  1.7  mrg 					    HOST_WIDE_INT);
    414  1.1  mrg bool aarch64_constant_address_p (rtx);
    415  1.6  mrg bool aarch64_emit_approx_div (rtx, rtx, rtx);
    416  1.6  mrg bool aarch64_emit_approx_sqrt (rtx, rtx, bool);
    417  1.7  mrg void aarch64_expand_call (rtx, rtx, bool);
    418  1.3  mrg bool aarch64_expand_movmem (rtx *);
    419  1.1  mrg bool aarch64_float_const_zero_rtx_p (rtx);
    420  1.7  mrg bool aarch64_float_const_rtx_p (rtx);
    421  1.1  mrg bool aarch64_function_arg_regno_p (unsigned);
    422  1.6  mrg bool aarch64_fusion_enabled_p (enum aarch64_fusion_pairs);
    423  1.1  mrg bool aarch64_gen_movmemqi (rtx *);
    424  1.3  mrg bool aarch64_gimple_fold_builtin (gimple_stmt_iterator *);
    425  1.7  mrg bool aarch64_is_extend_from_extract (scalar_int_mode, rtx, rtx);
    426  1.1  mrg bool aarch64_is_long_call_p (rtx);
    427  1.4  mrg bool aarch64_is_noplt_call_p (rtx);
    428  1.1  mrg bool aarch64_label_mentioned_p (rtx);
    429  1.4  mrg void aarch64_declare_function_name (FILE *, const char*, tree);
    430  1.8  mrg void aarch64_asm_output_alias (FILE *, const tree, const tree);
    431  1.8  mrg void aarch64_asm_output_external (FILE *, tree, const char*);
    432  1.1  mrg bool aarch64_legitimate_pic_operand_p (rtx);
    433  1.7  mrg bool aarch64_mask_and_shift_for_ubfiz_p (scalar_int_mode, rtx, rtx);
    434  1.8  mrg bool aarch64_masks_and_shift_for_bfi_p (scalar_int_mode, unsigned HOST_WIDE_INT,
    435  1.8  mrg 					unsigned HOST_WIDE_INT,
    436  1.8  mrg 					unsigned HOST_WIDE_INT);
    437  1.3  mrg bool aarch64_zero_extend_const_eq (machine_mode, rtx, machine_mode, rtx);
    438  1.3  mrg bool aarch64_move_imm (HOST_WIDE_INT, machine_mode);
    439  1.7  mrg opt_machine_mode aarch64_sve_pred_mode (unsigned int);
    440  1.7  mrg bool aarch64_sve_cnt_immediate_p (rtx);
    441  1.7  mrg bool aarch64_sve_addvl_addpl_immediate_p (rtx);
    442  1.7  mrg bool aarch64_sve_inc_dec_immediate_p (rtx);
    443  1.7  mrg int aarch64_add_offset_temporaries (rtx);
    444  1.7  mrg void aarch64_split_add_offset (scalar_int_mode, rtx, rtx, rtx, rtx, rtx);
    445  1.4  mrg bool aarch64_mov_operand_p (rtx, machine_mode);
    446  1.7  mrg rtx aarch64_reverse_mask (machine_mode, unsigned int);
    447  1.7  mrg bool aarch64_offset_7bit_signed_scaled_p (machine_mode, poly_int64);
    448  1.8  mrg bool aarch64_offset_9bit_signed_unscaled_p (machine_mode, poly_int64);
    449  1.7  mrg char *aarch64_output_sve_cnt_immediate (const char *, const char *, rtx);
    450  1.7  mrg char *aarch64_output_sve_addvl_addpl (rtx, rtx, rtx);
    451  1.7  mrg char *aarch64_output_sve_inc_dec_immediate (const char *, rtx);
    452  1.7  mrg char *aarch64_output_scalar_simd_mov_immediate (rtx, scalar_int_mode);
    453  1.7  mrg char *aarch64_output_simd_mov_immediate (rtx, unsigned,
    454  1.7  mrg 			enum simd_immediate_check w = AARCH64_CHECK_MOV);
    455  1.7  mrg char *aarch64_output_sve_mov_immediate (rtx);
    456  1.7  mrg char *aarch64_output_ptrue (machine_mode, char);
    457  1.3  mrg bool aarch64_pad_reg_upward (machine_mode, const_tree, bool);
    458  1.1  mrg bool aarch64_regno_ok_for_base_p (int, bool);
    459  1.1  mrg bool aarch64_regno_ok_for_index_p (int, bool);
    460  1.7  mrg bool aarch64_reinterpret_float_as_int (rtx value, unsigned HOST_WIDE_INT *fail);
    461  1.3  mrg bool aarch64_simd_check_vect_par_cnst_half (rtx op, machine_mode mode,
    462  1.3  mrg 					    bool high);
    463  1.7  mrg bool aarch64_simd_scalar_immediate_valid_for_move (rtx, scalar_int_mode);
    464  1.3  mrg bool aarch64_simd_shift_imm_p (rtx, machine_mode, bool);
    465  1.7  mrg bool aarch64_simd_valid_immediate (rtx, struct simd_immediate_info *,
    466  1.7  mrg 			enum simd_immediate_check w = AARCH64_CHECK_MOV);
    467  1.7  mrg rtx aarch64_check_zero_based_sve_index_immediate (rtx);
    468  1.7  mrg bool aarch64_sve_index_immediate_p (rtx);
    469  1.7  mrg bool aarch64_sve_arith_immediate_p (rtx, bool);
    470  1.7  mrg bool aarch64_sve_bitmask_immediate_p (rtx);
    471  1.7  mrg bool aarch64_sve_dup_immediate_p (rtx);
    472  1.7  mrg bool aarch64_sve_cmp_immediate_p (rtx, bool);
    473  1.7  mrg bool aarch64_sve_float_arith_immediate_p (rtx, bool);
    474  1.7  mrg bool aarch64_sve_float_mul_immediate_p (rtx);
    475  1.6  mrg bool aarch64_split_dimode_const_store (rtx, rtx);
    476  1.1  mrg bool aarch64_symbolic_address_p (rtx);
    477  1.1  mrg bool aarch64_uimm12_shift (HOST_WIDE_INT);
    478  1.3  mrg bool aarch64_use_return_insn_p (void);
    479  1.8  mrg bool aarch64_use_simple_return_insn_p (void);
    480  1.3  mrg const char *aarch64_mangle_builtin_type (const_tree);
    481  1.1  mrg const char *aarch64_output_casesi (rtx *);
    482  1.3  mrg 
    483  1.7  mrg enum aarch64_symbol_type aarch64_classify_symbol (rtx, HOST_WIDE_INT);
    484  1.1  mrg enum aarch64_symbol_type aarch64_classify_tls_symbol (rtx);
    485  1.1  mrg enum reg_class aarch64_regno_regclass (unsigned);
    486  1.1  mrg int aarch64_asm_preferred_eh_data_format (int, int);
    487  1.4  mrg int aarch64_fpconst_pow_of_2 (rtx);
    488  1.3  mrg machine_mode aarch64_hard_regno_caller_save_mode (unsigned, unsigned,
    489  1.3  mrg 						       machine_mode);
    490  1.1  mrg int aarch64_uxt_size (int, HOST_WIDE_INT);
    491  1.4  mrg int aarch64_vec_fpconst_pow_of_2 (rtx);
    492  1.4  mrg rtx aarch64_eh_return_handler_rtx (void);
    493  1.4  mrg rtx aarch64_mask_from_zextract_ops (rtx, rtx);
    494  1.1  mrg const char *aarch64_output_move_struct (rtx *operands);
    495  1.1  mrg rtx aarch64_return_addr (int, rtx);
    496  1.6  mrg rtx aarch64_simd_gen_const_vector_dup (machine_mode, HOST_WIDE_INT);
    497  1.1  mrg bool aarch64_simd_mem_operand_p (rtx);
    498  1.7  mrg bool aarch64_sve_ld1r_operand_p (rtx);
    499  1.7  mrg bool aarch64_sve_ldr_operand_p (rtx);
    500  1.7  mrg bool aarch64_sve_struct_memory_operand_p (rtx);
    501  1.7  mrg rtx aarch64_simd_vect_par_cnst_half (machine_mode, int, bool);
    502  1.1  mrg rtx aarch64_tls_get_addr (void);
    503  1.3  mrg tree aarch64_fold_builtin (tree, int, tree *, bool);
    504  1.1  mrg unsigned aarch64_dbx_register_number (unsigned);
    505  1.1  mrg unsigned aarch64_trampoline_size (void);
    506  1.1  mrg void aarch64_asm_output_labelref (FILE *, const char *);
    507  1.4  mrg void aarch64_cpu_cpp_builtins (cpp_reader *);
    508  1.4  mrg const char * aarch64_gen_far_branch (rtx *, int, const char *, const char *);
    509  1.4  mrg const char * aarch64_output_probe_stack_range (rtx, rtx);
    510  1.8  mrg const char * aarch64_output_probe_sve_stack_clash (rtx, rtx, rtx, rtx);
    511  1.8  mrg void aarch64_err_no_fpadvsimd (machine_mode);
    512  1.1  mrg void aarch64_expand_epilogue (bool);
    513  1.7  mrg void aarch64_expand_mov_immediate (rtx, rtx, rtx (*) (rtx, rtx) = 0);
    514  1.7  mrg void aarch64_emit_sve_pred_move (rtx, rtx, rtx);
    515  1.7  mrg void aarch64_expand_sve_mem_move (rtx, rtx, machine_mode);
    516  1.7  mrg bool aarch64_maybe_expand_sve_subreg_move (rtx, rtx);
    517  1.7  mrg void aarch64_split_sve_subreg_move (rtx, rtx, rtx);
    518  1.1  mrg void aarch64_expand_prologue (void);
    519  1.1  mrg void aarch64_expand_vector_init (rtx, rtx);
    520  1.1  mrg void aarch64_init_cumulative_args (CUMULATIVE_ARGS *, const_tree, rtx,
    521  1.1  mrg 				   const_tree, unsigned);
    522  1.1  mrg void aarch64_init_expanders (void);
    523  1.4  mrg void aarch64_init_simd_builtins (void);
    524  1.3  mrg void aarch64_emit_call_insn (rtx);
    525  1.4  mrg void aarch64_register_pragmas (void);
    526  1.4  mrg void aarch64_relayout_simd_types (void);
    527  1.4  mrg void aarch64_reset_previous_fndecl (void);
    528  1.6  mrg bool aarch64_return_address_signing_enabled (void);
    529  1.8  mrg bool aarch64_bti_enabled (void);
    530  1.4  mrg void aarch64_save_restore_target_globals (tree);
    531  1.8  mrg void aarch64_addti_scratch_regs (rtx, rtx, rtx *,
    532  1.8  mrg 				 rtx *, rtx *,
    533  1.8  mrg 				 rtx *, rtx *,
    534  1.8  mrg 				 rtx *);
    535  1.8  mrg void aarch64_subvti_scratch_regs (rtx, rtx, rtx *,
    536  1.8  mrg 				  rtx *, rtx *,
    537  1.8  mrg 				  rtx *, rtx *, rtx *);
    538  1.8  mrg void aarch64_expand_subvti (rtx, rtx, rtx,
    539  1.8  mrg 			    rtx, rtx, rtx, rtx, bool);
    540  1.8  mrg 
    541  1.1  mrg 
    542  1.1  mrg /* Initialize builtins for SIMD intrinsics.  */
    543  1.1  mrg void init_aarch64_simd_builtins (void);
    544  1.1  mrg 
    545  1.7  mrg void aarch64_simd_emit_reg_reg_move (rtx *, machine_mode, unsigned int);
    546  1.1  mrg 
    547  1.1  mrg /* Expand builtins for SIMD intrinsics.  */
    548  1.1  mrg rtx aarch64_simd_expand_builtin (int, tree, rtx);
    549  1.1  mrg 
    550  1.3  mrg void aarch64_simd_lane_bounds (rtx, HOST_WIDE_INT, HOST_WIDE_INT, const_tree);
    551  1.7  mrg rtx aarch64_endian_lane_rtx (machine_mode, unsigned int);
    552  1.1  mrg 
    553  1.1  mrg void aarch64_split_128bit_move (rtx, rtx);
    554  1.1  mrg 
    555  1.1  mrg bool aarch64_split_128bit_move_p (rtx, rtx);
    556  1.1  mrg 
    557  1.7  mrg bool aarch64_mov128_immediate (rtx);
    558  1.7  mrg 
    559  1.3  mrg void aarch64_split_simd_combine (rtx, rtx, rtx);
    560  1.3  mrg 
    561  1.3  mrg void aarch64_split_simd_move (rtx, rtx);
    562  1.3  mrg 
    563  1.1  mrg /* Check for a legitimate floating point constant for FMOV.  */
    564  1.1  mrg bool aarch64_float_const_representable_p (rtx);
    565  1.1  mrg 
    566  1.8  mrg extern int aarch64_epilogue_uses (int);
    567  1.8  mrg 
    568  1.1  mrg #if defined (RTX_CODE)
    569  1.8  mrg void aarch64_gen_unlikely_cbranch (enum rtx_code, machine_mode cc_mode,
    570  1.8  mrg 				   rtx label_ref);
    571  1.7  mrg bool aarch64_legitimate_address_p (machine_mode, rtx, bool,
    572  1.7  mrg 				   aarch64_addr_query_type = ADDR_QUERY_M);
    573  1.3  mrg machine_mode aarch64_select_cc_mode (RTX_CODE, rtx, rtx);
    574  1.1  mrg rtx aarch64_gen_compare_reg (RTX_CODE, rtx, rtx);
    575  1.1  mrg rtx aarch64_load_tp (rtx);
    576  1.1  mrg 
    577  1.1  mrg void aarch64_expand_compare_and_swap (rtx op[]);
    578  1.1  mrg void aarch64_split_compare_and_swap (rtx op[]);
    579  1.4  mrg 
    580  1.1  mrg void aarch64_split_atomic_op (enum rtx_code, rtx, rtx, rtx, rtx, rtx, rtx);
    581  1.1  mrg 
    582  1.7  mrg bool aarch64_gen_adjusted_ldpstp (rtx *, bool, scalar_mode, RTX_CODE);
    583  1.7  mrg 
    584  1.7  mrg void aarch64_expand_sve_vec_cmp_int (rtx, rtx_code, rtx, rtx);
    585  1.7  mrg bool aarch64_expand_sve_vec_cmp_float (rtx, rtx_code, rtx, rtx, bool);
    586  1.7  mrg void aarch64_expand_sve_vcond (machine_mode, machine_mode, rtx *);
    587  1.1  mrg #endif /* RTX_CODE */
    588  1.1  mrg 
    589  1.1  mrg void aarch64_init_builtins (void);
    590  1.4  mrg 
    591  1.7  mrg bool aarch64_process_target_attr (tree);
    592  1.4  mrg void aarch64_override_options_internal (struct gcc_options *);
    593  1.4  mrg 
    594  1.1  mrg rtx aarch64_expand_builtin (tree exp,
    595  1.1  mrg 			    rtx target,
    596  1.1  mrg 			    rtx subtarget ATTRIBUTE_UNUSED,
    597  1.3  mrg 			    machine_mode mode ATTRIBUTE_UNUSED,
    598  1.1  mrg 			    int ignore ATTRIBUTE_UNUSED);
    599  1.1  mrg tree aarch64_builtin_decl (unsigned, bool ATTRIBUTE_UNUSED);
    600  1.4  mrg tree aarch64_builtin_rsqrt (unsigned int);
    601  1.4  mrg tree aarch64_builtin_vectorized_function (unsigned int, tree, tree);
    602  1.1  mrg 
    603  1.1  mrg extern void aarch64_split_combinev16qi (rtx operands[3]);
    604  1.7  mrg extern void aarch64_expand_vec_perm (rtx, rtx, rtx, rtx, unsigned int);
    605  1.7  mrg extern void aarch64_expand_sve_vec_perm (rtx, rtx, rtx, rtx);
    606  1.3  mrg extern bool aarch64_madd_needs_nop (rtx_insn *);
    607  1.3  mrg extern void aarch64_final_prescan_insn (rtx_insn *);
    608  1.3  mrg void aarch64_atomic_assign_expand_fenv (tree *, tree *, tree *);
    609  1.7  mrg int aarch64_ccmp_mode_to_code (machine_mode mode);
    610  1.1  mrg 
    611  1.3  mrg bool extract_base_offset_in_addr (rtx mem, rtx *base, rtx *offset);
    612  1.7  mrg bool aarch64_operands_ok_for_ldpstp (rtx *, bool, machine_mode);
    613  1.7  mrg bool aarch64_operands_adjust_ok_for_ldpstp (rtx *, bool, scalar_mode);
    614  1.8  mrg void aarch64_swap_ldrstr_operands (rtx *, bool);
    615  1.4  mrg 
    616  1.4  mrg extern void aarch64_asm_output_pool_epilogue (FILE *, const char *,
    617  1.4  mrg 					      tree, HOST_WIDE_INT);
    618  1.4  mrg 
    619  1.8  mrg 
    620  1.8  mrg extern bool aarch64_classify_address (struct aarch64_address_info *, rtx,
    621  1.8  mrg 				      machine_mode, bool,
    622  1.8  mrg 				      aarch64_addr_query_type = ADDR_QUERY_M);
    623  1.8  mrg 
    624  1.4  mrg /* Defined in common/config/aarch64-common.c.  */
    625  1.4  mrg bool aarch64_handle_option (struct gcc_options *, struct gcc_options *,
    626  1.4  mrg 			     const struct cl_decoded_option *, location_t);
    627  1.4  mrg const char *aarch64_rewrite_selected_cpu (const char *name);
    628  1.4  mrg enum aarch64_parse_opt_result aarch64_parse_extension (const char *,
    629  1.8  mrg 						       unsigned long *,
    630  1.8  mrg 						       std::string *);
    631  1.8  mrg void aarch64_get_all_extension_candidates (auto_vec<const char *> *candidates);
    632  1.4  mrg std::string aarch64_get_extension_string_for_isa_flags (unsigned long,
    633  1.4  mrg 							unsigned long);
    634  1.4  mrg 
    635  1.8  mrg /* Defined in aarch64-d.c  */
    636  1.8  mrg extern void aarch64_d_target_versions (void);
    637  1.8  mrg 
    638  1.8  mrg rtl_opt_pass *make_pass_fma_steering (gcc::context *);
    639  1.8  mrg rtl_opt_pass *make_pass_track_speculation (gcc::context *);
    640  1.8  mrg rtl_opt_pass *make_pass_tag_collision_avoidance (gcc::context *);
    641  1.8  mrg rtl_opt_pass *make_pass_insert_bti (gcc::context *ctxt);
    642  1.6  mrg 
    643  1.7  mrg poly_uint64 aarch64_regmode_natural_size (machine_mode);
    644  1.7  mrg 
    645  1.8  mrg bool aarch64_high_bits_all_ones_p (HOST_WIDE_INT);
    646  1.8  mrg 
    647  1.1  mrg #endif /* GCC_AARCH64_PROTOS_H */
    648