mirror of
https://github.com/open-goal/jak-project
synced 2026-09-01 17:59:55 -04:00
[Decompiler] Implement IR2 Type Analysis Pass (#193)
* type analysis setup * more framework * update printing * wip * add type analysis pass * fix tests
This commit is contained in:
@@ -7,4 +7,14 @@ std::string Env::get_variable_name(Register reg, int atomic_idx) const {
|
||||
(void)atomic_idx;
|
||||
throw std::runtime_error("Env::get_variable_name not yet implemented.");
|
||||
}
|
||||
|
||||
/*!
|
||||
* Update the Env with the result of the type analysis pass.
|
||||
*/
|
||||
void Env::set_types(const std::vector<TypeState>& block_init_types,
|
||||
const std::vector<TypeState>& op_end_types) {
|
||||
m_block_init_types = block_init_types;
|
||||
m_op_end_types = op_end_types;
|
||||
m_has_types = true;
|
||||
}
|
||||
} // namespace decompiler
|
||||
Reference in New Issue
Block a user