[all-commits] [llvm/llvm-project] c83c01: [RISCV] Vendor Relocations for Xqci extension (#13...
Sudharsan Veeravalli via All-commits
all-commits at lists.llvm.org
Wed Jun 4 08:31:19 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c83c01f325e38ed52276ab3a4741178f3f411ca0
https://github.com/llvm/llvm-project/commit/c83c01f325e38ed52276ab3a4741178f3f411ca0
Author: Sudharsan Veeravalli <quic_svs at quicinc.com>
Date: 2025-06-04 (Wed, 04 Jun 2025)
Changed paths:
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h
A llvm/test/MC/RISCV/vendor-symbol.s
M llvm/test/MC/RISCV/xqcibi-relocations.s
M llvm/test/MC/RISCV/xqcilb-relocations.s
M llvm/test/MC/RISCV/xqcili-relocations.s
Log Message:
-----------
[RISCV] Vendor Relocations for Xqci extension (#135400)
This patch implements vendor relocation support for RISC-V, starting
with the Xqci extensions.
Vendor Relocations need to emit the vendor symbol, and add an
`R_RISCV_VENDOR` relocation against that symbol before the specific
vendor relocation itself.
This patch adds a `maybeAddVendorReloc` function which is called from
`addReloc`, to implement this functionality. Vendor identifier symbols
are cached, so that at most one is emitted per vendor identifier.
Vendor identifiers symbols do not interfere with identically named
symbols used by assembly.
Co-authored-by: Sam Elliott <quic_aelliott at quicinc.com>
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