mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-08 07:32:59 +00:00
Implement thumb1_LDR_literal, thumb1_LDR_imm_t1
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user