fix(IR): use register operands instead of variable for local variables

This commit is contained in:
2026-06-01 18:06:03 +02:00
parent 011e0e8bad
commit 045ce7be59
2 changed files with 18 additions and 7 deletions
+4
View File
@@ -5,6 +5,8 @@
#include "furc/ast/visitor.hpp"
#include "furlang/ir/module.hpp"
#include <unordered_map>
namespace furc {
namespace front {
@@ -39,6 +41,8 @@ private:
std::unique_ptr<furlang::ir::function> m_currentFunction;
std::shared_ptr<furlang::ir::block> m_currentBlock;
ir_register m_registerCounter = 0;
std::unordered_map<std::string_view, ir_register> m_variables;
};
} // namespace front