HomePhabricator

[AMDGPU] Fixed +DumpCode

Authored by tpr on May 14 2019, 9:17 AM.

Description

[AMDGPU] Fixed +DumpCode

The +DumpCode attribute is a horrible hack in AMDGPU to embed the
disassembly of the generated code into the elf file. It is used by LLPC
to implement an extension that allows the application to read back the
disassembly of the code. Longer term, we should re-implement that by
using the LLVM disassembler from the Vulkan driver.

Recent LLVM changes broke +DumpCode. With -filetype=asm it crashed, and
with -filetype=obj I think it did not include any instructions, only the
labels. Fixed with this commit: now it has no effect with -filetype=asm,
and works as intended with -filetype=obj.

Differential Revision: https://reviews.llvm.org/D60682

Change-Id: I6436d86fe2ea220d74a643a85e64753747c9366b
llvm-svn: 360688

Details

Committed
sidorovdMay 24 2019, 5:39 AM
Differential Revision
D60682: [AMDGPU] Fixed +DumpCode
Parents
rG61e02606c8fb: [ARM][CMSE] Add cmse intrinsics for TT instructions
Branches
Unknown
Tags
Unknown