Skip to content

Commit a34c753

Browse files
rafaelaulermaksfb
authored andcommitted
Rebase: [NFC] Refactor sources to be buildable in shared mode
Summary: Moves source files into separate components, and make explicit component dependency on each other, so LLVM build system knows how to build BOLT in BUILD_SHARED_LIBS=ON. Please use the -c merge.renamelimit=230 git option when rebasing your work on top of this change. To achieve this, we create a new library to hold core IR files (most classes beginning with Binary in their names), a new library to hold Utils, some command line options shared across both RewriteInstance and core IR files, a new library called Rewrite to hold most classes concerned with running top-level functions coordinating the binary rewriting process, and a new library called Profile to hold classes dealing with profile reading and writing. To remove the dependency from BinaryContext into X86-specific classes, we do some refactoring on the BinaryContext constructor to receive a reference to the specific backend directly from RewriteInstance. Then, the dependency on X86 or AArch64-specific classes is transfered to the Rewrite library. We can't have the Core library depend on targets because targets depend on Core (which would create a cycle). Files implementing the entry point of a tool are transferred to the tools/ folder. All header files are transferred to the include/ folder. The src/ folder was renamed to lib/. (cherry picked from FBD32746834)
1 parent 46bc197 commit a34c753

File tree

176 files changed

+993
-885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+993
-885
lines changed

bolt/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ ExternalProject_Add(bolt_rt
1818
BUILD_ALWAYS True
1919
)
2020

21+
include_directories( ${BOLT_SOURCE_DIR}/include )
22+
2123
install(CODE "execute_process\(COMMAND \${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=\${CMAKE_INSTALL_PREFIX} -P ${CMAKE_CURRENT_BINARY_DIR}/bolt_rt-bins/cmake_install.cmake \)"
2224
COMPONENT bolt_rt)
2325

2426
add_llvm_install_targets(install-bolt_rt
2527
DEPENDS bolt_rt
2628
COMPONENT bolt_rt)
2729

28-
add_subdirectory(src)
30+
add_subdirectory(lib)
2931
add_subdirectory(test)
32+
add_subdirectory(tools)
File renamed without changes.

bolt/src/BinaryContext.h bolt/include/bolt/Core/BinaryContext.h

+12-7
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_CONTEXT_H
1414
#define LLVM_TOOLS_LLVM_BOLT_BINARY_CONTEXT_H
1515

16-
#include "BinaryData.h"
17-
#include "BinarySection.h"
18-
#include "DebugData.h"
19-
#include "JumpTable.h"
20-
#include "MCPlusBuilder.h"
21-
#include "RuntimeLibs/RuntimeLibrary.h"
16+
#include "bolt/Core/BinaryData.h"
17+
#include "bolt/Core/BinarySection.h"
18+
#include "bolt/Core/DebugData.h"
19+
#include "bolt/Core/JumpTable.h"
20+
#include "bolt/Core/MCPlusBuilder.h"
21+
#include "bolt/RuntimeLibs/RuntimeLibrary.h"
2222
#include "llvm/ADT/ArrayRef.h"
2323
#include "llvm/ADT/StringMap.h"
2424
#include "llvm/ADT/Triple.h"
@@ -36,8 +36,8 @@
3636
#include "llvm/MC/MCSectionELF.h"
3737
#include "llvm/MC/MCSectionMachO.h"
3838
#include "llvm/MC/MCSymbol.h"
39+
#include "llvm/MC/TargetRegistry.h"
3940
#include "llvm/Support/ErrorOr.h"
40-
#include "llvm/Support/TargetRegistry.h"
4141
#include "llvm/Support/raw_ostream.h"
4242
#include <functional>
4343
#include <map>
@@ -221,6 +221,11 @@ class BinaryContext {
221221
/// overwritten, but it is okay to re-generate debug info for them.
222222
std::set<const DWARFUnit *> ProcessedCUs;
223223

224+
// Setup MCPlus target builder
225+
void initializeTarget(std::unique_ptr<MCPlusBuilder> TargetBuilder) {
226+
MIB = std::move(TargetBuilder);
227+
}
228+
224229
/// Given DWOId returns CU if it exists in DWOCUs.
225230
Optional<DWARFUnit *> getDWOCU(uint64_t DWOId);
226231

File renamed without changes.
File renamed without changes.

bolt/src/BinaryFunction.h bolt/include/bolt/Core/BinaryFunction.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_FUNCTION_H
1515
#define LLVM_TOOLS_LLVM_BOLT_BINARY_FUNCTION_H
1616

17-
#include "BinaryBasicBlock.h"
18-
#include "BinaryContext.h"
19-
#include "BinaryLoop.h"
20-
#include "BinarySection.h"
21-
#include "DebugData.h"
22-
#include "JumpTable.h"
23-
#include "MCPlus.h"
24-
#include "NameResolver.h"
17+
#include "bolt/Core/BinaryBasicBlock.h"
18+
#include "bolt/Core/BinaryContext.h"
19+
#include "bolt/Core/BinaryLoop.h"
20+
#include "bolt/Core/BinarySection.h"
21+
#include "bolt/Core/DebugData.h"
22+
#include "bolt/Core/JumpTable.h"
23+
#include "bolt/Core/MCPlus.h"
24+
#include "bolt/Utils/NameResolver.h"
2525
#include "llvm/ADT/StringRef.h"
2626
#include "llvm/ADT/iterator.h"
2727
#include "llvm/BinaryFormat/Dwarf.h"
File renamed without changes.

bolt/src/BinarySection.h bolt/include/bolt/Core/BinarySection.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_BINARY_SECTION_H
1212
#define LLVM_TOOLS_LLVM_BOLT_BINARY_SECTION_H
1313

14-
#include "DebugData.h"
15-
#include "Relocation.h"
14+
#include "bolt/Core/DebugData.h"
15+
#include "bolt/Core/Relocation.h"
1616
#include "llvm/ADT/ArrayRef.h"
1717
#include "llvm/ADT/STLExtras.h"
1818
#include "llvm/BinaryFormat/ELF.h"
File renamed without changes.
File renamed without changes.
File renamed without changes.

bolt/src/JumpTable.h bolt/include/bolt/Core/JumpTable.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_JUMP_TABLE_H
1212
#define LLVM_TOOLS_LLVM_BOLT_JUMP_TABLE_H
1313

14-
#include "BinaryData.h"
14+
#include "bolt/Core/BinaryData.h"
1515
#include <map>
1616
#include <vector>
1717

File renamed without changes.

bolt/src/MCPlusBuilder.h bolt/include/bolt/Core/MCPlusBuilder.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#ifndef LLVM_TOOLS_LLVM_BOLT_MCPLUSBUILDER_H
1414
#define LLVM_TOOLS_LLVM_BOLT_MCPLUSBUILDER_H
1515

16-
#include "MCPlus.h"
17-
#include "Relocation.h"
16+
#include "bolt/Core/MCPlus.h"
17+
#include "bolt/Core/Relocation.h"
1818
#include "llvm/ADT/ArrayRef.h"
1919
#include "llvm/ADT/BitVector.h"
2020
#include "llvm/ADT/Optional.h"

bolt/src/ParallelUtilities.h bolt/include/bolt/Core/ParallelUtilities.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- ParallelUtilities.h - ----------------------------------*- C++ -*-===//
1+
//===-- ParallelUtilities.h - -----------------------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -15,7 +15,7 @@
1515
#ifndef LLVM_TOOLS_LLVM_BOLT_PARALLEL_UTILITIES_H
1616
#define LLVM_TOOLS_LLVM_BOLT_PARALLEL_UTILITIES_H
1717

18-
#include "MCPlusBuilder.h"
18+
#include "bolt/Core/MCPlusBuilder.h"
1919
#include "llvm/Support/CommandLine.h"
2020

2121
using namespace llvm;
File renamed without changes.

bolt/src/Passes/ADRRelaxationPass.h bolt/include/bolt/Passes/ADRRelaxationPass.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_ADRRELAXATIONPASS_H
1313
#define LLVM_TOOLS_LLVM_BOLT_PASSES_ADRRELAXATIONPASS_H
1414

15-
#include "BinaryPasses.h"
15+
#include "bolt/Passes/BinaryPasses.h"
1616

1717
// This pass replaces AArch64 non-local ADR instructions
1818
// with ADRP + ADD due to small offset range of ADR instruction

bolt/src/Passes/Aligner.h bolt/include/bolt/Passes/Aligner.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_ALIGNER_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_ALIGNER_H
1313

14-
#include "BinaryPasses.h"
14+
#include "bolt/Passes/BinaryPasses.h"
1515

1616
namespace llvm {
1717
namespace bolt {

bolt/src/Passes/AllocCombiner.h bolt/include/bolt/Passes/AllocCombiner.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEDEFRAG_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEDEFRAG_H
1313

14-
#include "BinaryPasses.h"
14+
#include "bolt/Passes/BinaryPasses.h"
1515

1616
namespace llvm {
1717
namespace bolt {

bolt/src/Passes/BinaryFunctionCallGraph.h bolt/include/bolt/Passes/BinaryFunctionCallGraph.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_BINARY_FUNCTION_CALLGRAPH_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_BINARY_FUNCTION_CALLGRAPH_H
1313

14-
#include "CallGraph.h"
15-
16-
#include <unordered_map>
17-
#include <functional>
14+
#include "bolt/Passes/CallGraph.h"
1815
#include <deque>
16+
#include <functional>
17+
#include <unordered_map>
1918

2019
namespace llvm {
2120
namespace bolt {

bolt/src/Passes/BinaryPasses.h bolt/include/bolt/Passes/BinaryPasses.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_BINARY_PASSES_H
1414
#define LLVM_TOOLS_LLVM_BOLT_PASSES_BINARY_PASSES_H
1515

16-
#include "BinaryContext.h"
17-
#include "BinaryFunction.h"
18-
#include "DynoStats.h"
16+
#include "bolt/Core/BinaryContext.h"
17+
#include "bolt/Core/BinaryFunction.h"
18+
#include "bolt/Core/DynoStats.h"
1919
#include "llvm/Support/CommandLine.h"
2020
#include <atomic>
2121
#include <map>
File renamed without changes.
File renamed without changes.
File renamed without changes.

bolt/src/Passes/DataflowAnalysis.h bolt/include/bolt/Passes/DataflowAnalysis.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_DATAFLOWANALYSIS_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_DATAFLOWANALYSIS_H
1313

14-
#include "BinaryContext.h"
15-
#include "BinaryFunction.h"
14+
#include "bolt/Core/BinaryContext.h"
15+
#include "bolt/Core/BinaryFunction.h"
1616
#include "llvm/Support/Errc.h"
1717
#include <queue>
1818

bolt/src/Passes/DataflowInfoManager.h bolt/include/bolt/Passes/DataflowInfoManager.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_DATAFLOWINFOMANAGER_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_DATAFLOWINFOMANAGER_H
1313

14-
#include "DominatorAnalysis.h"
15-
#include "LivenessAnalysis.h"
16-
#include "ReachingDefOrUse.h"
17-
#include "ReachingInsns.h"
18-
#include "StackAllocationAnalysis.h"
19-
#include "StackPointerTracking.h"
20-
#include "StackReachingUses.h"
14+
#include "bolt/Passes/DominatorAnalysis.h"
15+
#include "bolt/Passes/LivenessAnalysis.h"
16+
#include "bolt/Passes/ReachingDefOrUse.h"
17+
#include "bolt/Passes/ReachingInsns.h"
18+
#include "bolt/Passes/StackAllocationAnalysis.h"
19+
#include "bolt/Passes/StackPointerTracking.h"
20+
#include "bolt/Passes/StackReachingUses.h"
2121

2222
namespace llvm {
2323
namespace bolt {

bolt/src/Passes/DominatorAnalysis.h bolt/include/bolt/Passes/DominatorAnalysis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_DOMINATORANALYSIS_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_DOMINATORANALYSIS_H
1313

14-
#include "DataflowAnalysis.h"
14+
#include "bolt/Passes/DataflowAnalysis.h"
1515
#include "llvm/Support/CommandLine.h"
1616
#include "llvm/Support/Timer.h"
1717

bolt/src/Passes/FrameAnalysis.h bolt/include/bolt/Passes/FrameAnalysis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEANALYSIS_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEANALYSIS_H
1313

14-
#include "StackPointerTracking.h"
14+
#include "bolt/Passes/StackPointerTracking.h"
1515

1616
namespace llvm {
1717
namespace bolt {

bolt/src/Passes/FrameOptimizer.h bolt/include/bolt/Passes/FrameOptimizer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEOPTIMIZER_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_FRAMEOPTIMIZER_H
1313

14-
#include "BinaryPasses.h"
14+
#include "bolt/Passes/BinaryPasses.h"
1515

1616
namespace llvm {
1717
namespace bolt {

bolt/src/Passes/HFSort.h bolt/include/bolt/Passes/HFSort.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#ifndef LLVM_TOOLS_LLVM_BOLT_HFSORT_H
3737
#define LLVM_TOOLS_LLVM_BOLT_HFSORT_H
3838

39-
#include "CallGraph.h"
39+
#include "bolt/Passes/CallGraph.h"
4040

4141
#include <string>
4242
#include <vector>

bolt/src/Passes/IdenticalCodeFolding.h bolt/include/bolt/Passes/IdenticalCodeFolding.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_IDENTICAL_CODE_FOLDING_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_IDENTICAL_CODE_FOLDING_H
1313

14-
#include "BinaryFunction.h"
15-
#include "Passes/BinaryPasses.h"
14+
#include "bolt/Core/BinaryFunction.h"
15+
#include "bolt/Passes/BinaryPasses.h"
1616

1717
namespace llvm {
1818
namespace bolt {

bolt/src/Passes/IndirectCallPromotion.h bolt/include/bolt/Passes/IndirectCallPromotion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_INDIRECT_CALL_PROMOTION_H
1414
#define LLVM_TOOLS_LLVM_BOLT_PASSES_INDIRECT_CALL_PROMOTION_H
1515

16-
#include "BinaryPasses.h"
16+
#include "bolt/Passes/BinaryPasses.h"
1717

1818
namespace llvm {
1919
namespace bolt {

bolt/src/Passes/Inliner.h bolt/include/bolt/Passes/Inliner.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_INLINER_H
1414
#define LLVM_TOOLS_LLVM_BOLT_PASSES_INLINER_H
1515

16-
#include "BinaryPasses.h"
16+
#include "bolt/Passes/BinaryPasses.h"
1717

1818
namespace llvm {
1919
namespace bolt {

bolt/src/Passes/Instrumentation.h bolt/include/bolt/Passes/Instrumentation.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_INSTRUMENTATION_H
1717
#define LLVM_TOOLS_LLVM_BOLT_PASSES_INSTRUMENTATION_H
1818

19-
#include "BinaryPasses.h"
20-
#include "Passes/InstrumentationSummary.h"
19+
#include "bolt/Passes/BinaryPasses.h"
20+
#include "bolt/Passes/InstrumentationSummary.h"
2121

2222
namespace llvm {
2323
namespace bolt {

bolt/src/Passes/JTFootprintReduction.h bolt/include/bolt/Passes/JTFootprintReduction.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_JT_FOOTPRINT_REDUCTION_H
1414
#define LLVM_TOOLS_LLVM_BOLT_PASSES_JT_FOOTPRINT_REDUCTION_H
1515

16-
#include "BinaryPasses.h"
16+
#include "bolt/Passes/BinaryPasses.h"
1717

1818
namespace llvm {
1919
namespace bolt {

bolt/src/Passes/LivenessAnalysis.h bolt/include/bolt/Passes/LivenessAnalysis.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_LIVENESSANALYSIS_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_LIVENESSANALYSIS_H
1313

14-
#include "DataflowAnalysis.h"
15-
#include "RegAnalysis.h"
14+
#include "bolt/Passes/DataflowAnalysis.h"
15+
#include "bolt/Passes/RegAnalysis.h"
1616
#include "llvm/Support/CommandLine.h"
1717

1818
namespace opts {

bolt/src/Passes/LongJmp.h bolt/include/bolt/Passes/LongJmp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_LONGJMP_H
1111
#define LLVM_TOOLS_LLVM_BOLT_PASSES_LONGJMP_H
1212

13-
#include "BinaryPasses.h"
13+
#include "bolt/Passes/BinaryPasses.h"
1414

1515
namespace llvm {
1616
namespace bolt {

bolt/src/Passes/LoopInversionPass.h bolt/include/bolt/Passes/LoopInversionPass.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_LOOPINVERSION_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_LOOPINVERSION_H
1313

14-
#include "BinaryPasses.h"
14+
#include "bolt/Passes/BinaryPasses.h"
1515

1616
// This pass founds cases when BBs have layout:
1717
// #BB0:
File renamed without changes.

bolt/src/Passes/PLTCall.h bolt/include/bolt/Passes/PLTCall.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_PLTCALL_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_PLTCALL_H
1313

14-
#include "BinaryPasses.h"
14+
#include "bolt/Passes/BinaryPasses.h"
1515

1616
namespace llvm {
1717
namespace bolt {

bolt/src/Passes/PatchEntries.h bolt/include/bolt/Passes/PatchEntries.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- Passes/PatchEntries.h - pass for patching function entries -------===//
1+
//===--- PatchEntries.h - pass for patching function entries --------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -13,7 +13,7 @@
1313
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_PATCH_ENTRIES_H
1414
#define LLVM_TOOLS_LLVM_BOLT_PASSES_PATCH_ENTRIES_H
1515

16-
#include "Passes/BinaryPasses.h"
16+
#include "bolt/Passes/BinaryPasses.h"
1717

1818
namespace llvm {
1919
namespace bolt {

bolt/src/Passes/ReachingDefOrUse.h bolt/include/bolt/Passes/ReachingDefOrUse.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REACHINGDEFORUSE_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REACHINGDEFORUSE_H
1313

14-
#include "DataflowAnalysis.h"
15-
#include "RegAnalysis.h"
14+
#include "bolt/Passes/DataflowAnalysis.h"
15+
#include "bolt/Passes/RegAnalysis.h"
1616
#include "llvm/ADT/Optional.h"
1717
#include "llvm/Support/CommandLine.h"
1818
#include "llvm/Support/Timer.h"

bolt/src/Passes/ReachingInsns.h bolt/include/bolt/Passes/ReachingInsns.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REACHINGINSNS_H
1212
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REACHINGINSNS_H
1313

14-
#include "DataflowAnalysis.h"
14+
#include "bolt/Passes/DataflowAnalysis.h"
1515
#include "llvm/Support/CommandLine.h"
1616
#include "llvm/Support/Timer.h"
1717

File renamed without changes.

bolt/src/Passes/RegReAssign.h bolt/include/bolt/Passes/RegReAssign.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REGREASSIGN_H
1111
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REGREASSIGN_H
1212

13-
#include "BinaryPasses.h"
14-
#include "RegAnalysis.h"
13+
#include "bolt/Passes/BinaryPasses.h"
14+
#include "bolt/Passes/RegAnalysis.h"
1515

1616
namespace llvm {
1717
namespace bolt {

bolt/src/Passes/ReorderAlgorithm.h bolt/include/bolt/Passes/ReorderAlgorithm.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#ifndef LLVM_TOOLS_LLVM_BOLT_PASSES_REORDER_ALGORITHM_H
1414
#define LLVM_TOOLS_LLVM_BOLT_PASSES_REORDER_ALGORITHM_H
1515

16-
#include "BinaryFunction.h"
17-
#include <unordered_map>
16+
#include "bolt/Core/BinaryFunction.h"
1817
#include <memory>
18+
#include <unordered_map>
1919
#include <vector>
2020

2121

0 commit comments

Comments
 (0)