[PATCH] D132818: [LoongArch] Fixup value adjustment in applyFixup
Ray Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 28 20:03:46 PDT 2022
wangleiat created this revision.
wangleiat added reviewers: xen0n, SixWeining, xry111, gonglingqin, MaskRay, fhahn.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
wangleiat requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
A complete implementation of `applyFixup` for D132323 <https://reviews.llvm.org/D132323>.
Makes `LoongArchAsmBackend::shouldForceRelocation` to determine
if the relocation types must be forced.
This patch also adds range and alignment checks for `b*` instructions'
operands, at which point the offset to a label is known.
Depends on D132633 <https://reviews.llvm.org/D132633>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132818
Files:
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp
llvm/test/MC/LoongArch/Relocations/fixups-diagnostics.s
llvm/test/MC/LoongArch/Relocations/fixups-invalid.s
llvm/test/MC/LoongArch/Relocations/fixups.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132818.456236.patch
Type: text/x-patch
Size: 10958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220829/e6af842a/attachment.bin>
More information about the llvm-commits
mailing list