#pragma once #include "prelude/string.hpp" namespace IR { class Value { public: Value(unsigned int id) : m_id(id) {} Value() : m_id(0) {} public: StringView Format() const { auto sb = StringBuilder(); sb.AppendFormat("%%%d", m_id); return sb.view(); } private: unsigned int m_id; }; using ValueView = View; using ValueBuilder = Builder; } // namespace IR