[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / lld / COFF / CallGraphSort.h
blobe4f372137448c303dfd11f8f7fe298f03daf0071
1 //===- CallGraphSort.h ------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLD_COFF_CALL_GRAPH_SORT_H
10 #define LLD_COFF_CALL_GRAPH_SORT_H
12 #include "llvm/ADT/DenseMap.h"
14 namespace lld {
15 namespace coff {
16 class SectionChunk;
18 llvm::DenseMap<const SectionChunk *, int> computeCallGraphProfileOrder();
19 } // namespace coff
20 } // namespace lld
22 #endif