refactor(furc): introduce ir_register type

This commit is contained in:
2026-06-01 17:47:40 +02:00
parent b6e5f1f5cc
commit 011e0e8bad
2 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -8,6 +8,8 @@
namespace furc {
namespace front {
using ir_register = std::uint32_t;
class ir_generator final : public ast::visitor {
public:
ir_generator() = default;
@@ -36,7 +38,7 @@ private:
furlang::ir::module m_module;
std::unique_ptr<furlang::ir::function> m_currentFunction;
std::shared_ptr<furlang::ir::block> m_currentBlock;
std::uint32_t m_registerCounter = 0;
ir_register m_registerCounter = 0;
};
} // namespace front