diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-05-16 19:45:30 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-05-19 19:37:29 +0200 |
| commit | 9e5c8cb008f75c2e570a0e48d5d014e936c103ca (patch) | |
| tree | af9bf9c8457a4137b1fc534e7eac8a0a4400b8ec /src/arch/arm/CodeGen.zig | |
| parent | 2aee2302515ba444999b82c2e40cbc35dee08baf (diff) | |
| download | zig-9e5c8cb008f75c2e570a0e48d5d014e936c103ca.tar.gz zig-9e5c8cb008f75c2e570a0e48d5d014e936c103ca.zip | |
x64: merge general purpose with simd register into one bitset
This way, we do not have to tweak the `RegisterManager` to handle
multiple register types - we have one linear space instead. Additionally
we can use the bitset itself to separate the registers into overlapping
(the ones that are aliases of differing bitwidths) and nonoverlapping
classes (for example, AVX registers do not overlap general purpose
registers, thus they can be allocated simultaneously).
Another huge benefit of this simple approach is the fact that we can
still refer to *all* registers regardless of their class via enum
literals which makes the code so much more readable.
Finally, `RegisterLock` is universal across different register classes.
Diffstat (limited to 'src/arch/arm/CodeGen.zig')
0 files changed, 0 insertions, 0 deletions
