aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-12-16 09:20:55 -0800
committerFangrui Song <i@maskray.me>2020-12-16 09:20:55 -0800
commit66bcbdbc9c584becff35f6795cd2836a7a0141b2 (patch)
tree1748f9f86e8476a49616959a5dffac5d88e8b764 /llvm/lib/CodeGen/MachineScheduler.cpp
parent2ea7210e3946b25ea52af061e8ae45d26877507a (diff)
downloadllvm-66bcbdbc9c584becff35f6795cd2836a7a0141b2.zip
llvm-66bcbdbc9c584becff35f6795cd2836a7a0141b2.tar.gz
llvm-66bcbdbc9c584becff35f6795cd2836a7a0141b2.tar.bz2
[AArch64InstPrinter] Change printADRPLabel to print the target address in hexadecimal form
Similar to D77853. Change ADRP to print the target address in hex, instead of the raw immediate. The behavior is similar to GNU objdump but we also include `0x`. Note: GNU objdump is not consistent whether or not to emit `0x` for different architectures. We try emitting 0x consistently for all targets. ``` GNU objdump: adrp x16, 10000000 Old llvm-objdump: adrp x16, #0 New llvm-objdump: adrp x16, 0x10000000 ``` `adrp Xd, 0x...` assembles to a relocation referencing `*ABS*+0x10000` which is not intended. We need to use a linker or use yaml2obj. The main test is `test/tools/llvm-objdump/ELF/AArch64/pcrel-address.yaml` Differential Revision: https://reviews.llvm.org/D93241
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions