[all-commits] [llvm/llvm-project] 6aff41: [ELF] Emit Verbose Asm when using --lto-emit-asm
Pierre van Houtryve via All-commits
all-commits at lists.llvm.org
Wed Jan 11 23:58:07 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6aff41ef37a48461b85c4b5bb143fceec6130a55
https://github.com/llvm/llvm-project/commit/6aff41ef37a48461b85c4b5bb143fceec6130a55
Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
Date: 2023-01-12 (Thu, 12 Jan 2023)
Changed paths:
M lld/ELF/LTO.cpp
M lld/test/ELF/lto/emit-asm.ll
Log Message:
-----------
[ELF] Emit Verbose Asm when using --lto-emit-asm
D138560 was abandonned as the use case can already be covered by `-Xoffload-linker --lto-emit-asm`.
However the output from `--lto-emit-asm` doesn't have
comments like the Clang `-S` output.
This patch adds verbose assembly output to LLD ELF LTO
so that the resulting assembly file more closely matches Clang's.
Having comments is especially important on targets such as AMDGPU because
they contain additional information about the kernel(s) being compiled.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D141268
More information about the All-commits
mailing list