[lld] [llvm] [LLD][RISCV] Use ISA mapping symbols for per-region RVC relaxation (PR #201310)
Kito Cheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 24 07:22:50 PDT 2026
================
@@ -890,10 +891,63 @@ void elf::initSymbolAnchors(Ctx &ctx) {
}
}
+struct RISCVRelaxCapability {
+ bool rvc = false; // C or Zca: enables c.j / c.jal relaxation.
+ bool valid = false; // Whether this entry holds a computed result.
+};
+
+class RISCVRelaxCapabilityManager {
----------------
kito-cheng wrote:
Ha, that's the name pop to my brain when I write this patch, anyway I have no preference on this, RISCVRelaxExtensionParser is SGTM, let me take it :)
https://github.com/llvm/llvm-project/pull/201310
More information about the llvm-commits
mailing list