diff options
author | ZhaoQi <zhaoqi01@loongson.cn> | 2025-01-24 14:24:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-24 14:24:01 +0800 |
commit | 9dd5aed4edf029d66f0c25e6ae6fae3dbb5870d8 (patch) | |
tree | 877ffce2cc73e0d44cea2d2740700f2f7bb6a960 /llvm/lib/CodeGen/MachineFunctionPass.cpp | |
parent | a9c61e0d7655a11f45f8e94b9481193fba11302e (diff) | |
download | llvm-9dd5aed4edf029d66f0c25e6ae6fae3dbb5870d8.zip llvm-9dd5aed4edf029d66f0c25e6ae6fae3dbb5870d8.tar.gz llvm-9dd5aed4edf029d66f0c25e6ae6fae3dbb5870d8.tar.bz2 |
[JITLink][LoongArch] Support R_LARCH_ALIGN relaxation (#122259)
Linker relaxation is not implemented for jitlink now. But if
relaxation is enabled by clang, R_LARCH_RELAX and
R_LARCH_ALIGN relocations will be emitted.
This commit adapts lld's algorithm to jitlink. Currently, only
relaxing R_LARCH_ALIGN is implemented. Other relaxable
relocs can be implemented in the future.
Without this, interpreting C++ code using clang-repl or running
ir using lli when relaxation is enabled will occur error: `JIT
session error: Unsupported loongarch relocation:102: R_LARCH_ALIGN`.
Similar to https://github.com/llvm/llvm-project/commit/310473c536dd4837934832d1b5454d212f15d5cc but only implement align.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions