[AMDGPU][AsmParser] Eliminate cvtMtbuf().
authorIvan Kosarev <ivan.kosarev@amd.com>
Fri, 23 Jun 2023 11:43:39 +0000 (12:43 +0100)
committerIvan Kosarev <ivan.kosarev@amd.com>
Fri, 23 Jun 2023 11:43:52 +0000 (12:43 +0100)
commit5183ca877982a6a5cbe84c9e73f99e1d289e50be
treef9a28b43fbb54da0a94903e15d31e34a52d1b942
parent9435942447b7155666a7bf0df463b1c44c29ca36
[AMDGPU][AsmParser] Eliminate cvtMtbuf().

Now that we have proper support for optional operands, the standard LLVM
machinery can take care of converting parsed instructions to MCInsts.
There are likely more cases where the conversion can be done
automatically, probably with some additional treatment. The plan is to
address them separately.

Part of <https://github.com/llvm/llvm-project/issues/62629>.

Reviewed By: arsenm, foad

Differential Revision: https://reviews.llvm.org/D153565
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/lib/Target/AMDGPU/BUFInstructions.td