forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize SILOptimizer directories for better discoverability.
(libraries now) It has been generally agreed that we need to do this reorg, and now seems like the perfect time. Some major pass reorganization is in the works. This does not have to be the final word on the matter. The consensus among those working on the code is that it's much better than what we had and a better starting point for future bike shedding. Note that the previous organization was designed to allow separate analysis and optimization libraries. It turns out this is an artificial distinction and not an important goal.
- Loading branch information
Showing
145 changed files
with
121 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ D: ClangImporter, Serialization, (Objective-)C printer, Driver | |
|
||
N: Nadav Rotem | ||
E: [email protected] | ||
D: SILAnalysis, SILPasses | ||
D: SILOptimizer | ||
|
||
N: Anna Zaks | ||
E: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
set(ANALYSIS_SOURCES | ||
Analysis/ARCAnalysis.cpp | ||
Analysis/AliasAnalysis.cpp | ||
Analysis/Analysis.cpp | ||
Analysis/ArraySemantic.cpp | ||
Analysis/BasicCalleeAnalysis.cpp | ||
Analysis/CFG.cpp | ||
Analysis/ClassHierarchyAnalysis.cpp | ||
Analysis/ColdBlockInfo.cpp | ||
Analysis/DestructorAnalysis.cpp | ||
Analysis/EscapeAnalysis.cpp | ||
Analysis/FunctionOrder.cpp | ||
Analysis/IVAnalysis.cpp | ||
Analysis/LoopAnalysis.cpp | ||
Analysis/LoopRegionAnalysis.cpp | ||
Analysis/MemoryBehavior.cpp | ||
Analysis/RCIdentityAnalysis.cpp | ||
Analysis/SideEffectAnalysis.cpp | ||
Analysis/SimplifyInstruction.cpp | ||
Analysis/TypeExpansionAnalysis.cpp | ||
Analysis/ValueTracking.cpp | ||
PARENT_SCOPE) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
add_subdirectory(ARC) | ||
add_subdirectory(Analysis) | ||
add_subdirectory(IPO) | ||
add_subdirectory(LoopTransforms) | ||
add_subdirectory(Mandatory) | ||
add_subdirectory(PassManager) | ||
add_subdirectory(SILCombiner) | ||
add_subdirectory(Transforms) | ||
add_subdirectory(UtilityPasses) | ||
add_subdirectory(Utils) | ||
add_swift_library(swiftSILOptimizer | ||
${ARC_SOURCES} | ||
${ANALYSIS_SOURCES} | ||
${SILCOMBINER_SOURCES} | ||
${UTILITYPASSES_SOURCES} | ||
${UTILS_SOURCES} | ||
${PASSMANAGER_SOURCES} | ||
${LOOPTRANSFORMS_SOURCES} | ||
${MANDATORY_SOURCES} | ||
${TRANSFORMS_SOURCES} | ||
${IPO_SOURCES} | ||
LINK_LIBRARIES swiftSIL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
set(IPO_SOURCES | ||
IPO/CapturePromotion.cpp | ||
IPO/DeadFunctionElimination.cpp | ||
IPO/GlobalOpt.cpp | ||
IPO/PerformanceInliner.cpp | ||
IPO/CapturePropagation.cpp | ||
IPO/ExternalDefsToDecls.cpp | ||
IPO/GlobalPropertyOpt.cpp | ||
IPO/UsePrespecialized.cpp | ||
IPO/ClosureSpecializer.cpp | ||
IPO/FunctionSignatureOpts.cpp | ||
IPO/LetPropertiesOpts.cpp | ||
PARENT_SCOPE) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set(LOOPTRANSFORMS_SOURCES | ||
LoopTransforms/ArrayBoundsCheckOpts.cpp | ||
LoopTransforms/COWArrayOpt.cpp | ||
LoopTransforms/LoopRotate.cpp | ||
LoopTransforms/LICM.cpp | ||
PARENT_SCOPE) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
set(MANDATORY_SOURCES | ||
Mandatory/DefiniteInitialization.cpp | ||
Mandatory/MandatoryInlining.cpp | ||
Mandatory/DIMemoryUseCollector.cpp | ||
Mandatory/DataflowDiagnostics.cpp | ||
Mandatory/DiagnoseUnreachable.cpp | ||
Mandatory/PredictableMemOpt.cpp | ||
Mandatory/ConstantPropagation.cpp | ||
Mandatory/InOutDeshadowing.cpp | ||
PARENT_SCOPE) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
lib/SILPasses/PassManager/CMakeLists.txt → lib/SILOptimizer/PassManager/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
set(TRANSFORMS_SOURCES | ||
Transforms/AllocBoxToStack.cpp | ||
Transforms/ArrayCountPropagation.cpp | ||
Transforms/MergeCondFail.cpp | ||
Transforms/SILSROA.cpp | ||
Transforms/CSE.cpp | ||
Transforms/RedundantOverflowCheckRemoval.cpp | ||
Transforms/SimplifyCFG.cpp | ||
Transforms/CopyForwarding.cpp | ||
Transforms/RemovePin.cpp | ||
Transforms/Sink.cpp | ||
Transforms/DeadCodeElimination.cpp | ||
Transforms/SILCleanup.cpp | ||
Transforms/SpeculativeDevirtualizer.cpp | ||
Transforms/ReleaseDevirtualizer.cpp | ||
Transforms/DeadObjectElimination.cpp | ||
Transforms/SILCodeMotion.cpp | ||
Transforms/StackPromotion.cpp | ||
Transforms/DeadStoreElimination.cpp | ||
Transforms/SILLowerAggregateInstrs.cpp | ||
Transforms/RedundantLoadElimination.cpp | ||
Transforms/SILMem2Reg.cpp | ||
PARENT_SCOPE) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
set(UTILS_SOURCES | ||
Utils/CFG.cpp | ||
Utils/Local.cpp | ||
Utils/SILInliner.cpp | ||
Utils/SILSSAUpdater.cpp | ||
Utils/ConstantFolding.cpp | ||
Utils/GenericCloner.cpp | ||
Utils/Generics.cpp | ||
Utils/Devirtualize.cpp | ||
Utils/CheckedCastBrJumpThreading.cpp | ||
Utils/LoopUtils.cpp | ||
PARENT_SCOPE) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters