//===--------------------- Support.cpp --------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// /// \file /// /// This file implements a few helper functions used by various pipeline /// components. /// //===----------------------------------------------------------------------===// #include "llvm/MCA/Support.h" #include "llvm/MC/MCSchedule.h" #include <numeric> namespace llvm { namespace mca { #define DEBUG_TYPE … ReleaseAtCycles &ReleaseAtCycles::operator+=(const ReleaseAtCycles &RHS) { … } void computeProcResourceMasks(const MCSchedModel &SM, MutableArrayRef<uint64_t> Masks) { … } double computeBlockRThroughput(const MCSchedModel &SM, unsigned DispatchWidth, unsigned NumMicroOps, ArrayRef<unsigned> ProcResourceUsage) { … } } // namespace mca } // namespace llvm