[PATCH] D153541: [JITLink][RISCV] Support relaxable edges without relaxation pass
Job Noorman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 26 00:45:02 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf4bb62e85c16: [JITLink][RISCV] Support relaxable edges without relaxation pass (authored by jobnoorman).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153541/new/
https://reviews.llvm.org/D153541
Files:
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
Index: llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
===================================================================
--- llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
+++ llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
@@ -233,6 +233,8 @@
(RawInstr & 0xFFF) | Imm20 | Imm10_1 | Imm11 | Imm19_12;
break;
}
+ case CallRelaxable:
+ // Treat as R_RISCV_CALL when the relaxation pass did not run
case R_RISCV_CALL_PLT:
case R_RISCV_CALL: {
int64_t Value = E.getTarget().getAddress() + E.getAddend() - FixupAddress;
@@ -451,6 +453,9 @@
*(little32_t *)FixupPtr = Word32;
break;
}
+ case AlignRelaxable:
+ // Ignore when the relaxation pass did not run
+ break;
}
return Error::success();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153541.534446.patch
Type: text/x-patch
Size: 781 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230626/4f6d43c9/attachment.bin>
More information about the llvm-commits
mailing list