mirror of
https://github.com/open-goal/jak-project
synced 2026-09-01 17:59:55 -04:00
Partially Implement Decompiler Type Analysis (#90)
* implement basic framework for decompiler type analysis * before type system changes * add some decompiler stuff to the type system * try algorithm on a few functions
This commit is contained in:
@@ -26,6 +26,13 @@ std::string IR::print(const LinkedObjectFile& file) const {
|
||||
return pretty_print::to_string(to_form(file));
|
||||
}
|
||||
|
||||
bool IR::update_types(TypeMap& reg_types, DecompilerTypeSystem& dts, LinkedObjectFile& file) const {
|
||||
(void)reg_types;
|
||||
(void)dts;
|
||||
(void)file;
|
||||
return false;
|
||||
}
|
||||
|
||||
goos::Object IR_Failed::to_form(const LinkedObjectFile& file) const {
|
||||
(void)file;
|
||||
return pretty_print::build_list("INVALID-OPERATION");
|
||||
@@ -283,6 +290,9 @@ goos::Object IR_IntMath1::to_form(const LinkedObjectFile& file) const {
|
||||
case ABS:
|
||||
math_operator = "abs.si";
|
||||
break;
|
||||
case NEG:
|
||||
math_operator = "-.i";
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user