feat(furc): start working on ssa optimizations
Compute dominance frontiers. Refs: #2
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "furc/ast/program.hpp"
|
||||
#include "furc/front/ir_generator.hpp"
|
||||
#include "furc/front/parser.hpp"
|
||||
#include "furc/front/ssa.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@@ -34,6 +35,8 @@ int main(void) {
|
||||
program->accept(generator);
|
||||
|
||||
auto module = std::move(generator.move_module());
|
||||
furc::front::ssa::optimize(module);
|
||||
|
||||
std::cout << "Generated IR:\n";
|
||||
for (const auto& function : module.functions()) {
|
||||
std::cout << function->name() << ":\n";
|
||||
|
||||
Reference in New Issue
Block a user