diff --git a/include/ir/ir.hpp b/include/ir/ir.hpp index 9df3a06..e46e25c 100644 --- a/include/ir/ir.hpp +++ b/include/ir/ir.hpp @@ -2,8 +2,6 @@ #include #include "prelude/string.hpp" #include "parser/ast.hpp" -#include "ir/slot.hpp" -#include "ir/allocator.hpp" #include "ir/value.hpp" #include "ir/ops.hpp" @@ -158,7 +156,6 @@ namespace IR } public: - // TODO: think about safety (copying m_ops->data before giving) OpView ops() const { return OpView(m_ops->data, m_ops->size); } private: diff --git a/include/ir/ops.hpp b/include/ir/ops.hpp index c41626a..48ea214 100644 --- a/include/ir/ops.hpp +++ b/include/ir/ops.hpp @@ -32,7 +32,7 @@ namespace IR StringView m_symbol; }; - // TODO: Make function return value (i.e. inhreit the OpValued class instead) + // TODO: Make function return value (i.e. inherit the OpValued class instead) class FnOp : public Op { public: @@ -87,30 +87,6 @@ namespace IR ValueHandle::Type *m_typ; }; - // class LoadConstOp : public OpValued - // { - // public: - // LoadConstOp(ValueHandle *dest, long value) - // : OpValued(dest), m_value(value) {} - // ~LoadConstOp() {} - - // OP_TYPE(LOAD_CONST) - // public: - // StringView Format(int indent) const override - // { - // StringBuilder sb; - // sb.AppendIndent(indent); - // sb << result()->Format() << " = LOAD_CONST " << m_value; - // return sb.view(); - // } - - // public: - // long value() const { return m_value; } - - // private: - // long m_value; - // }; - class LoadOp : public OpValued { public: