AArch64: Add attributes according to flags in built-in functions [PR94442]
authorxiezhiheng <xiezhiheng@huawei.com>
Fri, 31 Jul 2020 08:52:25 +0000 (09:52 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 31 Jul 2020 08:52:25 +0000 (09:52 +0100)
commit072a8b8fb6e861d8ac2db847bcc81dbcb1ef1b35
tree0eed73839f7a89e49f2b2c33493baa8c6bf8c92b
parent1212cfad09378bc85860a7de22dde0cf7a19fd01
AArch64: Add attributes according to flags in built-in functions [PR94442]

2020-07-31  Zhiheng Xie  <xiezhiheng@huawei.com>

gcc/ChangeLog:

* config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
Add new argument ATTRS.
(aarch64_call_properties): New function.
(aarch64_modifies_global_state_p): Likewise.
(aarch64_reads_global_state_p): Likewise.
(aarch64_could_trap_p): Likewise.
(aarch64_add_attribute): Likewise.
(aarch64_get_attributes): Likewise.
(aarch64_init_simd_builtins): Add attributes for each built-in function.
gcc/config/aarch64/aarch64-builtins.c