[BOLT][NFC] Clean includes, add license headers (#87200)
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
#ifndef BOLT_CORE_ADDRESS_MAP_H
|
||||
#define BOLT_CORE_ADDRESS_MAP_H
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
|
||||
#include <optional>
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
#include "bolt/Core/BinaryBasicBlock.h"
|
||||
#include "llvm/IR/Dominators.h"
|
||||
#include "llvm/Support/GenericDomTreeConstruction.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace bolt {
|
||||
|
||||
@@ -52,7 +52,6 @@
|
||||
#include <iterator>
|
||||
#include <limits>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#ifndef BOLT_CORE_BINARY_LOOP_H
|
||||
#define BOLT_CORE_BINARY_LOOP_H
|
||||
|
||||
#include "llvm/Support/GenericLoopInfoImpl.h"
|
||||
#include "llvm/Support/GenericLoopInfo.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace bolt {
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "bolt/Core/DebugData.h"
|
||||
#include "bolt/Core/Relocation.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/BinaryFormat/ELF.h"
|
||||
#include "llvm/Object/ELFObjectFile.h"
|
||||
#include "llvm/Object/MachO.h"
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifndef BOLT_CORE_DEBUG_NAMES_H
|
||||
#define BOLT_CORE_DEBUG_NAMES_H
|
||||
|
||||
#include "DebugData.h"
|
||||
#include "bolt/Core/DebugData.h"
|
||||
#include "llvm/CodeGen/AccelTable.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include "llvm/ADT/iterator.h"
|
||||
#include "llvm/ADT/iterator_range.h"
|
||||
#include <iterator>
|
||||
#include <utility>
|
||||
|
||||
namespace llvm {
|
||||
namespace bolt {
|
||||
|
||||
@@ -14,10 +14,8 @@
|
||||
#ifndef BOLT_CORE_MCPLUS_H
|
||||
#define BOLT_CORE_MCPLUS_H
|
||||
|
||||
#include "llvm/CodeGen/TargetOpcodes.h"
|
||||
#include "llvm/MC/MCExpr.h"
|
||||
#include "llvm/MC/MCInst.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
#include "llvm/CodeGen/TargetOpcodes.h"
|
||||
#include "llvm/MC/MCAsmBackend.h"
|
||||
#include "llvm/MC/MCDisassembler/MCSymbolizer.h"
|
||||
#include "llvm/MC/MCExpr.h"
|
||||
@@ -27,6 +28,7 @@
|
||||
#include "llvm/MC/MCInstrDesc.h"
|
||||
#include "llvm/MC/MCInstrInfo.h"
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/ErrorOr.h"
|
||||
#include "llvm/Support/RWMutex.h"
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "bolt/Core/DynoStats.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include <atomic>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <unordered_set>
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#ifndef BOLT_PASSES_CACHEMETRICS_H
|
||||
#define BOLT_PASSES_CACHEMETRICS_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
#include "bolt/Passes/DataflowAnalysis.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Timer.h"
|
||||
|
||||
namespace opts {
|
||||
extern llvm::cl::opt<bool> TimeOpts;
|
||||
|
||||
@@ -11,9 +11,7 @@
|
||||
|
||||
#include "bolt/Passes/DataflowAnalysis.h"
|
||||
#include "bolt/Passes/RegAnalysis.h"
|
||||
#include "llvm/MC/MCRegisterInfo.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Timer.h"
|
||||
#include <optional>
|
||||
|
||||
namespace opts {
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
#include "bolt/Passes/DataflowAnalysis.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Timer.h"
|
||||
|
||||
namespace opts {
|
||||
extern llvm::cl::opt<bool> TimeOpts;
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#ifndef BOLT_PASSES_REORDER_UTILS_H
|
||||
#define BOLT_PASSES_REORDER_UTILS_H
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
/// Return true if the function \p BF may have a profile available.
|
||||
/// The result is based on the name(s) of the function alone and the profile
|
||||
/// match is not guaranteed.
|
||||
virtual bool mayHaveProfileData(const BinaryFunction &BF);
|
||||
virtual bool mayHaveProfileData(const BinaryFunction &BF) { return true; }
|
||||
|
||||
/// Return true if the profile contains an entry for a local object
|
||||
/// that has an associated file name.
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#define BOLT_PROFILE_PROFILEYAMLMAPPING_H
|
||||
|
||||
#include "bolt/Core/BinaryFunction.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/YAMLTraits.h"
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <optional>
|
||||
#include <set>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
#include "bolt/Rewrite/MetadataRewriter.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace bolt {
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include "bolt/Core/Linker.h"
|
||||
#include "bolt/Rewrite/MetadataManager.h"
|
||||
#include "bolt/Utils/NameResolver.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/MC/StringTableBuilder.h"
|
||||
#include "llvm/Object/ELFObjectFile.h"
|
||||
#include "llvm/Object/ObjectFile.h"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
#include "bolt/Core/Linker.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#define BOLT_UTILS_NAME_SHORTENER_H
|
||||
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace bolt {
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "bolt/Core/BinaryEmitter.h"
|
||||
#include "bolt/Core/BinaryFunction.h"
|
||||
#include "bolt/Utils/CommandLineOpts.h"
|
||||
#include "bolt/Utils/NameResolver.h"
|
||||
#include "bolt/Utils/Utils.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
@@ -39,7 +38,6 @@
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <iterator>
|
||||
#include <numeric>
|
||||
#include <unordered_set>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
#include "llvm/Object/ObjectFile.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/GenericDomTreeConstruction.h"
|
||||
#include "llvm/Support/GenericLoopInfoImpl.h"
|
||||
#include "llvm/Support/GraphWriter.h"
|
||||
#include "llvm/Support/LEB128.h"
|
||||
#include "llvm/Support/Regex.h"
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/Format.h"
|
||||
#include "llvm/Support/LEB128.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "bolt/Core/DebugData.h"
|
||||
#include "bolt/Core/BinaryContext.h"
|
||||
#include "bolt/Core/DIEBuilder.h"
|
||||
#include "bolt/Rewrite/RewriteInstance.h"
|
||||
#include "bolt/Utils/Utils.h"
|
||||
#include "llvm/BinaryFormat/Dwarf.h"
|
||||
#include "llvm/CodeGen/DIE.h"
|
||||
@@ -23,7 +22,6 @@
|
||||
#include "llvm/MC/MCAssembler.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCObjectStreamer.h"
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/EndianStream.h"
|
||||
#include "llvm/Support/LEB128.h"
|
||||
@@ -32,7 +30,6 @@
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
//===- bolt/Core/FunctionLayout.cpp - Fragmented Function Layout -*- 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
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/Core/FunctionLayout.h"
|
||||
#include "bolt/Core/BinaryFunction.h"
|
||||
#include "bolt/Core/BinaryBasicBlock.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/edit_distance.h"
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <functional>
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
|
||||
using namespace llvm;
|
||||
using namespace bolt;
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
#include "bolt/Core/HashUtilities.h"
|
||||
#include "bolt/Core/BinaryContext.h"
|
||||
#include "bolt/Core/BinaryFunction.h"
|
||||
#include "llvm/MC/MCInstPrinter.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include <cstdint>
|
||||
#include <queue>
|
||||
|
||||
#define DEBUG_TYPE "mcplus"
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include "llvm/ADT/PostOrderIterator.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include <numeric>
|
||||
|
||||
#define DEBUG_TYPE "cmov"
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
//===- bolt/Passes/FixRISCVCallsPass.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
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/Passes/FixRISCVCallsPass.h"
|
||||
#include "bolt/Core/ParallelUtilities.h"
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
//===- bolt/Passes/FixRelaxationPass.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
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/Passes/FixRelaxationPass.h"
|
||||
#include "bolt/Core/ParallelUtilities.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include "bolt/Utils/CommandLineOpts.h"
|
||||
#include "llvm/Support/Timer.h"
|
||||
#include <deque>
|
||||
#include <unordered_map>
|
||||
|
||||
#define DEBUG_TYPE "fop"
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/Passes/Hugify.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
||||
#define DEBUG_TYPE "bolt-hugify"
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include "bolt/Passes/Inliner.h"
|
||||
#include "bolt/Core/MCPlus.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include <map>
|
||||
|
||||
#define DEBUG_TYPE "bolt-inliner"
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/Passes/ShrinkWrapping.h"
|
||||
#include "bolt/Core/MCPlus.h"
|
||||
#include "bolt/Passes/DataflowInfoManager.h"
|
||||
#include "bolt/Passes/MCF.h"
|
||||
#include "bolt/Utils/CommandLineOpts.h"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
#include "bolt/Core/ParallelUtilities.h"
|
||||
#include "bolt/Utils/CommandLineOpts.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/Sequence.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/iterator_range.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
#include "bolt/Passes/TailDuplication.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/MC/MCRegisterInfo.h"
|
||||
#include <queue>
|
||||
|
||||
#include <numeric>
|
||||
#include <queue>
|
||||
|
||||
#define DEBUG_TYPE "taildup"
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "bolt/Core/BinaryBasicBlock.h"
|
||||
#include "bolt/Passes/DataflowInfoManager.h"
|
||||
#include "bolt/Passes/FrameAnalysis.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/MC/MCInstPrinter.h"
|
||||
#include <optional>
|
||||
#include <queue>
|
||||
|
||||
@@ -3,7 +3,6 @@ add_llvm_library(LLVMBOLTProfile
|
||||
DataAggregator.cpp
|
||||
DataReader.cpp
|
||||
Heatmap.cpp
|
||||
ProfileReaderBase.cpp
|
||||
StaleProfileMatching.cpp
|
||||
YAMLProfileReader.cpp
|
||||
YAMLProfileWriter.cpp
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/Errc.h"
|
||||
#include <map>
|
||||
|
||||
#undef DEBUG_TYPE
|
||||
#define DEBUG_TYPE "bolt-prof"
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "bolt/Utils/CommandLineOpts.h"
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/FileSystem.h"
|
||||
#include "llvm/Support/Format.h"
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
//===- bolt/Profile/ProfileReaderBase.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
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Interface to be implemented by all profile readers.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/Profile/ProfileReaderBase.h"
|
||||
|
||||
namespace llvm {
|
||||
namespace bolt {
|
||||
|
||||
bool ProfileReaderBase::mayHaveProfileData(const BinaryFunction &BF) {
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace bolt
|
||||
} // namespace llvm
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "bolt/Core/DynoStats.h"
|
||||
#include "bolt/Core/ParallelUtilities.h"
|
||||
#include "bolt/Rewrite/RewriteInstance.h"
|
||||
#include "bolt/Utils/Utils.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/Rewrite/JITLinkLinker.h"
|
||||
#include "bolt/Core/BinaryContext.h"
|
||||
#include "bolt/Core/BinaryData.h"
|
||||
#include "bolt/Rewrite/RewriteInstance.h"
|
||||
#include "bolt/Core/BinarySection.h"
|
||||
#include "llvm/ExecutionEngine/JITLink/ELF_riscv.h"
|
||||
#include "llvm/ExecutionEngine/JITLink/JITLink.h"
|
||||
#include "llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h"
|
||||
|
||||
@@ -11,10 +11,9 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/RuntimeLibs/HugifyRuntimeLibrary.h"
|
||||
#include "bolt/Core/BinaryFunction.h"
|
||||
#include "bolt/Core/BinaryContext.h"
|
||||
#include "bolt/Core/Linker.h"
|
||||
#include "llvm/MC/MCStreamer.h"
|
||||
#include "llvm/Support/Alignment.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
#include "llvm/BinaryFormat/ELF.h"
|
||||
#include "llvm/MC/MCInst.h"
|
||||
#include "llvm/MC/MCSubtargetInfo.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/Format.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
#define DEBUG_TYPE "mcplus"
|
||||
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
//===- bolt/tools/bat-dump/bat-dump.cpp - BAT dumper utility --------------===//
|
||||
//
|
||||
// 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
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/Profile/BoltAddressTranslation.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include "llvm/ADT/iterator_range.h"
|
||||
#include "llvm/Object/Binary.h"
|
||||
#include "llvm/Object/ELFObjectFile.h"
|
||||
#include "llvm/Object/Error.h"
|
||||
@@ -18,7 +25,6 @@
|
||||
#include "llvm/Support/FileSystem.h"
|
||||
#include "llvm/Support/Program.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <algorithm>
|
||||
#include <assert.h>
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
@@ -27,7 +33,6 @@
|
||||
#include <system_error>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
using namespace llvm;
|
||||
using namespace bolt;
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
#include "bolt/Profile/DataAggregator.h"
|
||||
//===- bolt/tools/heatmap/heatmap.cpp - Profile heatmap visualization tool ===//
|
||||
//
|
||||
// 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
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/Rewrite/RewriteInstance.h"
|
||||
#include "bolt/Utils/CommandLineOpts.h"
|
||||
#include "llvm/MC/TargetRegistry.h"
|
||||
@@ -6,7 +13,8 @@
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Errc.h"
|
||||
#include "llvm/Support/Error.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
#include "llvm/Support/FileSystem.h"
|
||||
#include "llvm/Support/Program.h"
|
||||
#include "llvm/Support/TargetSelect.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
//===- bolt/unittest/Core/BinaryContext.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
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/Core/BinaryContext.h"
|
||||
#include "llvm/BinaryFormat/ELF.h"
|
||||
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
|
||||
#include "llvm/Object/ELFObjectFile.h"
|
||||
#include "llvm/Support/TargetSelect.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
//===- bolt/unittest/Core/MCPlusBuilder.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
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifdef AARCH64_AVAILABLE
|
||||
#include "AArch64Subtarget.h"
|
||||
#endif // AARCH64_AVAILABLE
|
||||
@@ -11,7 +19,6 @@
|
||||
#include "bolt/Rewrite/RewriteInstance.h"
|
||||
#include "llvm/BinaryFormat/ELF.h"
|
||||
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
|
||||
#include "llvm/Object/ELFObjectFile.h"
|
||||
#include "llvm/Support/TargetSelect.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user