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

#include "vpux/compiler/NPU37XX/dialect/config/constraints_initializer.hpp"
#include "vpux/compiler/NPU37XX/dialect/config/constraints.hpp"
#include "vpux/compiler/dialect/config/IR/attributes.hpp"
#include "vpux/compiler/dialect/config/constraints.hpp"

using namespace vpux;

void config::ConstraintsInitializer37XX::initialize(mlir::MLIRContext* context, PlatformOrArch) {
    NPUConstraints constraints;

    constraints.frequencyTable.base = arch37xx::FREQ_BASE;
    constraints.frequencyTable.step = arch37xx::FREQ_STEP;
    constraints.perfClock.defaultFreq = arch37xx::PERF_CLK_DEFAULT_VALUE_MHZ;

    constraints.mappedInferenceFormat = NPUConstraints::MappedInferenceFormat::MappedInference;

    setNPUConstraints(context, constraints);
}
