[PATCH] D139194: AMDGPU/MC: Simplify AsmParser for VOP3P

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 2 05:06:15 PST 2022


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: foad, dp.
Herald added subscribers: kosarev, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl, arsenm.
Herald added a project: All.
Petar.Avramovic requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D139194

Files:
  llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139194.479603.patch
Type: text/x-patch
Size: 4130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221202/492639e8/attachment-0001.bin>


More information about the llvm-commits mailing list