diff options
Diffstat (limited to 'src/shader_recompiler/main.cpp')
| -rw-r--r-- | src/shader_recompiler/main.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/shader_recompiler/main.cpp b/src/shader_recompiler/main.cpp index e6596d828..19e36590c 100644 --- a/src/shader_recompiler/main.cpp +++ b/src/shader_recompiler/main.cpp | |||
| @@ -56,6 +56,13 @@ int main() { | |||
| 56 | auto cfg{std::make_unique<Flow::CFG>(env, 0)}; | 56 | auto cfg{std::make_unique<Flow::CFG>(env, 0)}; |
| 57 | // fmt::print(stdout, "{}\n", cfg->Dot()); | 57 | // fmt::print(stdout, "{}\n", cfg->Dot()); |
| 58 | 58 | ||
| 59 | Program program{env, *cfg}; | 59 | auto inst_pool{std::make_unique<ObjectPool<IR::Inst>>()}; |
| 60 | fmt::print(stdout, "{}\n", DumpProgram(program)); | 60 | auto block_pool{std::make_unique<ObjectPool<IR::Block>>()}; |
| 61 | |||
| 62 | for (int i = 0; i < 8192 * 4; ++i) { | ||
| 63 | void(inst_pool->Create(IR::Opcode::Void, 0)); | ||
| 64 | } | ||
| 65 | |||
| 66 | IR::Program program{TranslateProgram(*inst_pool, *block_pool, env, *cfg)}; | ||
| 67 | fmt::print(stdout, "{}\n", IR::DumpProgram(program)); | ||
| 61 | } | 68 | } |