[BOLT][NFC] Change guard macros in headers

Summary: Change macro names to match the new directory structure.

(cherry picked from FBD32540857)
This commit is contained in:
Maksim Panchenko 2021-11-18 12:21:38 -08:00
parent 2ccea6eac3
commit 63bebdd813
82 changed files with 178 additions and 178 deletions

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_BASIC_BLOCK_H
#define LLVM_TOOLS_LLVM_BOLT_BINARY_BASIC_BLOCK_H
#ifndef BOLT_CORE_BINARY_BASIC_BLOCK_H
#define BOLT_CORE_BINARY_BASIC_BLOCK_H
#include "llvm/ADT/GraphTraits.h"
#include "llvm/ADT/StringRef.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_CONTEXT_H
#define LLVM_TOOLS_LLVM_BOLT_BINARY_CONTEXT_H
#ifndef BOLT_CORE_BINARY_CONTEXT_H
#define BOLT_CORE_BINARY_CONTEXT_H
#include "bolt/Core/BinaryData.h"
#include "bolt/Core/BinarySection.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_DATA_H
#define LLVM_TOOLS_LLVM_BOLT_BINARY_DATA_H
#ifndef BOLT_CORE_BINARY_DATA_H
#define BOLT_CORE_BINARY_DATA_H
#include "llvm/ADT/Twine.h"
#include "llvm/MC/MCStreamer.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_EMITTER_H
#define LLVM_TOOLS_LLVM_BOLT_BINARY_EMITTER_H
#ifndef BOLT_CORE_BINARY_EMITTER_H
#define BOLT_CORE_BINARY_EMITTER_H
#include "llvm/ADT/StringRef.h"

View File

@ -11,8 +11,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_FUNCTION_H
#define LLVM_TOOLS_LLVM_BOLT_BINARY_FUNCTION_H
#ifndef BOLT_CORE_BINARY_FUNCTION_H
#define BOLT_CORE_BINARY_FUNCTION_H
#include "bolt/Core/BinaryBasicBlock.h"
#include "bolt/Core/BinaryContext.h"

View File

@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_LOOP_H
#define LLVM_TOOLS_LLVM_BOLT_BINARY_LOOP_H
#ifndef BOLT_CORE_BINARY_LOOP_H
#define BOLT_CORE_BINARY_LOOP_H
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/Analysis/LoopInfoImpl.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_SECTION_H
#define LLVM_TOOLS_LLVM_BOLT_BINARY_SECTION_H
#ifndef BOLT_CORE_BINARY_SECTION_H
#define BOLT_CORE_BINARY_SECTION_H
#include "bolt/Core/DebugData.h"
#include "bolt/Core/Relocation.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_DEBUG_DATA_H
#define LLVM_TOOLS_LLVM_BOLT_DEBUG_DATA_H
#ifndef BOLT_CORE_DEBUG_DATA_H
#define BOLT_CORE_DEBUG_DATA_H
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SmallVector.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_DYNO_STATS_H
#define LLVM_TOOLS_LLVM_BOLT_DYNO_STATS_H
#ifndef BOLT_CORE_DYNO_STATS_H
#define BOLT_CORE_DYNO_STATS_H
#include "llvm/ADT/ArrayRef.h"
#include "llvm/MC/MCInstPrinter.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_EXCEPTIONS_H
#define LLVM_TOOLS_LLVM_BOLT_EXCEPTIONS_H
#ifndef BOLT_CORE_EXCEPTIONS_H
#define BOLT_CORE_EXCEPTIONS_H
#include "llvm/ADT/DenseMap.h"
#include "llvm/DebugInfo/DWARF/DWARFDataExtractor.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_JUMP_TABLE_H
#define LLVM_TOOLS_LLVM_BOLT_JUMP_TABLE_H
#ifndef BOLT_CORE_JUMP_TABLE_H
#define BOLT_CORE_JUMP_TABLE_H
#include "bolt/Core/BinaryData.h"
#include <map>

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_MCPLUS_H
#define LLVM_TOOLS_LLVM_BOLT_MCPLUS_H
#ifndef BOLT_CORE_MCPLUS_H
#define BOLT_CORE_MCPLUS_H
#include "llvm/CodeGen/TargetOpcodes.h"
#include "llvm/MC/MCExpr.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_MCPLUSBUILDER_H
#define LLVM_TOOLS_LLVM_BOLT_MCPLUSBUILDER_H
#ifndef BOLT_CORE_MCPLUSBUILDER_H
#define BOLT_CORE_MCPLUSBUILDER_H
#include "bolt/Core/MCPlus.h"
#include "bolt/Core/Relocation.h"

View File

@ -12,8 +12,8 @@
// If the NoThreads flags is passed, work will execute sequentially.
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PARALLEL_UTILITIES_H
#define LLVM_TOOLS_LLVM_BOLT_PARALLEL_UTILITIES_H
#ifndef BOLT_CORE_PARALLEL_UTILITIES_H
#define BOLT_CORE_PARALLEL_UTILITIES_H
#include "bolt/Core/MCPlusBuilder.h"
#include "llvm/Support/CommandLine.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_RELOCATION_H
#define LLVM_TOOLS_LLVM_BOLT_RELOCATION_H
#ifndef BOLT_CORE_RELOCATION_H
#define BOLT_CORE_RELOCATION_H
#include "llvm/ADT/Triple.h"

View File

@ -9,8 +9,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_ADRRELAXATIONPASS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_ADRRELAXATIONPASS_H
#ifndef BOLT_PASSES_ADRRELAXATIONPASS_H
#define BOLT_PASSES_ADRRELAXATIONPASS_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_ALIGNER_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_ALIGNER_H
#ifndef BOLT_PASSES_ALIGNER_H
#define BOLT_PASSES_ALIGNER_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEDEFRAG_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEDEFRAG_H
#ifndef BOLT_PASSES_FRAMEDEFRAG_H
#define BOLT_PASSES_FRAMEDEFRAG_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -11,8 +11,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_ASMDUMP_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_ASMDUMP_H
#ifndef BOLT_PASSES_ASMDUMP_H
#define BOLT_PASSES_ASMDUMP_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_BINARY_FUNCTION_CALLGRAPH_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_BINARY_FUNCTION_CALLGRAPH_H
#ifndef BOLT_PASSES_BINARY_FUNCTION_CALLGRAPH_H
#define BOLT_PASSES_BINARY_FUNCTION_CALLGRAPH_H
#include "bolt/Passes/CallGraph.h"
#include <deque>

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_BINARY_PASSES_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_BINARY_PASSES_H
#ifndef BOLT_PASSES_BINARY_PASSES_H
#define BOLT_PASSES_BINARY_PASSES_H
#include "bolt/Core/BinaryContext.h"
#include "bolt/Core/BinaryFunction.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_CACHEMETRICS_H
#define LLVM_TOOLS_LLVM_BOLT_CACHEMETRICS_H
#ifndef BOLT_PASSES_CACHEMETRICS_H
#define BOLT_PASSES_CACHEMETRICS_H
#include <cstdint>
#include <vector>
@ -39,4 +39,4 @@ double extTSPScore(uint64_t SrcAddr,
} // namespace bolt
} // namespace llvm
#endif //LLVM_CACHEMETRICS_H
#endif // BOLT_PASSES_CACHEMETRICS_H

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_CALLGRAPH_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_CALLGRAPH_H
#ifndef BOLT_PASSES_CALLGRAPH_H
#define BOLT_PASSES_CALLGRAPH_H
#include <cassert>
#include <cstdint>

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_CALLGRAPHWALKER_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_CALLGRAPHWALKER_H
#ifndef BOLT_PASSES_CALLGRAPHWALKER_H
#define BOLT_PASSES_CALLGRAPHWALKER_H
#include <deque>
#include <functional>

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_DATAFLOWANALYSIS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_DATAFLOWANALYSIS_H
#ifndef BOLT_PASSES_DATAFLOWANALYSIS_H
#define BOLT_PASSES_DATAFLOWANALYSIS_H
#include "bolt/Core/BinaryContext.h"
#include "bolt/Core/BinaryFunction.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_DATAFLOWINFOMANAGER_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_DATAFLOWINFOMANAGER_H
#ifndef BOLT_PASSES_DATAFLOWINFOMANAGER_H
#define BOLT_PASSES_DATAFLOWINFOMANAGER_H
#include "bolt/Passes/DominatorAnalysis.h"
#include "bolt/Passes/LivenessAnalysis.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_DOMINATORANALYSIS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_DOMINATORANALYSIS_H
#ifndef BOLT_PASSES_DOMINATORANALYSIS_H
#define BOLT_PASSES_DOMINATORANALYSIS_H
#include "bolt/Passes/DataflowAnalysis.h"
#include "llvm/Support/CommandLine.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEANALYSIS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEANALYSIS_H
#ifndef BOLT_PASSES_FRAMEANALYSIS_H
#define BOLT_PASSES_FRAMEANALYSIS_H
#include "bolt/Passes/StackPointerTracking.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEOPTIMIZER_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEOPTIMIZER_H
#ifndef BOLT_PASSES_FRAMEOPTIMIZER_H
#define BOLT_PASSES_FRAMEOPTIMIZER_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -33,8 +33,8 @@
+----------------------------------------------------------------------+
*/
#ifndef LLVM_TOOLS_LLVM_BOLT_HFSORT_H
#define LLVM_TOOLS_LLVM_BOLT_HFSORT_H
#ifndef BOLT_PASSES_HFSORT_H
#define BOLT_PASSES_HFSORT_H
#include "bolt/Passes/CallGraph.h"
@ -116,7 +116,7 @@ std::vector<Cluster> pettisAndHansen(const CallGraph &Cg);
/* Group functions into clusters randomly. */
std::vector<Cluster> randomClusters(const CallGraph &Cg);
}
}
} // end namespace bolt
} // end namespace llvm
#endif
#endif // BOLT_PASSES_HFSORT_H

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_IDENTICAL_CODE_FOLDING_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_IDENTICAL_CODE_FOLDING_H
#ifndef BOLT_PASSES_IDENTICAL_CODE_FOLDING_H
#define BOLT_PASSES_IDENTICAL_CODE_FOLDING_H
#include "bolt/Core/BinaryFunction.h"
#include "bolt/Passes/BinaryPasses.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_INDIRECT_CALL_PROMOTION_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_INDIRECT_CALL_PROMOTION_H
#ifndef BOLT_PASSES_INDIRECT_CALL_PROMOTION_H
#define BOLT_PASSES_INDIRECT_CALL_PROMOTION_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_INLINER_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_INLINER_H
#ifndef BOLT_PASSES_INLINER_H
#define BOLT_PASSES_INLINER_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -13,8 +13,8 @@
// runtime/instr.cpp
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_INSTRUMENTATION_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_INSTRUMENTATION_H
#ifndef BOLT_PASSES_INSTRUMENTATION_H
#define BOLT_PASSES_INSTRUMENTATION_H
#include "bolt/Passes/BinaryPasses.h"
#include "bolt/Passes/InstrumentationSummary.h"

View File

@ -10,8 +10,8 @@
// binary emit and linking.
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_INSTRUMENTATION_SUMMARY_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_INSTRUMENTATION_SUMMARY_H
#ifndef BOLT_PASSES_INSTRUMENTATION_SUMMARY_H
#define BOLT_PASSES_INSTRUMENTATION_SUMMARY_H
#include "llvm/ADT/DenseSet.h"
#include <vector>

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_JT_FOOTPRINT_REDUCTION_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_JT_FOOTPRINT_REDUCTION_H
#ifndef BOLT_PASSES_JT_FOOTPRINT_REDUCTION_H
#define BOLT_PASSES_JT_FOOTPRINT_REDUCTION_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_LIVENESSANALYSIS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_LIVENESSANALYSIS_H
#ifndef BOLT_PASSES_LIVENESSANALYSIS_H
#define BOLT_PASSES_LIVENESSANALYSIS_H
#include "bolt/Passes/DataflowAnalysis.h"
#include "bolt/Passes/RegAnalysis.h"

View File

@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_LONGJMP_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_LONGJMP_H
#ifndef BOLT_PASSES_LONGJMP_H
#define BOLT_PASSES_LONGJMP_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_LOOPINVERSION_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_LOOPINVERSION_H
#ifndef BOLT_PASSES_LOOPINVERSION_H
#define BOLT_PASSES_LOOPINVERSION_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_MCF_H
#define LLVM_TOOLS_LLVM_BOLT_MCF_H
#ifndef BOLT_PASSES_MCF_H
#define BOLT_PASSES_MCF_H
namespace llvm {
namespace bolt {
@ -44,8 +44,7 @@ void estimateEdgeCounts(BinaryFunction &BF);
/// that do not account for them.
void solveMCF(BinaryFunction &BF, MCFCostFunction CostFunction);
}
}
} // end namespace bolt
} // end namespace llvm
#endif
#endif // BOLT_PASSES_MCF_H

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_PLTCALL_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_PLTCALL_H
#ifndef BOLT_PASSES_PLTCALL_H
#define BOLT_PASSES_PLTCALL_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_PATCH_ENTRIES_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_PATCH_ENTRIES_H
#ifndef BOLT_PASSES_PATCH_ENTRIES_H
#define BOLT_PASSES_PATCH_ENTRIES_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REACHINGDEFORUSE_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REACHINGDEFORUSE_H
#ifndef BOLT_PASSES_REACHINGDEFORUSE_H
#define BOLT_PASSES_REACHINGDEFORUSE_H
#include "bolt/Passes/DataflowAnalysis.h"
#include "bolt/Passes/RegAnalysis.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REACHINGINSNS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REACHINGINSNS_H
#ifndef BOLT_PASSES_REACHINGINSNS_H
#define BOLT_PASSES_REACHINGINSNS_H
#include "bolt/Passes/DataflowAnalysis.h"
#include "llvm/Support/CommandLine.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REGANALYSIS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REGANALYSIS_H
#ifndef BOLT_PASSES_REGANALYSIS_H
#define BOLT_PASSES_REGANALYSIS_H
#include "llvm/ADT/BitVector.h"
#include <cstdint>

View File

@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REGREASSIGN_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REGREASSIGN_H
#ifndef BOLT_PASSES_REGREASSIGN_H
#define BOLT_PASSES_REGREASSIGN_H
#include "bolt/Passes/BinaryPasses.h"
#include "bolt/Passes/RegAnalysis.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REORDER_ALGORITHM_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REORDER_ALGORITHM_H
#ifndef BOLT_PASSES_REORDER_ALGORITHM_H
#define BOLT_PASSES_REORDER_ALGORITHM_H
#include "bolt/Core/BinaryFunction.h"
#include <memory>

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REORDER_DATA_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REORDER_DATA_H
#ifndef BOLT_PASSES_REORDER_DATA_H
#define BOLT_PASSES_REORDER_DATA_H
#include "bolt/Passes/BinaryPasses.h"
#include <unordered_map>

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REORDER_FNCTIONS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REORDER_FNCTIONS_H
#ifndef BOLT_PASSES_REORDER_FUNCTIONS_H
#define BOLT_PASSES_REORDER_FUNCTIONS_H
#include "bolt/Passes/BinaryFunctionCallGraph.h"
#include "bolt/Passes/BinaryPasses.h"
@ -47,4 +47,4 @@ public:
} // namespace bolt
} // namespace llvm
#endif
#endif // BOLT_PASSES_REORDER_FUNCTIONS_H

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REORDER_UTILS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REORDER_UTILS_H
#ifndef BOLT_PASSES_REORDER_UTILS_H
#define BOLT_PASSES_REORDER_UTILS_H
#include <memory>
#include <vector>

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_RETPOLINE_INSERTION_H
#define LLVM_TOOLS_LLVM_BOLT_RETPOLINE_INSERTION_H
#ifndef BOLT_PASSES_RETPOLINE_INSERTION_H
#define BOLT_PASSES_RETPOLINE_INSERTION_H
#include "bolt/Passes/BinaryPasses.h"
#include <string>
@ -73,7 +73,8 @@ public:
void runOnFunctions(BinaryContext &BC) override;
};
} // namespace bolt
} // namespace llvm
#endif
#endif // BOLT_PASSES_RETPOLINE_INSERTION_H

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_SHRINKWRAPPING_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_SHRINKWRAPPING_H
#ifndef BOLT_PASSES_SHRINKWRAPPING_H
#define BOLT_PASSES_SHRINKWRAPPING_H
#include "bolt/Passes/FrameAnalysis.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_SPLIT_FUNCTIONS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_SPLIT_FUNCTIONS_H
#ifndef BOLT_PASSES_SPLIT_FUNCTIONS_H
#define BOLT_PASSES_SPLIT_FUNCTIONS_H
#include "bolt/Passes/BinaryPasses.h"
#include "llvm/Support/CommandLine.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_STACKALLOCATIONANALYSIS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_STACKALLOCATIONANALYSIS_H
#ifndef BOLT_PASSES_STACKALLOCATIONANALYSIS_H
#define BOLT_PASSES_STACKALLOCATIONANALYSIS_H
#include "bolt/Passes/DataflowAnalysis.h"
#include "llvm/Support/CommandLine.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_STACKAVAILABLEEXPRESSIONS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_STACKAVAILABLEEXPRESSIONS_H
#ifndef BOLT_PASSES_STACKAVAILABLEEXPRESSIONS_H
#define BOLT_PASSES_STACKAVAILABLEEXPRESSIONS_H
#include "bolt/Passes/DataflowAnalysis.h"
#include "llvm/Support/CommandLine.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_STACKPOINTERTRACKING_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_STACKPOINTERTRACKING_H
#ifndef BOLT_PASSES_STACKPOINTERTRACKING_H
#define BOLT_PASSES_STACKPOINTERTRACKING_H
#include "bolt/Passes/DataflowAnalysis.h"
#include "llvm/Support/CommandLine.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_STACKREACHINGUSES_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_STACKREACHINGUSES_H
#ifndef BOLT_PASSES_STACKREACHINGUSES_H
#define BOLT_PASSES_STACKREACHINGUSES_H
#include "bolt/Passes/DataflowAnalysis.h"
#include "llvm/Support/CommandLine.h"

View File

@ -22,8 +22,8 @@
// Finally, these configure files are feed to the Stoke to do the job.
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_STOKEINFO_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_STOKEINFO_H
#ifndef BOLT_PASSES_STOKEINFO_H
#define BOLT_PASSES_STOKEINFO_H
#include "bolt/Passes/BinaryPasses.h"
#include <fstream>

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_TAILDUPLICATION_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_TAILDUPLICATION_H
#ifndef BOLT_PASSES_TAILDUPLICATION_H
#define BOLT_PASSES_TAILDUPLICATION_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_THREEWAYBRANCH_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_THREEWAYBRANCH_H
#ifndef BOLT_PASSES_THREEWAYBRANCH_H
#define BOLT_PASSES_THREEWAYBRANCH_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_VALIDATEINTERNALCALLS_H
#define LLVM_TOOLS_LLVM_BOLT_PASSES_VALIDATEINTERNALCALLS_H
#ifndef BOLT_PASSES_VALIDATEINTERNALCALLS_H
#define BOLT_PASSES_VALIDATEINTERNALCALLS_H
#include "bolt/Passes/BinaryPasses.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_VENEER_ELIMINATION_H
#define LLVM_TOOLS_LLVM_BOLT_VENEER_ELIMINATION_H
#ifndef BOLT_PASSES_VENEER_ELIMINATION_H
#define BOLT_PASSES_VENEER_ELIMINATION_H
#include "bolt/Passes/BinaryPasses.h"
@ -28,7 +28,8 @@ public:
void runOnFunctions(BinaryContext &BC) override;
};
} // namespace bolt
} // namespace llvm
#endif
#endif // BOLT_PASSES_VENEER_ELIMINATION_H

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_BOLTADDRESSTRANSLATION_H
#define LLVM_TOOLS_LLVM_BOLT_BOLTADDRESSTRANSLATION_H
#ifndef BOLT_PROFILE_BOLTADDRESSTRANSLATION_H
#define BOLT_PROFILE_BOLTADDRESSTRANSLATION_H
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallVector.h"

View File

@ -11,8 +11,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_DATA_AGGREGATOR_H
#define LLVM_TOOLS_LLVM_BOLT_DATA_AGGREGATOR_H
#ifndef BOLT_PROFILE_DATA_AGGREGATOR_H
#define BOLT_PROFILE_DATA_AGGREGATOR_H
#include "bolt/Profile/DataReader.h"
#include "llvm/ADT/StringRef.h"

View File

@ -11,8 +11,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_DATA_READER_H
#define LLVM_TOOLS_LLVM_BOLT_DATA_READER_H
#ifndef BOLT_PROFILE_DATA_READER_H
#define BOLT_PROFILE_DATA_READER_H
#include "bolt/Profile/ProfileReaderBase.h"
#include "llvm/ADT/DenseMap.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_HEATMAP_H
#define LLVM_TOOLS_LLVM_BOLT_HEATMAP_H
#ifndef BOLT_PROFILE_HEATMAP_H
#define BOLT_PROFILE_HEATMAP_H
#include "llvm/ADT/StringRef.h"
#include <cstdint>

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PROFILE_READER_BASE_H
#define LLVM_TOOLS_LLVM_BOLT_PROFILE_READER_BASE_H
#ifndef BOLT_PROFILE_PROFILE_READER_BASE_H
#define BOLT_PROFILE_PROFILE_READER_BASE_H
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/Error.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_PROFILEYAMLMAPPING_H
#define LLVM_TOOLS_LLVM_BOLT_PROFILEYAMLMAPPING_H
#ifndef BOLT_PROFILE_PROFILEYAMLMAPPING_H
#define BOLT_PROFILE_PROFILEYAMLMAPPING_H
#include "bolt/Core/BinaryFunction.h"
#include "llvm/ADT/StringRef.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_YAML_PROFILE_READER_H
#define LLVM_TOOLS_LLVM_BOLT_YAML_PROFILE_READER_H
#ifndef BOLT_PROFILE_YAML_PROFILE_READER_H
#define BOLT_PROFILE_YAML_PROFILE_READER_H
#include "bolt/Profile/ProfileReaderBase.h"
#include "bolt/Profile/ProfileYAMLMapping.h"

View File

@ -9,9 +9,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_YAML_PROFILE_WRITER_H
#define LLVM_TOOLS_LLVM_BOLT_YAML_PROFILE_WRITER_H
#ifndef BOLT_PROFILE_YAML_PROFILE_WRITER_H
#define BOLT_PROFILE_YAML_PROFILE_WRITER_H
#include "llvm/Support/raw_ostream.h"
#include <system_error>

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_FUNCTION_PASS_MANAGER_H
#define LLVM_TOOLS_LLVM_BOLT_BINARY_FUNCTION_PASS_MANAGER_H
#ifndef BOLT_REWRITE_BINARY_PASS_MANAGER_H
#define BOLT_REWRITE_BINARY_PASS_MANAGER_H
#include "bolt/Passes/BinaryPasses.h"
#include <memory>
@ -57,4 +57,4 @@ private:
} // namespace bolt
} // namespace llvm
#endif
#endif // BOLT_REWRITE_BINARY_PASS_MANAGER_H

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_DWARF_REWRITER_H
#define LLVM_TOOLS_LLVM_BOLT_DWARF_REWRITER_H
#ifndef BOLT_REWRITE_DWARF_REWRITER_H
#define BOLT_REWRITE_DWARF_REWRITER_H
#include "bolt/Core/DebugData.h"
#include "bolt/Rewrite/RewriteInstance.h"

View File

@ -8,8 +8,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_EXECUTABLE_FILE_MEMORY_MANAGER_H
#define LLVM_TOOLS_LLVM_BOLT_EXECUTABLE_FILE_MEMORY_MANAGER_H
#ifndef BOLT_REWRITE_EXECUTABLE_FILE_MEMORY_MANAGER_H
#define BOLT_REWRITE_EXECUTABLE_FILE_MEMORY_MANAGER_H
#include "llvm/ADT/StringRef.h"
#include "llvm/ExecutionEngine/SectionMemoryManager.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_MACHO_REWRITE_INSTANCE_H
#define LLVM_TOOLS_LLVM_BOLT_MACHO_REWRITE_INSTANCE_H
#ifndef BOLT_REWRITE_MACHO_REWRITE_INSTANCE_H
#define BOLT_REWRITE_MACHO_REWRITE_INSTANCE_H
#include "bolt/Utils/NameResolver.h"
#include "llvm/Support/Error.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_REWRITE_INSTANCE_H
#define LLVM_TOOLS_LLVM_BOLT_REWRITE_INSTANCE_H
#ifndef BOLT_REWRITE_REWRITE_INSTANCE_H
#define BOLT_REWRITE_REWRITE_INSTANCE_H
#include "bolt/Core/BinaryContext.h"
#include "bolt/Utils/NameResolver.h"

View File

@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_HUGIFY_RUNTIME_LIBRARY_H
#define LLVM_TOOLS_LLVM_BOLT_HUGIFY_RUNTIME_LIBRARY_H
#ifndef BOLT_RUNTIMELIBS_HUGIFY_RUNTIME_LIBRARY_H
#define BOLT_RUNTIMELIBS_HUGIFY_RUNTIME_LIBRARY_H
#include "bolt/RuntimeLibs/RuntimeLibrary.h"

View File

@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_INSTRUMENTATION_RUNTIME_LIBRARY_H
#define LLVM_TOOLS_LLVM_BOLT_INSTRUMENTATION_RUNTIME_LIBRARY_H
#ifndef BOLT_RUNTIMELIBS_INSTRUMENTATION_RUNTIME_LIBRARY_H
#define BOLT_RUNTIMELIBS_INSTRUMENTATION_RUNTIME_LIBRARY_H
#include "bolt/Passes/InstrumentationSummary.h"
#include "bolt/RuntimeLibs/RuntimeLibrary.h"

View File

@ -11,8 +11,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_LINKRUNTIME_H
#define LLVM_TOOLS_LLVM_BOLT_LINKRUNTIME_H
#ifndef BOLT_RUNTIMELIBS_RUNTIME_LIBRARY_H
#define BOLT_RUNTIMELIBS_RUNTIME_LIBRARY_H
#include <llvm/ADT/StringRef.h>
#include <functional>
@ -68,4 +68,4 @@ protected:
} // namespace bolt
} // namespace llvm
#endif
#endif // BOLT_RUNTIMELIBS_RUNTIME_LIBRARY_H

View File

@ -9,8 +9,8 @@
// BOLT CLI options
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_COMMAND_LINE_OPTS_H
#define LLVM_TOOLS_LLVM_BOLT_COMMAND_LINE_OPTS_H
#ifndef BOLT_UTILS_COMMAND_LINE_OPTS_H
#define BOLT_UTILS_COMMAND_LINE_OPTS_H
#include "llvm/Support/CommandLine.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_NAME_RESOLVER_H
#define LLVM_TOOLS_LLVM_BOLT_NAME_RESOLVER_H
#ifndef BOLT_UTILS_NAME_RESOLVER_H
#define BOLT_UTILS_NAME_RESOLVER_H
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/Twine.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_NAME_SHORTENER_H
#define LLVM_TOOLS_LLVM_BOLT_NAME_SHORTENER_H
#ifndef BOLT_UTILS_NAME_SHORTENER_H
#define BOLT_UTILS_NAME_SHORTENER_H
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/Twine.h"

View File

@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_TOOLS_LLVM_BOLT_UTILS_H
#define LLVM_TOOLS_LLVM_BOLT_UTILS_H
#ifndef BOLT_UTILS_UTILS_H
#define BOLT_UTILS_UTILS_H
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"