[goalc] register allocator v2 (#731)

* clean up allocator interface to be simpler

* working on functions without spills

* working for all

* fix missing includes for windows

* more windows includes

* initialize regs to zero so printing value unintiailized by game code is repeatable
This commit is contained in:
water111
2021-08-01 17:46:55 -04:00
committed by GitHub
parent b8f80e435c
commit aa58d146c2
29 changed files with 2314 additions and 949 deletions
+8
View File
@@ -615,4 +615,12 @@ std::vector<u8> ObjectGenerator::generate_header_v3() {
push_data<uint32_t>(64 + 4 + total_link_size, result); // todo, make these numbers less magic.
return result;
}
ObjectGeneratorStats ObjectGenerator::get_stats() const {
return m_stats;
}
void ObjectGenerator::count_eliminated_move() {
m_stats.moves_eliminated++;
}
} // namespace emitter