mirror of
https://github.com/open-goal/jak-project
synced 2026-07-11 15:28:58 -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:
@@ -47,16 +47,6 @@ void add_regs_to_str(const T& regs, std::string& str) {
|
||||
str.append(reg.to_charp());
|
||||
}
|
||||
}
|
||||
|
||||
u32 regs_to_gpr_mask(const std::vector<Register>& regs) {
|
||||
u32 result = 0;
|
||||
for (const auto& reg : regs) {
|
||||
if (reg.get_kind() == Reg::GPR) {
|
||||
result |= (1 << reg.get_gpr());
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
std::string IR_Atomic::print_with_reguse(const LinkedObjectFile& file) const {
|
||||
|
||||
Reference in New Issue
Block a user