mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-27 01:34:55 +01:00
Implement thumb1_LDR_literal, thumb1_LDR_imm_t1
This commit is contained in:
parent
cbcf61a9e6
commit
e7922e4fef
11 changed files with 215 additions and 5 deletions
|
|
@ -236,6 +236,16 @@ void RegAlloc::EndOfAllocScope() {
|
|||
iter.second = nullptr;
|
||||
}
|
||||
|
||||
void RegAlloc::DecrementRemainingUses(IR::Value* value) {
|
||||
ASSERT_MSG(remaining_uses.find(value) != remaining_uses.end(), "value does not exist");
|
||||
ASSERT_MSG(remaining_uses[value] > 0, "value doesn't have any remaining uses");
|
||||
remaining_uses[value]--;
|
||||
}
|
||||
|
||||
void RegAlloc::AssertNoMoreUses() {
|
||||
ASSERT(std::all_of(hostloc_to_value.begin(), hostloc_to_value.end(), [](const auto& pair){ return !pair.second; }));
|
||||
}
|
||||
|
||||
void RegAlloc::Reset() {
|
||||
hostloc_to_value.clear();
|
||||
hostloc_state.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue