Skip to content

Commit 37af51d

Browse files
authored
Merge branch 'main' into es-pkg-acl
2 parents c2acf61 + e032b31 commit 37af51d

File tree

1,075 files changed

+40951
-20080
lines changed

Some content is hidden

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

1,075 files changed

+40951
-20080
lines changed

.github/CODEOWNERS

Lines changed: 113 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,33 @@
11
# Lines starting with '#' are comments.
2-
# Each line is a file pattern followed by one or more owners.
2+
# Each line is a case-sensitive file pattern followed by one or more owners.
33
# Order is important. The last matching pattern has the most precedence.
4+
# More information: https://docs.github.com/en/articles/about-code-owners
45

5-
# Owners of ASTGen
6-
lib/ASTGen @zoecarver @CodaFi
6+
# .github
7+
/.github/ @shahmishal
8+
/.github/CODEOWNERS @AnthonyLatsis @shahmishal
9+
/.github/ISSUE_TEMPLATE/ @AnthonyLatsis @hborla @LucianoPAlmeida @shahmishal @xedin
10+
/.github/PULL_REQUEST_TEMPLATE.md @AnthonyLatsis @hborla @LucianoPAlmeida @shahmishal @xedin
11+
12+
# docs
13+
/docs/HowToGuides/ @AnthonyLatsis @LucianoPAlmeida @xedin
14+
/docs/Generics/ @slavapestov
15+
/docs/Generics.rst @slavapestov
16+
17+
# Standard Library
18+
# TODO: /stdlib/
19+
/stdlib/public/Cxx/ @zoecarver @hyp @egorzhdan
20+
/stdlib/public/Distributed/ @ktoso
21+
/stdlib/public/Windows/ @compnerd
22+
# TODO: /*test/stdlib/
23+
# TODO: /unittests/stdlib/
24+
25+
# ASTGen
26+
/lib/ASTGen/ @zoecarver @CodaFi
27+
/test/ASTGen/ @zoecarver @CodaFi
728

829
# Dependency scanning
930
include/swift/DependencyScan @artemcm
10-
lib/AST/ModuleLoader.cpp @artemcm
1131
lib/DependencyScan @artemcm
1232
lib/Frontend/ModuleInterfaceLoader.cpp @artemcm
1333
lib/Serialization/SerializedModuleLoader.cpp @artemcm
@@ -19,9 +39,10 @@ lib/Driver @artemcm
1939
test/Driver @artemcm
2040

2141
# Owners of the parser
22-
include/swift/Parse @ahoppen @bnbarham @CodaFi @DougGregor @rintaro
23-
lib/Parse @ahoppen @bnbarham @CodaFi @DougGregor @rintaro
24-
test/Parse @ahoppen @bnbarham @CodaFi @DougGregor @rintaro
42+
/include/swift/Parse/ @ahoppen @bnbarham @CodaFi @DougGregor @rintaro
43+
/lib/Parse/ @ahoppen @bnbarham @CodaFi @DougGregor @rintaro
44+
/*test/Parse/ @ahoppen @bnbarham @CodaFi @DougGregor @rintaro
45+
/unittests/Parse/ @ahoppen @bnbarham @CodaFi @DougGregor @rintaro
2546

2647
SwiftCompilerSources @eeckstein
2748

@@ -30,7 +51,6 @@ include/swift/ClangImporter @zoecarver @hyp @egorzhdan
3051
include/swift/PrintAsClang @zoecarver @hyp @egorzhdan
3152
lib/ClangImporter @zoecarver @hyp @egorzhdan
3253
lib/PrintAsClang @zoecarver @hyp @egorzhdan
33-
stdlib/public/Cxx @zoecarver @hyp @egorzhdan
3454
test/Interop @zoecarver @hyp @egorzhdan
3555

3656
# Threading implementation
@@ -40,5 +60,89 @@ lib/Threading @al45tair
4060
# Windows support
4161
cmake/**/*Windows* @compnerd
4262
lib/Basic/Windows @compnerd
43-
stdlib/public/Windows @compnerd
4463
utils/*windows* @compnerd
64+
65+
# Repository checkout utils
66+
67+
/utils/update_checkout/ @shahmishal
68+
/utils/update-checkout* @shahmishal
69+
70+
71+
# AST
72+
/include/swift/AST/ @hborla @slavapestov @xedin
73+
/include/swift/AST/*Conformance* @slavapestov
74+
/include/swift/AST/*Distributed* @ktoso
75+
/include/swift/AST/Evaluator* @CodaFi @slavapestov
76+
/include/swift/AST/*Generic* @hborla @slavapestov
77+
/include/swift/AST/*Protocol* @hborla @slavapestov
78+
/include/swift/AST/*Requirement* @hborla @slavapestov
79+
/include/swift/AST/*Substitution* @slavapestov
80+
/lib/AST/ @hborla @slavapestov @xedin
81+
/lib/AST/*Conformance* @slavapestov
82+
/lib/AST/Evaluator* @CodaFi @slavapestov
83+
/lib/AST/*Generic* @hborla @slavapestov
84+
/lib/AST/ModuleLoader.cpp @artemcm
85+
/lib/AST/*Requirement* @hborla @slavapestov
86+
/lib/AST/RequirementMachine/ @slavapestov
87+
/lib/AST/*Substitution @slavapestov
88+
/unittests/AST/ @hborla @slavapestov @xedin
89+
/unittests/AST/*Evaluator* @CodaFi @slavapestov
90+
91+
# Sema
92+
/include/swift/Sema/ @hborla @slavapestov @xedin
93+
/include/swift/Sema/Constraint* @hborla @xedin
94+
/include/swift/Sema/CS* @hborla @xedin
95+
/lib/Sema/ @hborla @slavapestov @xedin
96+
/lib/Sema/Constraint* @hborla @xedin
97+
/lib/Sema/CS* @hborla @xedin
98+
/lib/Sema/CodeSynthesisDistributed* @hborla @ktoso
99+
/lib/Sema/DerivedConformance* @slavapestov
100+
/lib/Sema/DerivedConformanceDistributed* @ktoso @slavapestov
101+
/lib/Sema/TypeCheckDistributed* @hborla @ktoso @xedin
102+
/lib/Sema/TypeCheckType* @AnthonyLatsis @hborla @slavapestov @xedin
103+
/lib/Sema/TypeCheckProtocol* @AnthonyLatsis @hborla @slavapestov
104+
/test/Constraints/ @hborla @xedin
105+
/test/decl/ @hborla @slavapestov
106+
/test/decl/protocol/ @AnthonyLatsis @hborla @slavapestov
107+
# FIXME: This file could have a dedicated directory.
108+
/test/decl/protocol/special/DistributedActor.swift @ktoso
109+
# FIXME: Should there be a 'Sema' folder under 'Distributed'? Or perhaps it
110+
# should be the other way around, i.e 'Sema/Distributed', 'SILGen/Distributed',
111+
# etc.?
112+
/test/Distributed/* @ktoso
113+
# FIXME: Is there a better way to structure this high-level 'Inputs' dir.? We
114+
# want only the Sema bits here.
115+
/test/Distributed/Inputs/ @ktoso
116+
/test/expr/ @hborla @slavapestov @xedin
117+
/test/Generics/ @hborla @slavapestov
118+
/test/Sema/ @hborla @slavapestov @xedin
119+
/test/stmt/ @hborla @xedin
120+
/test/type/ @hborla @slavapestov @xedin
121+
/validation-test/Sema/ @hborla @slavapestov @xedin
122+
/unittests/Sema/ @hborla @xedin
123+
124+
# SIL/SILGen
125+
# TODO: /include/swift/SIL/
126+
# TODO: /lib/SIL/
127+
# TODO: /lib/SILGen/
128+
/lib/SILGen/*Distributed* @ktoso
129+
/test/Distributed/SIL/ @ktoso
130+
# TODO: /*test/SIL/
131+
# TODO: /*test/SILGen/
132+
# TODO: /unittests/SIL/
133+
134+
# SILOptimizer
135+
# TODO: /include/swift/SILOptimizer/
136+
/include/swift/SILOptimizer/Utils/Distributed* @ktoso
137+
# TODO: /lib/SILOptimizer/
138+
/lib/SILOptimizer/Utils/Distributed* @ktoso
139+
# TODO: /*test/SILOptimizer/
140+
141+
# IRGen
142+
# TODO: /include/swift/IRGen/
143+
# TODO: /lib/IRGen/
144+
/lib/IRGen/*Distributed* @ktoso
145+
# TODO: /*test/IRGen/
146+
147+
# TODO: Find a better place for this entry.
148+
/test/Distributed/Runtime @ktoso

CMakeLists.txt

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ set(SWIFT_ANALYZE_CODE_COVERAGE FALSE CACHE STRING
268268
# SWIFT_VERSION is deliberately /not/ cached so that an existing build directory
269269
# can be reused when a new version of Swift comes out (assuming the user hasn't
270270
# manually set it as part of their own CMake configuration).
271-
set(SWIFT_VERSION "5.8")
271+
set(SWIFT_VERSION "5.9")
272272

273273
set(SWIFT_VENDOR "" CACHE STRING
274274
"The vendor name of the Swift compiler")
@@ -460,6 +460,7 @@ set(COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_OSX "10.9")
460460
set(COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_IOS "7.0")
461461
set(COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_TVOS "9.0")
462462
set(COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_WATCHOS "2.0")
463+
set(COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_MACCATALYST "13.1")
463464

464465
#
465466
# User-configurable debugging options.
@@ -564,6 +565,10 @@ option(SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING
564565
"Enable experimental string processing"
565566
FALSE)
566567

568+
option(SWIFT_ENABLE_EXPERIMENTAL_REFLECTION
569+
"Enable build of the Swift reflection module"
570+
FALSE)
571+
567572
option(SWIFT_ENABLE_DISPATCH
568573
"Enable use of libdispatch"
569574
TRUE)
@@ -585,6 +590,13 @@ option(SWIFT_THREADING_PACKAGE
585590
Valid package names are 'pthreads', 'darwin', 'linux', 'win32', 'c11', 'none'
586591
or the empty string for the SDK default.")
587592

593+
option(SWIFT_ENABLE_MACCATALYST
594+
"Build the Standard Library and overlays with MacCatalyst support"
595+
FALSE)
596+
597+
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_MACCATALYST "14.5" CACHE STRING
598+
"Minimum deployment target version for macCatalyst")
599+
588600
#
589601
# End of user-configurable options.
590602
#
@@ -1102,6 +1114,7 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
11021114
message(STATUS "Distributed Support: ${SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED}")
11031115
message(STATUS "String Processing Support: ${SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING}")
11041116
message(STATUS "Unicode Support: ${SWIFT_STDLIB_ENABLE_UNICODE_DATA}")
1117+
message(STATUS "Reflection Support: ${SWIFT_ENABLE_EXPERIMENTAL_REFLECTION}")
11051118
message(STATUS "")
11061119
else()
11071120
message(STATUS "Not building Swift standard library, SDK overlays, and runtime")
@@ -1188,8 +1201,8 @@ else()
11881201
add_subdirectory(stdlib/public/BackDeployConcurrency)
11891202
endif()
11901203

1191-
# Some tools (e.g. swift-reflection-dump) rely on a host swiftReflection, so
1192-
# ensure we build that when building tools.
1204+
# Some tools (e.g. swift-reflection-dump) rely on a host swiftRemoteInspection,
1205+
# so ensure we build that when building tools.
11931206
if(SWIFT_INCLUDE_TOOLS)
11941207
add_subdirectory(stdlib/public/SwiftShims/swift/shims)
11951208
endif()

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
| **CentOS 7** | x86_64 |[![Build Status](https://ci.swift.org/job/oss-swift-package-centos-7/lastCompletedBuild/badge/icon)](https://ci.swift.org/job/oss-swift-package-centos-7)|
1818
| **Amazon Linux 2** | x86_64 |[![Build Status](https://ci.swift.org/job/oss-swift-package-amazon-linux-2/lastCompletedBuild/badge/icon)](https://ci.swift.org/job/oss-swift-package-amazon-linux-2)|
1919
| **Amazon Linux 2** | AArch64 |[![Build Status](https://ci.swift.org/job/oss-swift-package-amazon-linux-2-aarch64/lastCompletedBuild/badge/icon)](https://ci.swift.org/job/oss-swift-package-amazon-linux-2-aarch64)|
20+
| **Universal Base Image 9** | x86_64 |[![Build Status](https://ci.swift.org/job/oss-swift-package-ubi-9/lastCompletedBuild/badge/icon)](https://ci.swift.org/job/oss-swift-package-ubi-9)|
2021

2122
**Swift Community-Hosted CI Platforms**
2223

@@ -31,7 +32,7 @@
3132

3233
Swift is a high-performance system programming language. It has a clean
3334
and modern syntax, offers seamless access to existing C and Objective-C code
34-
and frameworks, and is memory safe by default.
35+
and frameworks, and is memory-safe by default.
3536

3637
Although inspired by Objective-C and many other languages, Swift is not itself a
3738
C-derived language. As a complete and independent language, Swift packages core

SwiftCompilerSources/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ With instruction passes it's possible to implement small peephole optimizations
156156

157157
To add a new instruction pass:
158158

159-
* add a `SWIFT_INSTRUCTION_PASS` entry in `Passes.def`
159+
* add a `SWIFT_SILCOMBINE_PASS` entry in `Passes.def`
160160
* create a new Swift file in `SwiftCompilerSources/Optimizer/InstructionPasses`
161-
* add an `InstructionPass` global
161+
* implement the `simplify` function in conformance to `SILCombineSimplifyable`
162162
* register the pass in `registerSwiftPasses()`
163163
* if this pass replaces an existing `SILCombiner` visit function, remove the old visit function
164164

0 commit comments

Comments
 (0)