This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Disassembler: support for DPP
ClosedPublic

Authored by SamWot on Mar 31 2016, 5:24 AM.

Details

Summary

Support for DPP instructions in disassembler.

Diff Detail

Event Timeline

SamWot updated this revision to Diff 52189.Mar 31 2016, 5:24 AM
SamWot retitled this revision from to [AMDGPU] Disassembler: support for DPP.
SamWot updated this object.
SamWot added reviewers: vpykhtin, tstellarAMD.
SamWot added a project: Restricted Project.
SamWot added a subscriber: arsenm.
vpykhtin accepted this revision.Mar 31 2016, 5:32 AM
vpykhtin edited edge metadata.

LGTM and one nit.

lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
135

tryDecodeInst restores Bytes on failed attempt.

This revision is now accepted and ready to land.Mar 31 2016, 5:32 AM
SamWot added inline comments.Mar 31 2016, 5:55 AM
lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
135

It is still needed here because eatBytes<uint64_t>() eats 8 bytes and tryDecodeInst would not restore them. We need to restore Bytes from original Bytes_ stream.

SamWot closed this revision.Apr 5 2016, 6:57 AM

Submitted r265015