aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-12-21 06:57:04 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-12-21 06:57:04 +0000
commita97d8b982793ba5bf1e54a41d9bb110182b8baf8 (patch)
tree62aaefa775450b5e1cecb47fd10b0360dec12e5a /gcc/expr.c
parent75b7462e1ac607a9107ef8a158dafdef0728f01d (diff)
downloadgcc-a97d8b982793ba5bf1e54a41d9bb110182b8baf8.zip
gcc-a97d8b982793ba5bf1e54a41d9bb110182b8baf8.tar.gz
gcc-a97d8b982793ba5bf1e54a41d9bb110182b8baf8.tar.bz2
[AArch64] Tweak aarch64_classify_address interface
Previously aarch64_classify_address used an rtx code to distinguish LDP/STP addresses from normal addresses; the code was PARALLEL to select LDP/STP and anything else to select normal addresses. This patch replaces that parameter with a dedicated enum. The SVE port will add another enum value that didn't map naturally to an rtx code. 2017-12-21 Richard Sandiford <richard.sandiford@linaro.org> Alan Hayward <alan.hayward@arm.com> David Sherwood <david.sherwood@arm.com> gcc/ * config/aarch64/aarch64-protos.h (aarch64_addr_query_type): New enum. (aarch64_legitimate_address_p): Use it instead of an rtx code, as an optional final parameter. * config/aarch64/aarch64.c (aarch64_classify_address): Likewise. (aarch64_legitimate_address_p): Likewise. (aarch64_print_address_internal): Take an aarch64_addr_query_type instead of an rtx code. (aarch64_address_valid_for_prefetch_p): Update calls accordingly. (aarch64_legitimate_address_hook_p): Likewise. (aarch64_print_ldpstp_address): Likewise. (aarch64_print_operand_address): Likewise. (aarch64_address_cost): Likewise. * config/aarch64/constraints.md (Uml, Umq, Ump, Utq): Likewise. * config/aarch64/predicates.md (aarch64_mem_pair_operand): Likewise. (aarch64_mem_pair_lanes_operand): Likewise. Co-Authored-By: Alan Hayward <alan.hayward@arm.com> Co-Authored-By: David Sherwood <david.sherwood@arm.com> From-SVN: r255911
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions