llvm/bolt/lib/Core/CallGraph.cpp

//===- bolt/Core/CallGraph.cpp ------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// This file implements the CallGraph class.
//
//===----------------------------------------------------------------------===//

#include "bolt/Core/CallGraph.h"

#define DEBUG_TYPE

#if defined(__x86_64__) && !defined(_MSC_VER)
#if (!defined USE_SSECRC)
#define USE_SSECRC
#endif
#else
#undef USE_SSECRC
#endif

static LLVM_ATTRIBUTE_UNUSED inline size_t hash_int64_fallback(int64_t k) {}

static LLVM_ATTRIBUTE_UNUSED inline size_t hash_int64(int64_t k) {}

static inline size_t hash_int64_pair(int64_t k1, int64_t k2) {}

namespace llvm {
namespace bolt {

int64_t CallGraph::Arc::Hash::operator()(const Arc &Arc) const {}

CallGraph::NodeId CallGraph::addNode(uint32_t Size, uint64_t Samples) {}

const CallGraph::Arc &CallGraph::incArcWeight(NodeId Src, NodeId Dst, double W,
                                              double Offset) {}

void CallGraph::normalizeArcWeights() {}

void CallGraph::adjustArcWeights() {}

} // namespace bolt
} // namespace llvm