jak-project/decompiler/types2
water111 2a4d3d7a4a
[decompiler] More inline vector functions (#3861)
This adds more recognition for inlined vector functions to the
decompiler, which can clean up a bunch of ugly looking code/`rlet`s.


![image](https://github.com/user-attachments/assets/1f7b4627-81bd-481b-b828-76b9f7ba13b3)

Unfortunately, this changes the numbering of ops in the decomp, since
all the vector instructions get combined in a single "operation" by the
decompiler. I really tried to avoid having this ever happen in the
decompiler and this is one of the few cases where it has. So I had to
update a bunch of type casts.

For that reason I haven't turned this on in Jak 2 yet, although I am
planning to do that at some point. (probably at the same time as porting
back a bunch of jak 3 improvements to jak 2)

---------

Co-authored-by: water111 <awaterford1111445@gmail.com>
2025-02-16 15:59:17 -05:00
..
ForwardProp.cpp [decompiler] More inline vector functions (#3861) 2025-02-16 15:59:17 -05:00
types2.cpp cleanup our cmake and build warnings (#2876) 2023-08-08 20:53:16 -04:00
types2.h [decompiler] support for jak 2 (#1781) 2022-08-22 18:53:51 -04:00
types2.md [decomp] Decompile first batch of files in engine (#1787) 2022-08-24 00:29:51 -04:00