[AArch64] When printing SYS aliases, use explicit NeedsReg flag from tablegen (NFC)
#140484
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, when printing SYS aliases, the first instruction operand is compared with the string constant "all" to decide if a register needs to be parsed as the next operand.
For example,
TLBI VMALLE1IScontains "all" so no register is expected, butTLBI IPAS2E1ISdoesn't match, so a register is expected.Future AArch64 SYS aliases won't always match this pattern, so use the (already provided) explicit
NeedsRegbit flag provided in tablegen to check if a register is required to be parsed. This is already used by the code inAArch64InstPrinter.cpp, so now we are consistent in this source file too.No test files have been changed, since this is a non-functional change, and all AArch64 test cases continue to pass after this change.