IR: Adds Option to run the IRDumper with more configurations

This is incredibly useful and I find myself hacking this feature in
every time I am optimizing IR. Adds a new configuration option which
allows dumping IR at various times.

Before any optimization passes has happened
After all optimizations passes have happened
Before and After each IRPass to see what is breaking something.

Needs #2864 merged first
This commit is contained in:
Ryan Houdek committed 2023-08-09 05:58:20 -07:00
1 parent 53ac8abce9
commit 35e97ec9bc
13 files changed
+183 -34

No files matched your search

+5 -1
View File
@@ -533,11 +533,15 @@ class IRParser: public FEXCore::IR::IREmitter {
return false;
}
auto OriginalRIP = DecodeValue<uint64_t>(Def.Args[1]);
if (!CheckPrintError(Def, OriginalRIP.first)) return false;
auto CodeBlockCount = DecodeValue<uint64_t>(Def.Args[1]);
if (!CheckPrintError(Def, CodeBlockCount.first)) return false;
IRHeader = _IRHeader(InvalidNode, CodeBlockCount.second);
IRHeader = _IRHeader(InvalidNode, OriginalRIP.second, CodeBlockCount.second);
}
SetWriteCursor(nullptr); // isolate the header from everything following