This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] gfx11 Decode wider instructions. NFC
ClosedPublic

Authored by Joe_Nash on May 10 2022, 7:25 AM.

Details

Reviewers
foad
dp
Group Reviewers
Restricted Project
Commits
rGa0a406b2577b: [AMDGPU] gfx11 Decode wider instructions. NFC
Summary

Refactor to pass a templatized size parameter to the decoder to allow wider than
64bit decodes in a later patch.

Contributors:
Jay Foad <jay.foad@amd.com>

Depends on D125261

Patch 5/N for upstreaming of AMDGPU gfx11 architecture.

Diff Detail

Event Timeline

Joe_Nash created this revision.May 10 2022, 7:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2022, 7:25 AM
Joe_Nash requested review of this revision.May 10 2022, 7:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2022, 7:25 AM
Joe_Nash added a reviewer: Restricted Project.
dp added a comment.May 10 2022, 9:33 AM

Overall looks fine, but I do not understand the context in which DecoderUInt128 will be used.

llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
425

Compiler should be able to deduce template type by QW type, why did you specify the type explicitly?

llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.h
42

Should be camel case.

53–54

Ditto.
Also it looks a bit illogical that the arguments are specified in the reversed order compared with insertBits. I assume this is required by autogenerated code?

Joe_Nash updated this revision to Diff 428432.May 10 2022, 10:34 AM
Joe_Nash marked 3 inline comments as done.

removed DecoderUInt128 from patch. removed explicit template arguments.

In D125316#3503925, @dp wrote:

Overall looks fine, but I do not understand the context in which DecoderUInt128 will be used.

Its not needed here, I will move it to a more relevant patch.

dp accepted this revision.May 10 2022, 12:44 PM

LGTM

This revision is now accepted and ready to land.May 10 2022, 12:44 PM
This revision was landed with ongoing or failed builds.May 11 2022, 8:33 AM
This revision was automatically updated to reflect the committed changes.