mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-27 17:55:21 +01:00
IR: Simplify types. F32 -> U32, F64 -> U64, F128 -> U128
ARM's Architecture Specification Language doesn't distinguish between floats and integers as much as we do. This makes some things difficult to implement. Since our register allocator is now capable of allocating values to XMMs and GPRs as necessary, the Transfer IR instructions are no longer necessary as they used to be and they can be removed.
This commit is contained in:
parent
9a812b0c61
commit
5eb0bdecdf
10 changed files with 150 additions and 226 deletions
|
|
@ -64,11 +64,7 @@ static size_t GetBitWidth(IR::Type type) {
|
|||
return 32;
|
||||
case IR::Type::U64:
|
||||
return 64;
|
||||
case IR::Type::F32:
|
||||
return 32;
|
||||
case IR::Type::F64:
|
||||
return 64;
|
||||
case IR::Type::F128:
|
||||
case IR::Type::U128:
|
||||
return 128;
|
||||
case IR::Type::NZCVFlags:
|
||||
return 32; // TODO: Update to 16 when flags optimization is done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue