[all-commits] [llvm/llvm-project] 526dbc: [lld] Support merging RISC-V Atomics ABI attribute...
Paul Kirth via All-commits
all-commits at lists.llvm.org
Mon Jul 8 13:26:01 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 526dbc1b933d111db1e564631690914580e7e429
https://github.com/llvm/llvm-project/commit/526dbc1b933d111db1e564631690914580e7e429
Author: Paul Kirth <paulkirth at google.com>
Date: 2024-07-08 (Mon, 08 Jul 2024)
Changed paths:
M lld/ELF/Arch/RISCV.cpp
M lld/test/ELF/riscv-attributes.s
Log Message:
-----------
[lld] Support merging RISC-V Atomics ABI attributes (#97347)
This patch adds support for merging the atomic_abi attribute, specified
in
https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-elf.adoc#tag_riscv_atomic_abi-14-uleb128version,
to LLD.
The atomics_abi tag merging is conducted as follows:
UNKNOWN is safe to merge with all other values.
A6C is compatible with A6S, and results in the A6C ABI.
A6C is incompatible with A7, and results in an error.
A6S and A7 are compatible, and merging results in the A7 ABI.
Note: the A7 is not yet supported in either LLVM or in any current
hardware, and is therefore omitted from attribute generation in
RISCVTargetStreamer.
LLD support was split from
https://github.com/llvm/llvm-project/pull/90266
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list