// Copyright Advanced Micro Devices, Inc., or its affiliates. // SPDX-License-Identifier: MIT #include #include namespace rocRoller { namespace Scheduling { static_assert(Component::Component); NoneCost::NoneCost(ContextPtr ctx) : Cost{ctx} { Throw("Cannot use None cost."); } bool NoneCost::Match(Argument arg) { return std::get<0>(arg) == CostFunction::None; } std::shared_ptr NoneCost::Build(Argument arg) { Throw("Cannot use None cost."); } std::string NoneCost::name() const { return Name; } float NoneCost::cost(Instruction const& inst, InstructionStatus const& status) const { Throw("Cannot use None cost."); } } }