1 /* Machine description for AArch64 architecture.
2 Copyright (C) 2009-2019 Free Software Foundation, Inc.
3 Contributed by ARM Ltd.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
12 GCC is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
22 #ifndef GCC_AARCH64_PROTOS_H
23 #define GCC_AARCH64_PROTOS_H
27 /* SYMBOL_SMALL_ABSOLUTE: Generate symbol accesses through
28 high and lo relocs that calculate the base address using a PC
30 So to get the address of foo, we generate
34 To load or store something to foo, we could use the corresponding
35 load store variants that generate an
36 ldr x0, [x0,:lo12:foo]
38 str x1, [x0, :lo12:foo]
40 This corresponds to the small code model of the compiler.
42 SYMBOL_SMALL_GOT_4G: Similar to the one above but this
43 gives us the GOT entry of the symbol being referred to :
44 Thus calculating the GOT entry for foo is done using the
45 following sequence of instructions. The ADRP instruction
46 gets us to the page containing the GOT entry of the symbol
47 and the got_lo12 gets us the actual offset in it, together
48 the base and offset, we can address 4G size GOT table.
51 ldr x0, [x0, :gotoff_lo12:foo]
53 This corresponds to the small PIC model of the compiler.
55 SYMBOL_SMALL_GOT_28K: Similar to SYMBOL_SMALL_GOT_4G, but used for symbol
56 restricted within 28K GOT table size.
58 ldr reg, [gp, #:gotpage_lo15:sym]
60 This corresponds to -fpic model for small memory model of the compiler.
70 Each of these represents a thread-local symbol, and corresponds to the
71 thread local storage relocation operator for the symbol being referred to.
75 Generate symbol accesses as a PC relative address using a single
76 instruction. To compute the address of symbol foo, we generate:
82 Generate symbol accesses via the GOT using a single PC relative
83 instruction. To compute the address of symbol foo, we generate:
87 The value of foo can subsequently read using:
91 SYMBOL_FORCE_TO_MEM : Global variables are addressed using
92 constant pool. All variable addresses are spilled into constant
93 pools. The constant pools themselves are addressed using PC
94 relative accesses. This only works for the large code model.
96 enum aarch64_symbol_type
98 SYMBOL_SMALL_ABSOLUTE
,
102 SYMBOL_SMALL_TLSDESC
,
104 SYMBOL_TINY_ABSOLUTE
,
114 /* Classifies the type of an address query.
117 Query what is valid for an "m" constraint and a memory_operand
118 (the rules are the same for both).
121 Query what is valid for a load/store pair.
124 Query what is valid for a load/store pair, but narrow the incoming mode
125 for address checking. This is used for the store_pair_lanes patterns.
128 Query what is valid for at least one memory constraint, which may
129 allow things that "m" doesn't. For example, the SVE LDR and STR
130 addressing modes allow a wider range of immediate offsets than "m"
132 enum aarch64_addr_query_type
{
135 ADDR_QUERY_LDP_STP_N
,
139 /* A set of tuning parameters contains references to size and time
140 cost models and vectors for address cost calculations, register
141 move costs and memory move costs. */
143 /* Scaled addressing modes can vary cost depending on the mode of the
144 value to be loaded/stored. QImode values cannot use scaled
147 struct scale_addr_mode_cost
155 /* Additional cost for addresses. */
156 struct cpu_addrcost_table
158 const struct scale_addr_mode_cost addr_scale_costs
;
159 const int pre_modify
;
160 const int post_modify
;
161 const int register_offset
;
162 const int register_sextend
;
163 const int register_zextend
;
164 const int imm_offset
;
167 /* Additional costs for register copies. Cost is for one register. */
168 struct cpu_regmove_cost
176 /* Cost for vector insn classes. */
177 struct cpu_vector_cost
179 const int scalar_int_stmt_cost
; /* Cost of any int scalar operation,
180 excluding load and store. */
181 const int scalar_fp_stmt_cost
; /* Cost of any fp scalar operation,
182 excluding load and store. */
183 const int scalar_load_cost
; /* Cost of scalar load. */
184 const int scalar_store_cost
; /* Cost of scalar store. */
185 const int vec_int_stmt_cost
; /* Cost of any int vector operation,
186 excluding load, store, permute,
188 scalar-to-vector operation. */
189 const int vec_fp_stmt_cost
; /* Cost of any fp vector operation,
190 excluding load, store, permute,
192 scalar-to-vector operation. */
193 const int vec_permute_cost
; /* Cost of permute operation. */
194 const int vec_to_scalar_cost
; /* Cost of vec-to-scalar operation. */
195 const int scalar_to_vec_cost
; /* Cost of scalar-to-vector
197 const int vec_align_load_cost
; /* Cost of aligned vector load. */
198 const int vec_unalign_load_cost
; /* Cost of unaligned vector load. */
199 const int vec_unalign_store_cost
; /* Cost of unaligned vector store. */
200 const int vec_store_cost
; /* Cost of vector store. */
201 const int cond_taken_branch_cost
; /* Cost of taken branch. */
202 const int cond_not_taken_branch_cost
; /* Cost of not taken branch. */
206 struct cpu_branch_cost
208 const int predictable
; /* Predictable branch or optimizing for size. */
209 const int unpredictable
; /* Unpredictable branch or optimizing for speed. */
212 /* Control approximate alternatives to certain FP operators. */
213 #define AARCH64_APPROX_MODE(MODE) \
214 ((MIN_MODE_FLOAT <= (MODE) && (MODE) <= MAX_MODE_FLOAT) \
215 ? (1 << ((MODE) - MIN_MODE_FLOAT)) \
216 : (MIN_MODE_VECTOR_FLOAT <= (MODE) && (MODE) <= MAX_MODE_VECTOR_FLOAT) \
217 ? (1 << ((MODE) - MIN_MODE_VECTOR_FLOAT \
218 + MAX_MODE_FLOAT - MIN_MODE_FLOAT + 1)) \
220 #define AARCH64_APPROX_NONE (0)
221 #define AARCH64_APPROX_ALL (-1)
223 /* Allowed modes for approximations. */
224 struct cpu_approx_modes
226 const unsigned int division
; /* Division. */
227 const unsigned int sqrt
; /* Square root. */
228 const unsigned int recip_sqrt
; /* Reciprocal square root. */
231 /* Cache prefetch settings for prefetch-loop-arrays. */
232 struct cpu_prefetch_tune
235 const int l1_cache_size
;
236 const int l1_cache_line_size
;
237 const int l2_cache_size
;
238 /* Whether software prefetch hints should be issued for non-constant
240 const bool prefetch_dynamic_strides
;
241 /* The minimum constant stride beyond which we should use prefetch
243 const int minimum_stride
;
244 const int default_opt_level
;
249 const struct cpu_cost_table
*insn_extra_cost
;
250 const struct cpu_addrcost_table
*addr_cost
;
251 const struct cpu_regmove_cost
*regmove_cost
;
252 const struct cpu_vector_cost
*vec_costs
;
253 const struct cpu_branch_cost
*branch_costs
;
254 const struct cpu_approx_modes
*approx_modes
;
255 /* Width of the SVE registers or SVE_NOT_IMPLEMENTED if not applicable.
256 Only used for tuning decisions, does not disable VLA
258 enum aarch64_sve_vector_bits_enum sve_width
;
261 unsigned int fusible_ops
;
262 const char *function_align
;
263 const char *jump_align
;
264 const char *loop_align
;
265 int int_reassoc_width
;
266 int fp_reassoc_width
;
267 int vec_reassoc_width
;
268 int min_div_recip_mul_sf
;
269 int min_div_recip_mul_df
;
270 /* Value for aarch64_case_values_threshold; or 0 for the default. */
271 unsigned int max_case_values
;
272 /* An enum specifying how to take into account CPU autoprefetch capabilities
273 during instruction scheduling:
274 - AUTOPREFETCHER_OFF: Do not take autoprefetch capabilities into account.
275 - AUTOPREFETCHER_WEAK: Attempt to sort sequences of loads/store in order of
276 offsets but allow the pipeline hazard recognizer to alter that order to
277 maximize multi-issue opportunities.
278 - AUTOPREFETCHER_STRONG: Attempt to sort sequences of loads/store in order of
279 offsets and prefer this even if it restricts multi-issue opportunities. */
281 enum aarch64_autoprefetch_model
285 AUTOPREFETCHER_STRONG
286 } autoprefetcher_model
;
288 unsigned int extra_tuning_flags
;
290 /* Place prefetch struct pointer at the end to enable type checking
291 errors when tune_params misses elements (e.g., from erroneous merges). */
292 const struct cpu_prefetch_tune
*prefetch
;
295 /* Classifies an address.
298 A simple base register plus immediate offset.
301 A base register indexed by immediate offset with writeback.
304 A base register indexed by (optionally scaled) register.
307 A base register indexed by (optionally scaled) zero-extended register.
310 A base register indexed by (optionally scaled) sign-extended register.
313 A LO_SUM rtx with a base register and "LO12" symbol relocation.
316 A constant symbolic address, in pc-relative literal pool. */
318 enum aarch64_address_type
{
328 /* Address information. */
329 struct aarch64_address_info
{
330 enum aarch64_address_type type
;
333 poly_int64 const_offset
;
335 enum aarch64_symbol_type symbol_type
;
338 #define AARCH64_FUSION_PAIR(x, name) \
339 AARCH64_FUSE_##name##_index,
340 /* Supported fusion operations. */
341 enum aarch64_fusion_pairs_index
343 #include "aarch64-fusion-pairs.def"
344 AARCH64_FUSE_index_END
347 #define AARCH64_FUSION_PAIR(x, name) \
348 AARCH64_FUSE_##name = (1u << AARCH64_FUSE_##name##_index),
349 /* Supported fusion operations. */
350 enum aarch64_fusion_pairs
352 AARCH64_FUSE_NOTHING
= 0,
353 #include "aarch64-fusion-pairs.def"
354 AARCH64_FUSE_ALL
= (1u << AARCH64_FUSE_index_END
) - 1
357 #define AARCH64_EXTRA_TUNING_OPTION(x, name) \
358 AARCH64_EXTRA_TUNE_##name##_index,
359 /* Supported tuning flags indexes. */
360 enum aarch64_extra_tuning_flags_index
362 #include "aarch64-tuning-flags.def"
363 AARCH64_EXTRA_TUNE_index_END
367 #define AARCH64_EXTRA_TUNING_OPTION(x, name) \
368 AARCH64_EXTRA_TUNE_##name = (1u << AARCH64_EXTRA_TUNE_##name##_index),
369 /* Supported tuning flags. */
370 enum aarch64_extra_tuning_flags
372 AARCH64_EXTRA_TUNE_NONE
= 0,
373 #include "aarch64-tuning-flags.def"
374 AARCH64_EXTRA_TUNE_ALL
= (1u << AARCH64_EXTRA_TUNE_index_END
) - 1
377 /* Enum describing the various ways that the
378 aarch64_parse_{arch,tune,cpu,extension} functions can fail.
379 This way their callers can choose what kind of error to give. */
381 enum aarch64_parse_opt_result
383 AARCH64_PARSE_OK
, /* Parsing was successful. */
384 AARCH64_PARSE_MISSING_ARG
, /* Missing argument. */
385 AARCH64_PARSE_INVALID_FEATURE
, /* Invalid feature modifier. */
386 AARCH64_PARSE_INVALID_ARG
/* Invalid arch, tune, cpu arg. */
389 /* Enum to distinguish which type of check is to be done in
390 aarch64_simd_valid_immediate. This is used as a bitmask where
391 AARCH64_CHECK_MOV has both bits set. Thus AARCH64_CHECK_MOV will
392 perform all checks. Adding new types would require changes accordingly. */
393 enum simd_immediate_check
{
394 AARCH64_CHECK_ORR
= 1 << 0,
395 AARCH64_CHECK_BIC
= 1 << 1,
396 AARCH64_CHECK_MOV
= AARCH64_CHECK_ORR
| AARCH64_CHECK_BIC
399 /* The key type that -msign-return-address should use. */
400 enum aarch64_key_type
{
405 extern enum aarch64_key_type aarch64_ra_sign_key
;
407 extern struct tune_params aarch64_tune_params
;
409 void aarch64_post_cfi_startproc (void);
410 poly_int64
aarch64_initial_elimination_offset (unsigned, unsigned);
411 int aarch64_get_condition_code (rtx
);
412 bool aarch64_address_valid_for_prefetch_p (rtx
, bool);
413 bool aarch64_bitmask_imm (HOST_WIDE_INT val
, machine_mode
);
414 unsigned HOST_WIDE_INT
aarch64_and_split_imm1 (HOST_WIDE_INT val_in
);
415 unsigned HOST_WIDE_INT
aarch64_and_split_imm2 (HOST_WIDE_INT val_in
);
416 bool aarch64_and_bitmask_imm (unsigned HOST_WIDE_INT val_in
, machine_mode mode
);
417 int aarch64_branch_cost (bool, bool);
418 enum aarch64_symbol_type
aarch64_classify_symbolic_expression (rtx
);
419 bool aarch64_can_const_movi_rtx_p (rtx x
, machine_mode mode
);
420 bool aarch64_const_vec_all_same_int_p (rtx
, HOST_WIDE_INT
);
421 bool aarch64_const_vec_all_same_in_range_p (rtx
, HOST_WIDE_INT
,
423 bool aarch64_constant_address_p (rtx
);
424 bool aarch64_emit_approx_div (rtx
, rtx
, rtx
);
425 bool aarch64_emit_approx_sqrt (rtx
, rtx
, bool);
426 void aarch64_expand_call (rtx
, rtx
, bool);
427 bool aarch64_expand_movmem (rtx
*);
428 bool aarch64_float_const_zero_rtx_p (rtx
);
429 bool aarch64_float_const_rtx_p (rtx
);
430 bool aarch64_function_arg_regno_p (unsigned);
431 bool aarch64_fusion_enabled_p (enum aarch64_fusion_pairs
);
432 bool aarch64_gen_movmemqi (rtx
*);
433 bool aarch64_gimple_fold_builtin (gimple_stmt_iterator
*);
434 bool aarch64_is_extend_from_extract (scalar_int_mode
, rtx
, rtx
);
435 bool aarch64_is_long_call_p (rtx
);
436 bool aarch64_is_noplt_call_p (rtx
);
437 bool aarch64_label_mentioned_p (rtx
);
438 void aarch64_declare_function_name (FILE *, const char*, tree
);
439 void aarch64_asm_output_alias (FILE *, const tree
, const tree
);
440 void aarch64_asm_output_external (FILE *, tree
, const char*);
441 bool aarch64_legitimate_pic_operand_p (rtx
);
442 bool aarch64_mask_and_shift_for_ubfiz_p (scalar_int_mode
, rtx
, rtx
);
443 bool aarch64_masks_and_shift_for_bfi_p (scalar_int_mode
, unsigned HOST_WIDE_INT
,
444 unsigned HOST_WIDE_INT
,
445 unsigned HOST_WIDE_INT
);
446 bool aarch64_zero_extend_const_eq (machine_mode
, rtx
, machine_mode
, rtx
);
447 bool aarch64_move_imm (HOST_WIDE_INT
, machine_mode
);
448 opt_machine_mode
aarch64_sve_pred_mode (unsigned int);
449 bool aarch64_sve_cnt_immediate_p (rtx
);
450 bool aarch64_sve_addvl_addpl_immediate_p (rtx
);
451 bool aarch64_sve_inc_dec_immediate_p (rtx
);
452 int aarch64_add_offset_temporaries (rtx
);
453 void aarch64_split_add_offset (scalar_int_mode
, rtx
, rtx
, rtx
, rtx
, rtx
);
454 bool aarch64_mov_operand_p (rtx
, machine_mode
);
455 rtx
aarch64_reverse_mask (machine_mode
, unsigned int);
456 bool aarch64_offset_7bit_signed_scaled_p (machine_mode
, poly_int64
);
457 bool aarch64_offset_9bit_signed_unscaled_p (machine_mode
, poly_int64
);
458 char *aarch64_output_sve_cnt_immediate (const char *, const char *, rtx
);
459 char *aarch64_output_sve_addvl_addpl (rtx
, rtx
, rtx
);
460 char *aarch64_output_sve_inc_dec_immediate (const char *, rtx
);
461 char *aarch64_output_scalar_simd_mov_immediate (rtx
, scalar_int_mode
);
462 char *aarch64_output_simd_mov_immediate (rtx
, unsigned,
463 enum simd_immediate_check w
= AARCH64_CHECK_MOV
);
464 char *aarch64_output_sve_mov_immediate (rtx
);
465 char *aarch64_output_ptrue (machine_mode
, char);
466 bool aarch64_pad_reg_upward (machine_mode
, const_tree
, bool);
467 bool aarch64_regno_ok_for_base_p (int, bool);
468 bool aarch64_regno_ok_for_index_p (int, bool);
469 bool aarch64_reinterpret_float_as_int (rtx value
, unsigned HOST_WIDE_INT
*fail
);
470 bool aarch64_simd_check_vect_par_cnst_half (rtx op
, machine_mode mode
,
472 bool aarch64_simd_scalar_immediate_valid_for_move (rtx
, scalar_int_mode
);
473 bool aarch64_simd_shift_imm_p (rtx
, machine_mode
, bool);
474 bool aarch64_simd_valid_immediate (rtx
, struct simd_immediate_info
*,
475 enum simd_immediate_check w
= AARCH64_CHECK_MOV
);
476 rtx
aarch64_check_zero_based_sve_index_immediate (rtx
);
477 bool aarch64_sve_index_immediate_p (rtx
);
478 bool aarch64_sve_arith_immediate_p (rtx
, bool);
479 bool aarch64_sve_bitmask_immediate_p (rtx
);
480 bool aarch64_sve_dup_immediate_p (rtx
);
481 bool aarch64_sve_cmp_immediate_p (rtx
, bool);
482 bool aarch64_sve_float_arith_immediate_p (rtx
, bool);
483 bool aarch64_sve_float_mul_immediate_p (rtx
);
484 bool aarch64_split_dimode_const_store (rtx
, rtx
);
485 bool aarch64_symbolic_address_p (rtx
);
486 bool aarch64_uimm12_shift (HOST_WIDE_INT
);
487 bool aarch64_use_return_insn_p (void);
488 bool aarch64_use_simple_return_insn_p (void);
489 const char *aarch64_mangle_builtin_type (const_tree
);
490 const char *aarch64_output_casesi (rtx
*);
492 enum aarch64_symbol_type
aarch64_classify_symbol (rtx
, HOST_WIDE_INT
);
493 enum aarch64_symbol_type
aarch64_classify_tls_symbol (rtx
);
494 enum reg_class
aarch64_regno_regclass (unsigned);
495 int aarch64_asm_preferred_eh_data_format (int, int);
496 int aarch64_fpconst_pow_of_2 (rtx
);
497 machine_mode
aarch64_hard_regno_caller_save_mode (unsigned, unsigned,
499 int aarch64_uxt_size (int, HOST_WIDE_INT
);
500 int aarch64_vec_fpconst_pow_of_2 (rtx
);
501 rtx
aarch64_eh_return_handler_rtx (void);
502 rtx
aarch64_mask_from_zextract_ops (rtx
, rtx
);
503 const char *aarch64_output_move_struct (rtx
*operands
);
504 rtx
aarch64_return_addr (int, rtx
);
505 rtx
aarch64_simd_gen_const_vector_dup (machine_mode
, HOST_WIDE_INT
);
506 bool aarch64_simd_mem_operand_p (rtx
);
507 bool aarch64_sve_ld1r_operand_p (rtx
);
508 bool aarch64_sve_ldr_operand_p (rtx
);
509 bool aarch64_sve_struct_memory_operand_p (rtx
);
510 rtx
aarch64_simd_vect_par_cnst_half (machine_mode
, int, bool);
511 rtx
aarch64_tls_get_addr (void);
512 tree
aarch64_fold_builtin (tree
, int, tree
*, bool);
513 unsigned aarch64_dbx_register_number (unsigned);
514 unsigned aarch64_trampoline_size (void);
515 void aarch64_asm_output_labelref (FILE *, const char *);
516 void aarch64_cpu_cpp_builtins (cpp_reader
*);
517 const char * aarch64_gen_far_branch (rtx
*, int, const char *, const char *);
518 const char * aarch64_output_probe_stack_range (rtx
, rtx
);
519 const char * aarch64_output_probe_sve_stack_clash (rtx
, rtx
, rtx
, rtx
);
520 void aarch64_err_no_fpadvsimd (machine_mode
);
521 void aarch64_expand_epilogue (bool);
522 void aarch64_expand_mov_immediate (rtx
, rtx
, rtx (*) (rtx
, rtx
) = 0);
523 rtx
aarch64_ptrue_reg (machine_mode
);
524 rtx
aarch64_pfalse_reg (machine_mode
);
525 void aarch64_emit_sve_pred_move (rtx
, rtx
, rtx
);
526 void aarch64_expand_sve_mem_move (rtx
, rtx
, machine_mode
);
527 bool aarch64_maybe_expand_sve_subreg_move (rtx
, rtx
);
528 void aarch64_split_sve_subreg_move (rtx
, rtx
, rtx
);
529 void aarch64_expand_prologue (void);
530 void aarch64_expand_vector_init (rtx
, rtx
);
531 void aarch64_sve_expand_vector_init (rtx
, rtx
);
532 void aarch64_init_cumulative_args (CUMULATIVE_ARGS
*, const_tree
, rtx
,
533 const_tree
, unsigned);
534 void aarch64_init_expanders (void);
535 void aarch64_init_simd_builtins (void);
536 void aarch64_emit_call_insn (rtx
);
537 void aarch64_register_pragmas (void);
538 void aarch64_relayout_simd_types (void);
539 void aarch64_reset_previous_fndecl (void);
540 bool aarch64_return_address_signing_enabled (void);
541 bool aarch64_bti_enabled (void);
542 void aarch64_save_restore_target_globals (tree
);
543 void aarch64_addti_scratch_regs (rtx
, rtx
, rtx
*,
547 void aarch64_subvti_scratch_regs (rtx
, rtx
, rtx
*,
549 rtx
*, rtx
*, rtx
*);
550 void aarch64_expand_subvti (rtx
, rtx
, rtx
,
551 rtx
, rtx
, rtx
, rtx
, bool);
554 /* Initialize builtins for SIMD intrinsics. */
555 void init_aarch64_simd_builtins (void);
557 void aarch64_simd_emit_reg_reg_move (rtx
*, machine_mode
, unsigned int);
559 /* Expand builtins for SIMD intrinsics. */
560 rtx
aarch64_simd_expand_builtin (int, tree
, rtx
);
562 void aarch64_simd_lane_bounds (rtx
, HOST_WIDE_INT
, HOST_WIDE_INT
, const_tree
);
563 rtx
aarch64_endian_lane_rtx (machine_mode
, unsigned int);
565 void aarch64_split_128bit_move (rtx
, rtx
);
567 bool aarch64_split_128bit_move_p (rtx
, rtx
);
569 bool aarch64_mov128_immediate (rtx
);
571 void aarch64_split_simd_combine (rtx
, rtx
, rtx
);
573 void aarch64_split_simd_move (rtx
, rtx
);
575 /* Check for a legitimate floating point constant for FMOV. */
576 bool aarch64_float_const_representable_p (rtx
);
578 extern int aarch64_epilogue_uses (int);
580 #if defined (RTX_CODE)
581 void aarch64_gen_unlikely_cbranch (enum rtx_code
, machine_mode cc_mode
,
583 bool aarch64_legitimate_address_p (machine_mode
, rtx
, bool,
584 aarch64_addr_query_type
= ADDR_QUERY_M
);
585 machine_mode
aarch64_select_cc_mode (RTX_CODE
, rtx
, rtx
);
586 rtx
aarch64_gen_compare_reg (RTX_CODE
, rtx
, rtx
);
587 rtx
aarch64_load_tp (rtx
);
589 void aarch64_expand_compare_and_swap (rtx op
[]);
590 void aarch64_split_compare_and_swap (rtx op
[]);
592 void aarch64_split_atomic_op (enum rtx_code
, rtx
, rtx
, rtx
, rtx
, rtx
, rtx
);
594 bool aarch64_gen_adjusted_ldpstp (rtx
*, bool, scalar_mode
, RTX_CODE
);
596 void aarch64_expand_sve_vec_cmp_int (rtx
, rtx_code
, rtx
, rtx
);
597 bool aarch64_expand_sve_vec_cmp_float (rtx
, rtx_code
, rtx
, rtx
, bool);
598 void aarch64_expand_sve_vcond (machine_mode
, machine_mode
, rtx
*);
599 #endif /* RTX_CODE */
601 void aarch64_init_builtins (void);
603 bool aarch64_process_target_attr (tree
);
604 void aarch64_override_options_internal (struct gcc_options
*);
606 rtx
aarch64_expand_builtin (tree exp
,
608 rtx subtarget ATTRIBUTE_UNUSED
,
609 machine_mode mode ATTRIBUTE_UNUSED
,
610 int ignore ATTRIBUTE_UNUSED
);
611 tree
aarch64_builtin_decl (unsigned, bool ATTRIBUTE_UNUSED
);
612 tree
aarch64_builtin_rsqrt (unsigned int);
613 tree
aarch64_builtin_vectorized_function (unsigned int, tree
, tree
);
615 extern void aarch64_split_combinev16qi (rtx operands
[3]);
616 extern void aarch64_expand_vec_perm (rtx
, rtx
, rtx
, rtx
, unsigned int);
617 extern void aarch64_expand_sve_vec_perm (rtx
, rtx
, rtx
, rtx
);
618 extern bool aarch64_madd_needs_nop (rtx_insn
*);
619 extern void aarch64_final_prescan_insn (rtx_insn
*);
620 void aarch64_atomic_assign_expand_fenv (tree
*, tree
*, tree
*);
621 int aarch64_ccmp_mode_to_code (machine_mode mode
);
623 bool extract_base_offset_in_addr (rtx mem
, rtx
*base
, rtx
*offset
);
624 bool aarch64_operands_ok_for_ldpstp (rtx
*, bool, machine_mode
);
625 bool aarch64_operands_adjust_ok_for_ldpstp (rtx
*, bool, scalar_mode
);
626 void aarch64_swap_ldrstr_operands (rtx
*, bool);
628 extern void aarch64_asm_output_pool_epilogue (FILE *, const char *,
629 tree
, HOST_WIDE_INT
);
632 extern bool aarch64_classify_address (struct aarch64_address_info
*, rtx
,
634 aarch64_addr_query_type
= ADDR_QUERY_M
);
636 /* Defined in common/config/aarch64-common.c. */
637 bool aarch64_handle_option (struct gcc_options
*, struct gcc_options
*,
638 const struct cl_decoded_option
*, location_t
);
639 const char *aarch64_rewrite_selected_cpu (const char *name
);
640 enum aarch64_parse_opt_result
aarch64_parse_extension (const char *,
643 void aarch64_get_all_extension_candidates (auto_vec
<const char *> *candidates
);
644 std::string
aarch64_get_extension_string_for_isa_flags (uint64_t, uint64_t);
646 /* Defined in aarch64-d.c */
647 extern void aarch64_d_target_versions (void);
649 rtl_opt_pass
*make_pass_fma_steering (gcc::context
*);
650 rtl_opt_pass
*make_pass_track_speculation (gcc::context
*);
651 rtl_opt_pass
*make_pass_tag_collision_avoidance (gcc::context
*);
652 rtl_opt_pass
*make_pass_insert_bti (gcc::context
*ctxt
);
654 poly_uint64
aarch64_regmode_natural_size (machine_mode
);
656 bool aarch64_high_bits_all_ones_p (HOST_WIDE_INT
);
658 #endif /* GCC_AARCH64_PROTOS_H */