This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Calculate RegWidth in bits in AsmParser
ClosedPublic

Authored by Joe_Nash on Mar 15 2022, 12:54 PM.

Details

Summary

NFC. Switch from calculations based on dwords to bits, to be more
flexible.

Diff Detail

Event Timeline

Joe_Nash created this revision.Mar 15 2022, 12:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 12:54 PM
Joe_Nash requested review of this revision.Mar 15 2022, 12:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 12:54 PM
rampitec accepted this revision.Mar 15 2022, 1:48 PM

LGTM

llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
2261–2280

I like it more condensed, with return on the same line as case, but this is a matter of taste I guess.

This revision is now accepted and ready to land.Mar 15 2022, 1:48 PM
This revision was landed with ongoing or failed builds.Mar 16 2022, 8:14 AM
This revision was automatically updated to reflect the committed changes.