Commit Graph
7 Commits
Author SHA1 Message Date
Ryan Houdek 199cfd76d8 Refactor IR and other changes that are hard to split
I had to change how blocks are represented to make it easier to parse
This required a fairly substantial refactor that makes it so blocks are
represented differently and we can walk them sequentially.

This will make future analysis easier to deal with.
Had to rewrite the passes and core's parsing of the IR afterwards.

Moved RA in to a optimization pass to be shared between the JIT backends
This works because x86-64 and AArch64 RA can be identical.

Still doesn't support PHI nodes or spilling correctly, this is the first
step in the process of getting there.
2020-03-06 07:55:13 +02:00
Ryan Houdek 92d4aaf2e2 Partial FXSave/FXRStor instruction implementations. 2020-03-06 07:52:35 +02:00
Ryan Houdek 3e4743512d Stub FXSave and FXRStor instructions. Necessary for launching dynamic apps from ld.so 2020-03-06 07:52:34 +02:00
Ryan Houdek 46f983fbb6 Minor fix to SHL op to not update flags if the shift amount was zero. 2020-03-06 07:52:32 +02:00
Ryan Houdek f503bd573f Fix CBW/CWDE/CDQE instruction storage 2020-03-06 07:52:28 +02:00
Ryan Houdek 40cad15da9 Cleanup old IR emitter functions
Argumentless IR emitter functions were prone to generating invalid code.
Remove them from the python emitter and change the branch instructions
that were using them to a new version instead.
Adds NumUse tracking as well.
2020-03-06 07:48:41 +02:00
Ryan Houdek 7252050e42 Initial commit 2020-03-06 07:48:39 +02:00