Implement var read and assign IR

Signed-off-by: CHatingPython <chatingpython@gmail.com>
This commit is contained in:
CHatingPython
2026-05-31 18:20:46 +02:00
committed by CHatingPython
parent 91ef7f01a4
commit 9b1a7d5a0b
3 changed files with 47 additions and 33 deletions
-4
View File
@@ -5,8 +5,6 @@
#include "furc/ast/visitor.hpp"
#include "furlang/ir/module.hpp"
#include <unordered_map>
namespace furc {
namespace front {
@@ -38,8 +36,6 @@ private:
std::unique_ptr<furlang::ir::function> m_currentFunction;
std::shared_ptr<furlang::ir::block> m_currentBlock;
std::uint32_t m_registerCounter = 0;
std::unordered_map<std::string_view, std::uint32_t> m_variableMap;
};
} // namespace front