Commit 23b4f4e
authored
[NFC][TableGen] Change DecoderEmitter
The `insertBits` templated function generated by DecoderEmitter is
called with variable `tmp` of type `TmpType` which is:
```
using TmpType = std::conditional_t<std::is_integral<InsnType>::value, InsnType, uint64_t>;
```
That is, `TmpType` is always an integral type. Change the generated
`insertBits` to be valid only for integer types, and eliminate the
unused `insertBits` function from `DecoderUInt128` in
AMDGPUDisassembler.h
Additionally, drop some of the requirements `InsnType` must support as
they no longer seem to be required.insertBits to use integer types only (llvm#147613)1 parent 668c964 commit 23b4f4e
File tree
2 files changed
+12
-31
lines changed- llvm
- lib/Target/AMDGPU/Disassembler
- utils/TableGen
2 files changed
+12
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 46 | | |
58 | 47 | | |
59 | 48 | | |
| |||
78 | 67 | | |
79 | 68 | | |
80 | 69 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 70 | + | |
87 | 71 | | |
88 | 72 | | |
89 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2184 | 2184 | | |
2185 | 2185 | | |
2186 | 2186 | | |
2187 | | - | |
2188 | | - | |
2189 | 2187 | | |
2190 | 2188 | | |
2191 | 2189 | | |
2192 | | - | |
2193 | 2190 | | |
2194 | 2191 | | |
2195 | 2192 | | |
| |||
2221 | 2218 | | |
2222 | 2219 | | |
2223 | 2220 | | |
2224 | | - | |
2225 | | - | |
2226 | | - | |
2227 | | - | |
2228 | | - | |
2229 | | - | |
2230 | | - | |
2231 | | - | |
2232 | | - | |
2233 | | - | |
2234 | | - | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
2235 | 2232 | | |
2236 | 2233 | | |
2237 | 2234 | | |
| |||
0 commit comments