Commit 3d76029
committed
[AArch64] When printing SYS aliases, use explicit
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 VMALLE1IS` contains "all" so no register is expected,
but `TLBI IPAS2E1IS` doesn't match, so a register is expected.
Future AArch64 SYS aliases won't match this pattern, so use the (already
provided) explicit `NeedsReg` bit flag provided in tablegen to check if a
register is required to be parsed. This is already used by the code in
`AArch64InstPrinter.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.NeedsReg flag from tablegen (NFC)1 parent ec7a509 commit 3d76029
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3917 | 3917 | | |
3918 | 3918 | | |
3919 | 3919 | | |
| 3920 | + | |
3920 | 3921 | | |
3921 | 3922 | | |
3922 | 3923 | | |
| |||
3927 | 3928 | | |
3928 | 3929 | | |
3929 | 3930 | | |
| 3931 | + | |
3930 | 3932 | | |
3931 | 3933 | | |
3932 | 3934 | | |
| |||
3957 | 3959 | | |
3958 | 3960 | | |
3959 | 3961 | | |
| 3962 | + | |
3960 | 3963 | | |
3961 | 3964 | | |
3962 | 3965 | | |
| |||
3987 | 3990 | | |
3988 | 3991 | | |
3989 | 3992 | | |
3990 | | - | |
3991 | 3993 | | |
3992 | 3994 | | |
3993 | 3995 | | |
| |||
0 commit comments