| commit | fb21efa258d84a159a5951c3cc8184edfe5ba796 | [log] [tgz] |
|---|---|---|
| author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | Thu May 22 16:59:09 2025 +0200 |
| committer | GitHub <noreply@github.com> | Thu May 22 16:59:09 2025 +0200 |
| tree | ad06078c0955290281111dab9c63e14e57b183c5 | |
| parent | 2bb5cc54bee745ed3b7e74a99e8a3196434da2ec [diff] |
[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.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.