[PATCH] D16998: [AMDGPU] llvm-objdump: disassembling .hsatext section of HSA Code Object v1.0

Valery Pykhtin via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 08:38:54 PST 2016


vpykhtin added a comment.

Adding quote from summary so it can be seen in notification emails:

Problem: this change contains direct call for disassembleHSACodeObject from llvm-objdump which is actually located in the AMDGPU library. This is incorrect as require llvm-objdump always link with AMDGPU target. There should be a target callback somewhere that allows custom object file disassembly. One thought was to add such callback (something like disassembleObjectFile(ObjFile, OutStream)) to the MCDisassembler interface but it is a bit late because MCDisassembler is created when the target ISA specification is already known (it depends on MCSubtargetInfo) but the target ISA spec is yet to be read from the object file really.


http://reviews.llvm.org/D16998





More information about the llvm-commits mailing list