This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/MC: Simplify AsmParser for VOP3P
ClosedPublic

Authored by Petar.Avramovic on Dec 2 2022, 5:06 AM.

Details

Summary

Remove check that instruction has src_modifiers because
isRegOrImmWithInputMods essentially includes this check.
isMod is no longer used after the refactor. Also, was unreachable case
inside for loop. clamp and omod operands are handled after the loop.

Diff Detail

Event Timeline

Petar.Avramovic created this revision.Dec 2 2022, 5:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 2 2022, 5:06 AM
Petar.Avramovic requested review of this revision.Dec 2 2022, 5:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 2 2022, 5:06 AM

I'm not familiar with this code but it looks like a nice cleanup.

dp accepted this revision.Dec 2 2022, 5:59 AM

Nice refactoring!

This revision is now accepted and ready to land.Dec 2 2022, 5:59 AM
This revision was automatically updated to reflect the committed changes.