File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -539,8 +539,8 @@ void SILCloner<ImplClass>::cloneReachableBlocks(
539
539
clonePhiArgs (startBB);
540
540
541
541
// Premap exit blocks to terminate so that visitBlocksDepthFirst terminates
542
- // after discovering the cloned region. Mappint an exit block to itself
543
- // provide the correct destination block during visitTerminator.
542
+ // after discovering the cloned region. Mapping an exit block to itself
543
+ // provides the correct destination block during visitTerminator.
544
544
for (auto *exitBB : exitBlocks)
545
545
BBMap[exitBB] = exitBB;
546
546
Original file line number Diff line number Diff line change 18
18
#ifndef SWIFT_SIL_SILINLINER_H
19
19
#define SWIFT_SIL_SILINLINER_H
20
20
21
+ #include " swift/AST/SubstitutionMap.h"
22
+ #include " swift/SIL/ApplySite.h"
23
+ #include " swift/SIL/SILInstruction.h"
24
+ #include " swift/SIL/SILOpenedArchetypesTracker.h"
21
25
#include " llvm/ADT/DenseMap.h"
22
- #include " swift/SIL/TypeSubstCloner.h"
23
- #include " swift/SILOptimizer/Utils/SILOptFunctionBuilder.h"
24
26
#include < functional>
25
27
26
28
namespace swift {
27
29
30
+ class SILOptFunctionBuilder ;
31
+
28
32
// For now Free is 0 and Expensive is 1. This can be changed in the future by
29
33
// adding more categories.
30
34
enum class InlineCost : unsigned {
Original file line number Diff line number Diff line change 60
60
#include " swift/SIL/InstructionUtils.h"
61
61
#include " swift/SIL/SILCloner.h"
62
62
#include " swift/SIL/SILFunction.h"
63
- #include " swift/SILOptimizer/Utils/SILOptFunctionBuilder.h"
64
63
#include " swift/SIL/SILInstruction.h"
65
64
#include " swift/SIL/SILModule.h"
66
65
#include " swift/SILOptimizer/Analysis/BasicCalleeAnalysis.h"
69
68
#include " swift/SILOptimizer/Analysis/ValueTracking.h"
70
69
#include " swift/SILOptimizer/PassManager/Passes.h"
71
70
#include " swift/SILOptimizer/PassManager/Transforms.h"
71
+ #include " swift/SILOptimizer/Utils/Local.h"
72
72
#include " swift/SILOptimizer/Utils/SILInliner.h"
73
+ #include " swift/SILOptimizer/Utils/SILOptFunctionBuilder.h"
73
74
#include " swift/SILOptimizer/Utils/SpecializationMangler.h"
74
75
#include " llvm/ADT/SmallString.h"
75
76
#include " llvm/ADT/Statistic.h"
Original file line number Diff line number Diff line change 12
12
13
13
#include " swift/SILOptimizer/Utils/PerformanceInlinerUtils.h"
14
14
#include " swift/AST/Module.h"
15
+ #include " swift/SILOptimizer/Utils/Local.h"
15
16
16
17
// ===----------------------------------------------------------------------===//
17
18
// ConstantTracker
Original file line number Diff line number Diff line change 12
12
13
13
#define DEBUG_TYPE " sil-inliner"
14
14
15
- #include " swift/SILOptimizer/Utils/CFG.h"
16
15
#include " swift/SILOptimizer/Utils/SILInliner.h"
17
- #include " swift/SILOptimizer/Utils/SILOptFunctionBuilder.h"
18
16
#include " swift/SIL/SILDebugScope.h"
17
+ #include " swift/SIL/TypeSubstCloner.h"
18
+ #include " swift/SILOptimizer/Utils/CFG.h"
19
+ #include " swift/SILOptimizer/Utils/SILOptFunctionBuilder.h"
19
20
#include " llvm/ADT/STLExtras.h"
20
21
#include " llvm/Support/Debug.h"
21
22
using namespace swift ;
You can’t perform that action at this time.
0 commit comments