aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/PatchableFunction.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2025-05-22 16:59:09 +0200
committerGitHub <noreply@github.com>2025-05-22 16:59:09 +0200
commitfb21efa258d84a159a5951c3cc8184edfe5ba796 (patch)
treead06078c0955290281111dab9c63e14e57b183c5 /llvm/lib/CodeGen/PatchableFunction.cpp
parent2bb5cc54bee745ed3b7e74a99e8a3196434da2ec (diff)
downloadllvm-fb21efa258d84a159a5951c3cc8184edfe5ba796.zip
llvm-fb21efa258d84a159a5951c3cc8184edfe5ba796.tar.gz
llvm-fb21efa258d84a159a5951c3cc8184edfe5ba796.tar.bz2
[SystemZ] Support PrintBranchImmAsAddress in disassembler (#141064)
As noticed in https://github.com/llvm/llvm-project/pull/140471, the SystemZ target currently implements disassembly of PC-relative target addresses differently from other back-ends. This patch brings SystemZ in line with other targets. Specifically, this patch changes the relevant MCInst instructions to carry a PC-relative displacement instead of an absolute target address in their immediate fields. When printing the instruction, this displacement will either be shown as is (e.g. for llvm-mc), or else translated into an absolute address at print time (e.g. for llvm-objdump). The existing llvm-mc based tests using PC-relative operands no longer work and have to be rewritten, but printing displacements makes those tests easier to maintain anyway.
Diffstat (limited to 'llvm/lib/CodeGen/PatchableFunction.cpp')
0 files changed, 0 insertions, 0 deletions