Commit 6194446
committed
[AArch64] Add Missing Custom Target Operands
I noticed, when examining the generated Asm Matcher table, that some of
these custom immediate operands are missing, and so we are not parsing
some hint aliases into the correct MCInst.
Where this becomes apparent is when you parse e.g. `hint rust-lang#7` into an
MCInst - without these cases, it becomes the MCInst `(HINT 17)`, which
will always be printed as `hint rust-lang#17`. With these cases, it becomes the
MCInst `XPACLRI`, which will be printed as `xpaclri` with pauth, or
`hint rust-lang#17` without, matching how `xpaclri` is parsed.
We only handle some specific hint aliases in this manner, usually where
these hints have specific effects that need to be modelled for accurate
code-generation. Otherwise, we just use the normal `InstAlias` system
to have the aliases parsed into a `(HINT N)` MCInst.
Differential Revision: https://reviews.llvm.org/D1466301 parent 82c83d7 commit 6194446
File tree
2 files changed
+53
-3
lines changed- llvm
- lib/Target/AArch64/AsmParser
- test/MC/AArch64
2 files changed
+53
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7642 | 7642 | | |
7643 | 7643 | | |
7644 | 7644 | | |
7645 | | - | |
7646 | | - | |
7647 | | - | |
| 7645 | + | |
| 7646 | + | |
| 7647 | + | |
| 7648 | + | |
7648 | 7649 | | |
7649 | 7650 | | |
7650 | 7651 | | |
| |||
7654 | 7655 | | |
7655 | 7656 | | |
7656 | 7657 | | |
| 7658 | + | |
7657 | 7659 | | |
| 7660 | + | |
7658 | 7661 | | |
| 7662 | + | |
7659 | 7663 | | |
7660 | 7664 | | |
| 7665 | + | |
| 7666 | + | |
| 7667 | + | |
| 7668 | + | |
| 7669 | + | |
| 7670 | + | |
| 7671 | + | |
7661 | 7672 | | |
7662 | 7673 | | |
7663 | 7674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
| 108 | + | |
| 109 | + | |
104 | 110 | | |
| 111 | + | |
105 | 112 | | |
106 | 113 | | |
| 114 | + | |
| 115 | + | |
107 | 116 | | |
| 117 | + | |
108 | 118 | | |
109 | 119 | | |
| 120 | + | |
110 | 121 | | |
| 122 | + | |
| 123 | + | |
111 | 124 | | |
112 | 125 | | |
| 126 | + | |
| 127 | + | |
113 | 128 | | |
| 129 | + | |
114 | 130 | | |
115 | 131 | | |
| 132 | + | |
| 133 | + | |
116 | 134 | | |
| 135 | + | |
117 | 136 | | |
118 | 137 | | |
| 138 | + | |
119 | 139 | | |
| 140 | + | |
| 141 | + | |
120 | 142 | | |
121 | 143 | | |
| 144 | + | |
122 | 145 | | |
| 146 | + | |
| 147 | + | |
123 | 148 | | |
124 | 149 | | |
| 150 | + | |
125 | 151 | | |
| 152 | + | |
| 153 | + | |
126 | 154 | | |
127 | 155 | | |
| 156 | + | |
| 157 | + | |
128 | 158 | | |
| 159 | + | |
129 | 160 | | |
130 | 161 | | |
| 162 | + | |
| 163 | + | |
131 | 164 | | |
| 165 | + | |
132 | 166 | | |
133 | 167 | | |
| 168 | + | |
134 | 169 | | |
| 170 | + | |
| 171 | + | |
135 | 172 | | |
136 | 173 | | |
| 174 | + | |
| 175 | + | |
137 | 176 | | |
138 | 177 | | |
139 | 178 | | |
| |||
0 commit comments