[AMDGPU] Make getInstSizeInBytes more generic
authorJoe Nash <Joseph.Nash@amd.com>
Fri, 5 Nov 2021 20:19:22 +0000 (16:19 -0400)
committerJoe Nash <Joseph.Nash@amd.com>
Mon, 8 Nov 2021 15:34:49 +0000 (10:34 -0500)
commit79f52af4cd9a76485dd50bcdbb5d393eb7a70103
tree805b88b445e1ba373410571576949f8ee6b11638
parentce4fa93db8b2511c389f27fba3e72b5b70c1b7db
[AMDGPU] Make getInstSizeInBytes more generic

NFC. This check mainly handles size affecting literals. Make it check all
explicit operands instead of a few by name. Also make the isLiteral
check handle the KIMM operands, see https://reviews.llvm.org/D111067

Change-Id: I1a362d55b2a10f5c74d445272e8b7829a8b77597

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D113318

Change-Id: Ie6c688f30a71e0335d1c6dd1ff65019bd7ce684e
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp