// Copyright (C) 2018-2026 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#pragma once

#include "openvino/core/rtti.hpp"
#include "pass.hpp"
#include "snippets/lowered/linear_ir.hpp"
#include "snippets/lowered/reg_manager.hpp"

namespace ov::snippets::lowered::pass {

/**
 * @interface InitLiveRanges
 * @brief Calculates live ranges of registers. This information will be used to assign registers and optimize ABI reg
 * spills.
 * @ingroup snippets
 */
class InitLiveRanges : public Pass {
public:
    OPENVINO_RTTI("InitLiveRanges", "", Pass)
    explicit InitLiveRanges(RegManager& reg_manager) : m_reg_manager(reg_manager) {}
    bool run(LinearIR& linear_ir) override;

private:
    RegManager& m_reg_manager;
};

}  // namespace ov::snippets::lowered::pass
