[AArch64][NFC] Fix ComplexPattern types conflicting with uses
authorJessica Clarke <jrtc27@jrtc27.com>
Thu, 2 Dec 2021 15:21:01 +0000 (15:21 +0000)
committerJessica Clarke <jrtc27@jrtc27.com>
Fri, 3 Dec 2021 07:04:59 +0000 (07:04 +0000)
commit0cb44cfbb7616e5fb9a0c19c8784cf0fb5cfc2e3
tree1978e84762dcf14d6227c2f5a571677c1b72f134
parent62c74d496bb40a1845329cece0a38d9267db43c6
[AArch64][NFC] Fix ComplexPattern types conflicting with uses

When used as a non-leaf node, TableGen does not currently use the type
of a ComplexPattern for type inference, which also means it does not
check it doesn't conflict with the use. This differs from when used as a
leaf value, where the type is used for inference. Fixing that
discrepancy is something I intend to upstream as a subsequent review,
but these are all the type conflicts found (all legitimate) by my
locally-patched TableGen.

Reviewed By: paulwalker-arm

Differential Revision: https://reviews.llvm.org/D108759
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/lib/Target/AArch64/SVEInstrFormats.td