Skip to content

Merge 2020-09-24 into tensorflow #34066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 378 commits into from
Sep 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
378 commits
Select commit Hold shift + click to select a range
22ef39a
[semantic-arc] Fix an initialization thinko.
gottesmm Sep 17, 2020
4cbc07c
[ownership] Add a frontend option to stop optimizing right before we …
gottesmm Sep 17, 2020
5f1f37e
[stdlib] Fix the OpenBSD modulemap.
3405691582 Sep 17, 2020
4258267
Merge pull request #33983 from gottesmm/pr-40b05a478548bd5fb2304ea730…
gottesmm Sep 18, 2020
d7ce84a
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 18, 2020
992ffa6
Merge pull request #33981 from slavapestov/simplify-astscope-closure-…
slavapestov Sep 18, 2020
e1ef045
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 18, 2020
2dd7585
Specify Float80 as supported on OpenBSD.
3405691582 Sep 17, 2020
5c54037
Merge pull request #33985 from 3405691582/FixLibcModulemap
swift-ci Sep 18, 2020
0525f01
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 18, 2020
6508a18
Merge pull request #33850 from varungandhi-apple/vg-doc-link-jordan-b…
swift-ci Sep 18, 2020
8506e61
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 18, 2020
a445079
Merge pull request #33984 from gottesmm/pr-5adf3ac760b4c158f5710c5ddb…
gottesmm Sep 18, 2020
9bdb98e
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 18, 2020
8e6346e
Merge pull request #33982 from DougGregor/concurrency-actor-conformance
DougGregor Sep 18, 2020
c916dc4
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 18, 2020
d7f4b1a
AST: Capture list bindings now point back to their parent CaptureList…
slavapestov Sep 18, 2020
38883ce
ASTScope: Remove unused shouldCreateAccessorScope() method
slavapestov Sep 18, 2020
9c4c959
AST: Generalize CaptureListEntry::isSimpleSelfCapture() to work witho…
slavapestov Sep 18, 2020
9b851bf
ASTScope: Collapse PureFunctionBodyScope and MethodBodyScope
slavapestov Sep 18, 2020
ed17c33
ASTScope: Compute 'selfDC' directly in ASTScopeDeclConsumerForUnquali…
slavapestov Sep 18, 2020
ab4c584
[Concurrency] Centralize rejection of concurrency-only attributes.
DougGregor Sep 17, 2020
f196c16
Merge pull request #32430 from kateinoigakukun/katei/llvm-lto-driver
gottesmm Sep 18, 2020
7cb809b
ASTScope: Remove old implementation of 'selfDC' computation
slavapestov Sep 18, 2020
d4cc35a
AST: Remove VarDecl::hasNonPatternBindingInit()
slavapestov Sep 18, 2020
f20a7f9
Merge pull request #33988 from 3405691582/FixSwiftDtoa
compnerd Sep 18, 2020
f44de69
Merge branch 'tensorflow' of github.com:apple/swift into tensorflow-s…
texasmichelle Sep 18, 2020
fb88f26
[gardening] Add a test case for #33984
gottesmm Sep 17, 2020
1479855
Merge branch 'tensorflow' of github.com:apple/swift into tensorflow-s…
ainu-bot Sep 18, 2020
f91767c
[Conformance checker] Capture potential matches for missing witnesses.
DougGregor Sep 18, 2020
57215cb
SIL.rst: Add documentation for async function representation.
jckarter Sep 18, 2020
f956e4f
[Conformance checker] Eliminate redundant recording of missing witnes…
DougGregor Sep 19, 2020
191efc7
Fix completion tests.
Sep 18, 2020
f570f76
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 19, 2020
493d567
Merge pull request #33948 from vermont42/literal-values
akyrtzi Sep 19, 2020
8616884
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 19, 2020
1c5be70
Merge pull request #33995 from DougGregor/conformance-checker-missing…
DougGregor Sep 19, 2020
1e0a9ca
Merge pull request #33989 from slavapestov/astscope-self-dc-cleanup
slavapestov Sep 19, 2020
2762405
[Concurrency] Introduce `@actorIndependent` attribute.
DougGregor Sep 18, 2020
8ee7b8f
ASTContext: Tidy up the interface of getOpenedArchetypeSignature
AnthonyLatsis Sep 19, 2020
c52e979
Merge branch 'tensorflow' of github.com:apple/swift into tensorflow-s…
Sep 19, 2020
925e344
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
Sep 19, 2020
9afad73
[AutoDiff] [Sema] Limit implicit `@differentiable` attribute creation…
dan-zheng Sep 19, 2020
8978400
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 19, 2020
1d54098
[TF] Remove upstreamed AutoDiff test.
Sep 19, 2020
62a13e9
[test] Erase SDKROOT since env -u is not portable.
3405691582 Sep 20, 2020
4586f1a
Merge pull request #33993 from gottesmm/pr-4d8068ca7444a12f86cda79e0a…
gottesmm Sep 20, 2020
6de7d76
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 20, 2020
8bc13cb
Merge pull request #33999 from AnthonyLatsis/cleanups/get-opened-arch…
AnthonyLatsis Sep 20, 2020
0ad75a2
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 20, 2020
c1e43c7
WinSDK: add console API headers
egorzhdan Sep 20, 2020
27aad53
Merge pull request #34004 from egorzhdan/winsdk-console
compnerd Sep 20, 2020
39ec3d4
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 20, 2020
42a3da2
[test] Mark failing reflection tests XFAIL.
3405691582 Sep 21, 2020
66d62ff
stdlib: fix a back-deployment issue for array COW checks with a stdli…
eeckstein Sep 21, 2020
4529990
[runtime] Silence unreachable code warning (#33912)
xwu Sep 21, 2020
413ed17
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 21, 2020
3921871
Merge pull request #34009 from eeckstein/fix-cow-checks
swift-ci Sep 21, 2020
678e5c8
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 21, 2020
0591fa0
[leaks-checker] Add verbose flag to dump out raw output from runtime …
gottesmm Sep 21, 2020
c0375db
Remove TypeResolutionFlags::KnownNonCascadingDependency
CodaFi Jul 24, 2020
7b1a6e4
Merge pull request #33998 from DougGregor/concurrency-actor-independent
DougGregor Sep 21, 2020
259e1a9
Remove UnqualifiedLookupFlags::KnownPrivate
CodaFi Jul 24, 2020
ee35a4f
Remove NameLookupFlags::KnownPrivate
CodaFi Jul 24, 2020
7bee5ff
Remove NLOptions::NL_Known*
CodaFi Jul 24, 2020
934f994
Remove DeclContext::isCascadingContextForLookup
CodaFi Jul 24, 2020
3dd74c1
Remove evaluator::getScopeForAccessLevel
CodaFi Jul 24, 2020
7fb4480
Remove DependencyScope
CodaFi Jul 24, 2020
9e7964f
Remove Reference::cascades
CodaFi Jul 24, 2020
fe5dacb
Remove unnecessary dependency sources
CodaFi Jul 24, 2020
d93c6d8
Remove Cascading Computations from ASTScope
CodaFi Jul 24, 2020
8c913e3
Remove LegacyCascadingDependencies
CodaFi Jul 24, 2020
daeb081
Remove appendHolderOfCascadingMembers
CodaFi Jul 24, 2020
e37b378
Remove DependencyRecorder::Mode
CodaFi Jul 24, 2020
78e78a2
Drop Legacy Tests
CodaFi Jul 24, 2020
1b7c713
[NFC] Only Register Primaries As Dependency Sources
CodaFi Jul 24, 2020
4557b69
Resolve ASTScope Issues
CodaFi Sep 21, 2020
1345a2b
Merge pull request #34010 from gottesmm/pr-77c03dc9163ef877e72f810701…
swift-ci Sep 21, 2020
b664cce
[windows] Use update-checkout in build-windows.bat
drodriguez Sep 19, 2020
4d875ee
Merge pull request #33096 from CodaFi/my-private-eyes
CodaFi Sep 21, 2020
62555ec
Drop Cascading Users from FrontendSourceFileDepGraphFactory's Modeling
CodaFi Sep 21, 2020
3cee2af
Remove Cascading Verification from the Dependency Verifier`
CodaFi Sep 21, 2020
41b976f
Drop "cascading" and "private" dependency from the lexicon
CodaFi Sep 21, 2020
d579675
Drop Interface Dependency Key APIs
CodaFi Sep 21, 2020
eea7699
[NFC] Move tests from Driver/PrivateDependencies to Driver/Dependencies
CodaFi Sep 21, 2020
cf2d0d3
Sema: Fix crash on static -vs- non-static witness mismatch with deser…
slavapestov Sep 21, 2020
6ef4b0d
[SILGen] Emit unreachable code diagnostic for single expression closu…
theblixguy Sep 21, 2020
29587ac
Revise with feedback from John and Andy
jckarter Sep 21, 2020
a6d8425
[Test] Re-write the test for SR-13495 to use StblibUnitTest
hborla Sep 21, 2020
2fb15e7
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
texasmichelle Sep 21, 2020
256346b
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
Sep 21, 2020
cac4e0a
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
texasmichelle Sep 21, 2020
829dc49
Merge branch 'tensorflow-stage' of github.com:google/swift into tenso…
texasmichelle Sep 21, 2020
e2dfe3a
Add example of `withUnsafeContinuation` lowering to SIL
jckarter Sep 21, 2020
f97e803
[Diagnostics] Allow "unknown base" fix to be diagnosed in ambiguity s…
xedin Sep 21, 2020
58f2ae6
Add a SWIFT_STDLIB_STABLE_ABI flag to be able to build the stdlib wit…
kubamracek Sep 21, 2020
6ce4eb2
[Type checker] Use DotSyntaxCallExpr consistently for instance members.
DougGregor Sep 21, 2020
04ddca3
Merge pull request #33923 from hborla/assign-by-wrapper-lowering
hborla Sep 22, 2020
fcd364d
Merge pull request #34012 from slavapestov/fix-witness-matching-crash…
slavapestov Sep 22, 2020
b532e68
Merge pull request #34011 from CodaFi/dont-go-chasing-waterfalls
CodaFi Sep 22, 2020
0aaade6
Merge pull request #33997 from drodriguez/windows-build-using-update-…
drodriguez Sep 22, 2020
fa4f7dd
Parse: Don't create PatternBindingDecls with overlapping source ranges
slavapestov Sep 22, 2020
51a4a91
Sema: Mark a PatternBindingDecl as implicit in the builder transform
slavapestov Sep 22, 2020
ec72db1
Merge pull request #34019 from DougGregor/curry-thunk-dot-syntax-call…
DougGregor Sep 22, 2020
85ae227
ASTScope: Remove hacks for PatternBindingDecls with invalid source ra…
slavapestov Sep 22, 2020
c662c10
ASTScope: Use visitParsedAccessors() instead of getAllAccessors()
slavapestov Sep 22, 2020
383d47f
IRGen: Scalar type layouts need to profile the SIL type
aschwaighofer Sep 21, 2020
ed96cf4
Avoid using extra-cmake-options in the stdlib standalone presets (#34…
kubamracek Sep 22, 2020
007c814
Merge pull request #34021 from slavapestov/astscope-invalid-pbds
slavapestov Sep 22, 2020
7b967a8
Merge pull request #33085 from varungandhi-apple/vg-clang-types-in-si…
varungandhi-apple Sep 22, 2020
6a4c5cf
Fix SR-13520: return string instead of address of local temporary
Interfere Sep 22, 2020
1256afa
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
Sep 22, 2020
43242aa
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
Sep 22, 2020
76802dd
ASTScope: FunctionBodyScope should not be nested inside ParameterList…
slavapestov Sep 22, 2020
753d303
ASTScope: Remove expandIfConfigClauses()
slavapestov Sep 22, 2020
c9f2060
ASTScope: Remove shouldThisNodeBeScopedWhenFoundInSourceFileBraceStmt…
slavapestov Sep 22, 2020
b7bd4fb
ASTScope: Remove 'history' vector
slavapestov Sep 22, 2020
fb86fb3
[SR-10251] Add test case for a bug that's already been fixed.
DougGregor Sep 22, 2020
4ff6cda
Add module interface printing test with non-trivial pattern binding i…
slavapestov Sep 22, 2020
e0dbba5
[Dependency Scanner] Add option to execute an import prescan
artemcm Sep 22, 2020
20be565
Update CMark branch to main
shahmishal Sep 22, 2020
24c144f
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 22, 2020
d5449bf
[Dependency Scanner] Add import-prescan handling to batch scanning
artemcm Sep 22, 2020
9af195c
[NFC] Remove a typealias from SILInstruction.h that's unused in noass…
hborla Sep 22, 2020
7ba7d9b
WinSDK: extract Printing submodule
egorzhdan Sep 22, 2020
65764c6
Update the branch to main for swift-llbuild
shahmishal Sep 22, 2020
a922e6d
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 22, 2020
42dcb69
WinSDK: extract Multimedia submodule
egorzhdan Sep 20, 2020
e7d7847
Update the branch to main for swift-tools-support-core
shahmishal Sep 22, 2020
2fe9626
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 22, 2020
657017c
Merge pull request #34016 from xedin/rdar-66891544
xedin Sep 22, 2020
e4b4a63
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 22, 2020
0b9793e
Update swiftpm branch to main
shahmishal Sep 22, 2020
1de33e8
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 22, 2020
6aa0572
Merge pull request #34030 from DougGregor/sr-10251-testcase
DougGregor Sep 22, 2020
37309b2
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 22, 2020
12c356b
Merge pull request #34028 from artemcm/dependencies-prescan
artemcm Sep 22, 2020
a2249ed
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 22, 2020
41f91d5
Add a SWIFT_FREESTANDING_MODULE_NAME CMake option (#34018)
kubamracek Sep 22, 2020
647f95b
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 22, 2020
e4b6f8b
More feedback: ownership of bbargs, begin -> get_async_continuation
jckarter Sep 22, 2020
f523bda
Update the aliases for main branch
shahmishal Sep 22, 2020
3fe763d
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 22, 2020
bdfa8d9
[AST] Allow hole types to originate from declarations
xedin Sep 22, 2020
17cb2d2
[ConstraintSystem] Add a new flag which specifies that solver is used…
xedin Sep 22, 2020
bf58b0c
[CSGen] Use special accessor to get a type of `VarDecl` for solver use
xedin Sep 22, 2020
5921a4b
Update swift-driver branch to main
shahmishal Sep 22, 2020
661ec63
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 22, 2020
5dcc764
Update swift-syntax branch to main
shahmishal Sep 22, 2020
c9c5562
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 22, 2020
ff23125
ARCSequenceOpts: Enable loop support (#33818)
meg-gupta Sep 23, 2020
6ac739b
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 23, 2020
55144ab
Merge pull request #34031 from hborla/unused-typealias-warning
hborla Sep 23, 2020
3a1206b
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 23, 2020
38926bd
Update swift-stress-tester to use main
shahmishal Sep 23, 2020
d2117c1
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 23, 2020
6d600b4
Update swift-corelibs-xctest to main branch
shahmishal Sep 23, 2020
ca45ab3
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 23, 2020
0d18048
Update swift-corelibs-foundation branch to main
shahmishal Sep 23, 2020
6295d22
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 23, 2020
333f6f1
Update swift-corelibs-libdispatch branch to main
shahmishal Sep 23, 2020
d5a03ba
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 23, 2020
e2d8d29
Update swift-integration-tests branch to main
shahmishal Sep 23, 2020
771d65a
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 23, 2020
159fb22
Update swift-xcode-playground-support branch to main
shahmishal Sep 23, 2020
0736b68
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 23, 2020
8f2175e
Merge pull request #34026 from slavapestov/astscope-if-config-scope-c…
slavapestov Sep 23, 2020
a6574e5
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 23, 2020
2544806
Update indexstore-db branch to main
shahmishal Sep 23, 2020
cfe97b1
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 23, 2020
c58457d
Update sourcekit-lsp branch to main
shahmishal Sep 23, 2020
a6406af
Merge pull request #34029 from slavapestov/test-module-interface-mult…
slavapestov Sep 23, 2020
d664f5d
ASTScope: IterableDeclContext bodies are always current
slavapestov Sep 22, 2020
8f586d0
ASTScope: TopLevelCodeDecl scopes are always current
slavapestov Sep 22, 2020
d3d1cee
ASTScope: AbstractFunctionBodyScope scopes are always current
slavapestov Sep 22, 2020
b670453
ASTScope: PatternBindingEntry scopes are always current
slavapestov Sep 22, 2020
2e5e94f
ASTScope: SourceFile scopes are always current
slavapestov Sep 22, 2020
eedcc6d
ASTScope: Remove re-expansion mechanism
slavapestov Sep 22, 2020
62764bb
ASTScope: Assert that we don't re-expand
slavapestov Sep 22, 2020
ccee48d
AST: Remove PatternBindingDecl::getNumBoundVariables()
slavapestov Sep 22, 2020
f718a4c
AST: Remove IterableDeclContext::getMemberCount()
slavapestov Sep 22, 2020
4bbdb95
Frontend: Remove no-op -stress-astscope-lookup flag
slavapestov Sep 22, 2020
f46a8ab
Update the swift-format branch to main
shahmishal Sep 23, 2020
4002471
Update doc and links to support new main branch
shahmishal Sep 23, 2020
9af806e
Update the swift branch to main
shahmishal Sep 23, 2020
a44a84a
Update the default branch scheme to main
shahmishal Sep 23, 2020
41fc2ef
Update the swift branch to use next
shahmishal Sep 23, 2020
e4e5484
LLVM-Passes: add pointer authentication to Swift's function merge pass.
eeckstein Sep 22, 2020
13f8641
Merge pull request #33994 from jckarter/sil-async-documentation
jckarter Sep 23, 2020
d37318b
Merge pull request #34022 from slavapestov/astscope-remove-re-expansion
slavapestov Sep 23, 2020
87593fc
ASTScope: Fold AbstractFunctionBodyScope into FunctionBodyScope
slavapestov Sep 22, 2020
54aef7f
ASTScope: Remove isThisAnAbstractStorageDecl()
slavapestov Sep 23, 2020
fd53040
ASTScope: Refactor DeclAttribute scopes
slavapestov Sep 23, 2020
f1d2db5
ASTScope: ParameterListScope does not change the insertion point
slavapestov Sep 23, 2020
9119f73
ASTScope: PatternEntryInitializerScope does not change the insertion …
slavapestov Sep 23, 2020
de08e25
ASTScope: Remove AbstractPatternEntryScope::isLastEntry()
slavapestov Sep 23, 2020
3295725
ASTScope: Remove VarDeclScope
slavapestov Sep 23, 2020
7c43e10
ASTScope: Remove getEnclosingAbstractStorageDecl()
slavapestov Sep 23, 2020
9e68f9d
Merge pull request #34044 from Interfere/SR-13520-return-string-Token…
swift-ci Sep 23, 2020
90e6fd4
[CSGen] Check whether parent has a contextual type before diagnosing …
xedin Sep 23, 2020
c946c80
Merge pull request #34036 from xedin/replace-error-types-with-holes
xedin Sep 23, 2020
a4c3963
[build-script] copy over the compiler-rt .a archives from the toolchi…
hyp Sep 23, 2020
769034b
Update the llvm-project branches to swift/main and swift/next
shahmishal Sep 23, 2020
2d1cb7d
Remove old scheme from update-checkout
shahmishal Sep 23, 2020
d3369f7
[NFC] Rename ImportFilterKind cases to be clearer.
varungandhi-apple Sep 23, 2020
4b5d885
[NFC] Clarify semantics of getImportedModules.
varungandhi-apple Sep 23, 2020
5c877c5
Merge pull request #34039 from slavapestov/astscope-clean-up-pattern-…
slavapestov Sep 23, 2020
ba4c82d
Store Clang module imports in addition to Swift overlay.
adrian-prantl Sep 23, 2020
9dcec05
Fix non-public imported declaration diagnostic bug
beccadax Sep 9, 2020
806125d
Favor private imports during name lookup
beccadax Sep 11, 2020
2649749
Merge pull request #34050 from apple/shahmishal/update-checkout-rebra…
swift-ci Sep 23, 2020
fc42640
[Concurrency] Prohibit partial application of actor-isolated methods.
DougGregor Sep 22, 2020
37c3a52
[Concurrency] Handle non-escaping partial application.
DougGregor Sep 23, 2020
4c50c00
Merge pull request #34046 from xedin/nil-with-context
xedin Sep 23, 2020
4aabd27
Merge pull request #33864 from brentdax/imported-by-the-east-aldenard…
beccadax Sep 23, 2020
a4701f7
[ConstraintSystem] Adjust overload filtering to be less aggressive in…
xedin Sep 23, 2020
b1cc4d9
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
pschuh Sep 24, 2020
5405585
Merge pull request #34034 from egorzhdan/winsdk-media
compnerd Sep 24, 2020
846f522
Merge pull request #34032 from egorzhdan/winsdk-printing
compnerd Sep 24, 2020
d0805ef
Merge pull request #34049 from apple/eng/copy-over-only-when-needed
hyp Sep 24, 2020
67ed861
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
pschuh Sep 24, 2020
734b8a2
Merge pull request #33986 from varungandhi-apple/vg-import-filter-cle…
varungandhi-apple Sep 24, 2020
f3f2b02
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 24, 2020
f2a6680
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 24, 2020
bb954f9
Merge pull request #33975 from xwu/benchmark-floating-point-conversio…
xwu Sep 24, 2020
63ed61d
Clean up AutoClosureExpr::getUnwrappedCurryThunkExpr().
DougGregor Sep 24, 2020
eef1cf6
Add result checking to the ChaCha benchmark.
atrick Sep 23, 2020
956b7a9
Merge pull request #34041 from apple/shahmishal/update-branch-doc
shahmishal Sep 24, 2020
d43c1cc
Merge pull request #34042 from atrick/verify-chacha
atrick Sep 24, 2020
638cf56
Merge pull request #34033 from eeckstein/merge-func-ptrauth
eeckstein Sep 24, 2020
abce3de
[NFC] Add some TODO comments for cleanup.
varungandhi-apple Aug 21, 2020
6dfdb7b
[NFC] Clean up construction of ExtInfo(Builder).
varungandhi-apple Sep 1, 2020
e67c178
[NFC] Use SILPrintContext for configuring printSIL.
varungandhi-apple Sep 24, 2020
3c386d8
Merge pull request #34052 from xedin/avoid-overload-filtering-when-co…
xedin Sep 24, 2020
e7871c5
Merge pull request #34037 from adrian-prantl/69393097
adrian-prantl Sep 24, 2020
e6da0c2
Make MinSizeRel builds of stdlib (but not the compiler) produce debug…
kubamracek Sep 24, 2020
dd1ea9a
[NFC] Privatize FrontendSourceFileDepGraphFactory.h
CodaFi Sep 24, 2020
e0d67f4
[NFC] Refine the Return Type of SerializedModuleLoaderBase::loadAST
CodaFi Sep 24, 2020
7c256f2
Generalize SourceFileDeclFinder
CodaFi Sep 24, 2020
ce79526
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
pschuh Sep 24, 2020
14906ba
Merge pull request #34051 from DougGregor/concurrency-partial-applica…
DougGregor Sep 24, 2020
67af4ce
Merge pull request #34056 from varungandhi-apple/vg-extinfo-cleanup
varungandhi-apple Sep 24, 2020
4c9658a
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 24, 2020
361c477
Merge pull request #34024 from aschwaighofer/irgen_type_layout_profil…
aschwaighofer Sep 24, 2020
38061f2
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 24, 2020
7d80ae4
Merge pull request #34059 from CodaFi/graphics-card
CodaFi Sep 24, 2020
4adfe57
Merge pull request #34008 from 3405691582/sr12893
swift-ci Sep 24, 2020
9805f2b
Merge pull request #34002 from 3405691582/EraseNotUnsetEnv
swift-ci Sep 24, 2020
12beece
Merge branch 'master' of github.com:apple/swift into tensorflow-stage
ainu-bot Sep 24, 2020
89bfbd6
Add missing commas.
pschuh Sep 24, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 21 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@ CHANGELOG
<details>
<summary>Note: This is in reverse chronological order, so newer entries are added to the top.</summary>

| Version | Released | Toolchain |
| :------------------------ | :--------- | :---------- |
| [Swift Next](#swift-next) |
| [Swift 5.3](#swift-53) | | |
| [Swift 5.2](#swift-52) | 2020-03-24 | Xcode 11.4 |
| [Swift 5.1](#swift-51) | 2019-09-20 | Xcode 11.0 |
| [Swift 5.0](#swift-50) | 2019-03-25 | Xcode 10.2 |
| [Swift 4.2](#swift-42) | 2018-09-17 | Xcode 10.0 |
| [Swift 4.1](#swift-41) | 2018-03-29 | Xcode 9.3 |
| [Swift 4.0](#swift-40) | 2017-09-19 | Xcode 9.0 |
| [Swift 3.1](#swift-31) | 2017-03-27 | Xcode 8.3 |
| [Swift 3.0](#swift-30) | 2016-09-13 | Xcode 8.0 |
| [Swift 2.2](#swift-22) | 2016-03-21 | Xcode 7.3 |
| [Swift 2.1](#swift-21) | 2015-10-21 | Xcode 7.1 |
| [Swift 2.0](#swift-20) | 2015-09-17 | Xcode 7.0 |
| [Swift 1.2](#swift-12) | 2015-04-08 | Xcode 6.3 |
| [Swift 1.1](#swift-11) | 2014-12-02 | Xcode 6.1.1 |
| [Swift 1.0](#swift-10) | 2014-09-15 | Xcode 6.0 |
| Version | Released | Toolchain |
| :--------------------- | :--------- | :---------- |
| [Swift 5.3](#swift-53) | 2020-09-16 | Xcode 12.0 |
| [Swift 5.2](#swift-52) | 2020-03-24 | Xcode 11.4 |
| [Swift 5.1](#swift-51) | 2019-09-20 | Xcode 11.0 |
| [Swift 5.0](#swift-50) | 2019-03-25 | Xcode 10.2 |
| [Swift 4.2](#swift-42) | 2018-09-17 | Xcode 10.0 |
| [Swift 4.1](#swift-41) | 2018-03-29 | Xcode 9.3 |
| [Swift 4.0](#swift-40) | 2017-09-19 | Xcode 9.0 |
| [Swift 3.1](#swift-31) | 2017-03-27 | Xcode 8.3 |
| [Swift 3.0](#swift-30) | 2016-09-13 | Xcode 8.0 |
| [Swift 2.2](#swift-22) | 2016-03-21 | Xcode 7.3 |
| [Swift 2.1](#swift-21) | 2015-10-21 | Xcode 7.1 |
| [Swift 2.0](#swift-20) | 2015-09-17 | Xcode 7.0 |
| [Swift 1.2](#swift-12) | 2015-04-08 | Xcode 6.3 |
| [Swift 1.1](#swift-11) | 2014-12-02 | Xcode 6.1.1 |
| [Swift 1.0](#swift-10) | 2014-09-15 | Xcode 6.0 |

</details>

Expand Down Expand Up @@ -80,9 +79,13 @@ Swift Next
let _: Foo? = .bar.anotherFoo.getFoo().optionalFoo?.optionalFoo![]
```

**Add new entries to the top of this section, not here!**

Swift 5.3
---------

### 2020-09-16 (Xcode 12.0)

* [SE-0279][] & [SE-0286][]:

Trailing closure syntax has been extended to allow additional labeled closures to follow the initial unlabeled closure:
Expand Down
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,6 @@ set(SWIFT_NATIVE_CLANG_TOOLS_PATH "" CACHE STRING
set(SWIFT_NATIVE_SWIFT_TOOLS_PATH "" CACHE STRING
"Path to the directory that contains Swift tools that are executable on the build machine")

option(SWIFT_ENABLE_MODULE_INTERFACES
"Generate .swiftinterface files alongside .swiftmodule files"
TRUE)

option(SWIFT_STDLIB_ENABLE_SIB_TARGETS
"Should we generate sib targets for the stdlib or not?"
FALSE)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| **macOS** | Google Kokoro | ![Build Status](https://storage.googleapis.com/tensorflow-kokoro-build-badges/macos-swift-tf-release.svg) | - |
| **Ubuntu 16.04** | Swift.org CI | [![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow) | [![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow-gpu/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow-gpu) |

| | **Architecture** | **Master** | **Package** |
| | **Architecture** | **main** | **Package** |
|---|:---:|:---:|:---:|
| **macOS** | x86_64 |[![Build Status](https://ci.swift.org/job/oss-swift-incremental-RA-osx/lastCompletedBuild/badge/icon)](https://ci.swift.org/job/oss-swift-incremental-RA-osx)|[![Build Status](https://ci.swift.org/job/oss-swift-package-osx/lastCompletedBuild/badge/icon)](https://ci.swift.org/job/oss-swift-package-osx)|
| **Ubuntu 16.04** | x86_64 | [![Build Status](https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04/lastCompletedBuild/badge/icon)](https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04)|[![Build Status](https://ci.swift.org/job/oss-swift-package-linux-ubuntu-16_04/lastCompletedBuild/badge/icon)](https://ci.swift.org/job/oss-swift-package-linux-ubuntu-16_04)|
Expand Down
6 changes: 3 additions & 3 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ To run Swift benchmarks, pass the `--benchmark` flag to `build-script`. The
current benchmark results will be compared to the previous run's results if
available. Results for each benchmark run are logged for future comparison.

For branch based development, take a baseline benchmark on the Swift `master`
For branch based development, take a baseline benchmark on the Swift `main`
branch, switch to a development branch containing potentially performance
impacting changes, and run the benchmarks again. Upon benchmark completion, the
benchmark results for the development branch will be compared to the most
recent benchmark results for `master`.
recent benchmark results for `main`.

## Building the Swift Benchmarks

Expand Down Expand Up @@ -181,7 +181,7 @@ benchmarks will be compiled with -Onone!**
* `--list`
* Print a list of available tests matching specified criteria
* `--tags`
* Run tests that are labeled with specified [tags](https://github.com/apple/swift/blob/master/benchmark/utils/TestsUtils.swift#L19)
* Run tests that are labeled with specified [tags](https://github.com/apple/swift/blob/main/benchmark/utils/TestsUtils.swift#L19)
(comma separated list); multiple tags are interpreted as logical AND, i.e.
run only test that are labeled with all the supplied tags
* `--skip-tags`
Expand Down
4 changes: 2 additions & 2 deletions benchmark/scripts/Benchmark_Driver
Original file line number Diff line number Diff line change
Expand Up @@ -975,9 +975,9 @@ def parse_args(args):
)
compare_parser.add_argument(
"--baseline-branch",
default="master",
default="main",
help="attempt to compare results to baseline results for specified "
"branch (default: master)",
"branch (default: main)",
)
compare_parser.set_defaults(func=compare)

Expand Down
16 changes: 14 additions & 2 deletions benchmark/scripts/Benchmark_RuntimeLeaksRunner.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ class LeaksRunnerResult(perf_test_driver.Result):


class LeaksRunnerBenchmarkDriver(perf_test_driver.BenchmarkDriver):
def __init__(self, binary, xfail_list, num_samples, num_iters):
def __init__(self, binary, xfail_list, num_samples, num_iters, verbose):
perf_test_driver.BenchmarkDriver.__init__(
self, binary, xfail_list, enable_parallel=True
)
self.num_samples = num_samples
self.num_iters = num_iters
self.verbose = verbose

def print_data_header(self, max_test_len):
fmt = "{:<%d}{:<10}{:}" % (max_test_len + 5)
Expand Down Expand Up @@ -120,6 +121,13 @@ class LeaksRunnerBenchmarkDriver(perf_test_driver.BenchmarkDriver):
]
d["objc_count"] = len(d["objc_objects"])

# If we are asked to emit verbose output, do so now.
if self.verbose:
tmp = (data["path"], data["test_name"], d)
sys.stderr.write(
"VERBOSE (%s,%s): %s" % tmp)
sys.stderr.flush()

total_count = d["objc_count"] + d["swift_count"]
return total_count
except Exception:
Expand Down Expand Up @@ -156,13 +164,17 @@ def parse_args():
)
parser.add_argument("-num-samples", type=int, default=2)
parser.add_argument("-num-iters", type=int, default=2)
parser.add_argument("-v", "--verbose", action="store_true",
help="Upon failure, dump out raw result",
dest="verbose")
return parser.parse_args()


if __name__ == "__main__":
args = parse_args()
driver = LeaksRunnerBenchmarkDriver(
SWIFT_BIN_DIR, XFAIL_LIST, args.num_samples, args.num_iters
SWIFT_BIN_DIR, XFAIL_LIST, args.num_samples, args.num_iters,
args.verbose
)
if driver.run(args.filter):
sys.exit(0)
Expand Down
18 changes: 17 additions & 1 deletion benchmark/single-source/ChaCha.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import TestsUtils
enum ChaCha20 { }

extension ChaCha20 {
@inline(never)
public static func encrypt<Key: Collection, Nonce: Collection, Bytes: MutableCollection>(bytes: inout Bytes, key: Key, nonce: Nonce, initialCounter: UInt32 = 0) where Bytes.Element == UInt8, Key.Element == UInt8, Nonce.Element == UInt8 {
var baseState = ChaChaState(key: key, nonce: nonce, counter: initialCounter)
var index = bytes.startIndex
Expand Down Expand Up @@ -347,13 +348,28 @@ public let ChaCha = BenchmarkInfo(
runFunction: run_ChaCha,
tags: [.runtime, .cpubench])

@inline(never)
func checkResult(_ plaintext: [UInt8]) {
CheckResults(plaintext.first! == 6 && plaintext.last! == 254)
var hash: UInt64 = 0
for byte in plaintext {
// rotate
hash = (hash &<< 8) | (hash &>> (64 - 8))
hash ^= UInt64(byte)
}
CheckResults(hash == 0xa1bcdb217d8d14e4)
}

@inline(never)
public func run_ChaCha(_ N: Int) {
var plaintext = Array(repeating: UInt8(0), count: 30720) // Chosen for CI runtime
let key = Array(repeating: UInt8(1), count: 32)
let nonce = Array(repeating: UInt8(2), count: 12)

var checkedtext = Array(repeating: UInt8(0), count: 1024)
ChaCha20.encrypt(bytes: &checkedtext, key: key, nonce: nonce)
checkResult(checkedtext)

var plaintext = Array(repeating: UInt8(0), count: 30720) // Chosen for CI runtime
for _ in 1...N {
ChaCha20.encrypt(bytes: &plaintext, key: key, nonce: nonce)
blackHole(plaintext.first!)
Expand Down
62 changes: 56 additions & 6 deletions benchmark/single-source/FloatingPointConversion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ public let FloatingPointConversion = [
runFunction: run_ConvertFloatingPoint_MockFloat64ToDouble,
tags: [.validation, .api],
setUpFunction: { blackHole(mockFloat64s) }),
BenchmarkInfo(
name: "ConvertFloatingPoint.MockFloat64Exactly",
runFunction: run_ConvertFloatingPoint_MockFloat64Exactly,
tags: [.validation, .api],
setUpFunction: { blackHole(mockFloat64s) }),
BenchmarkInfo(
name: "ConvertFloatingPoint.MockFloat64Exactly2",
runFunction: run_ConvertFloatingPoint_MockFloat64Exactly2,
tags: [.validation, .api],
setUpFunction: { blackHole(mockFloat64s) }),
BenchmarkInfo(
name: "ConvertFloatingPoint.MockFloat64ToInt64",
runFunction: run_ConvertFloatingPoint_MockFloat64ToInt64,
tags: [.validation, .api],
setUpFunction: { blackHole(mockFloat64s) }),
]

protocol MockBinaryFloatingPoint: BinaryFloatingPoint {
Expand Down Expand Up @@ -125,6 +140,11 @@ struct MockFloat64: MockBinaryFloatingPoint {
init(_ _value: Double) { self._value = _value }
}

struct MockFloat32: MockBinaryFloatingPoint {
var _value: Float
init(_ _value: Float) { self._value = _value }
}

let doubles = [
1.8547832857295, 26.321549267719135, 98.9544480962058, 73.70286973782363,
82.04918555938816, 76.38902969312758, 46.35647857011161, 64.0821426030317,
Expand All @@ -142,21 +162,51 @@ let doubles = [

let mockFloat64s = doubles.map { MockFloat64($0) }

// See also: test/SILOptimizer/floating_point_conversion.swift

@inline(never)
public func run_ConvertFloatingPoint_MockFloat64ToDouble(_ N: Int) {
for _ in 0..<(N * 100) {
for element in mockFloat64s {
let f = Double(identity(element))
blackHole(f)
}
}
}

@inline(__always)
func convert<
T: BinaryFloatingPoint, U: BinaryFloatingPoint
>(_ value: T, to: U.Type) -> U {
U(value)
>(exactly value: T, to: U.Type) -> U? {
U(exactly: value)
}

// See also: test/SILOptimizer/floating_point_conversion.swift
@inline(never)
public func run_ConvertFloatingPoint_MockFloat64Exactly(_ N: Int) {
for _ in 0..<(N * 25) {
for element in mockFloat64s {
let f = convert(exactly: identity(element), to: Double.self)
blackHole(f)
}
}
}

@inline(never)
public func run_ConvertFloatingPoint_MockFloat64ToDouble(_ N: Int) {
for _ in 0..<(N * 100) {
public func run_ConvertFloatingPoint_MockFloat64Exactly2(_ N: Int) {
for _ in 0..<(N * 25) {
for element in mockFloat64s {
let f = Double(identity(element))
let f = convert(exactly: identity(element), to: MockFloat32.self)
blackHole(f)
}
}
}

@inline(never)
public func run_ConvertFloatingPoint_MockFloat64ToInt64(_ N: Int) {
for _ in 0..<(N * 1000) {
for element in mockFloat64s {
let i = Int64(identity(element))
blackHole(i)
}
}
}
5 changes: 4 additions & 1 deletion cmake/modules/DarwinSDKs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ if(swift_build_freestanding)
"Which SDK to use when building the FREESTANDING stdlib")
set(SWIFT_FREESTANDING_TRIPLE_NAME "" CACHE STRING
"Which triple name (e.g. 'none-macho') to use when building the FREESTANDING stdlib")
set(SWIFT_FREESTANDING_MODULE_NAME "" CACHE STRING
"Which .swiftmodule name (e.g. 'freestanding') to use when building the FREESTANDING stdlib")
set(SWIFT_FREESTANDING_ARCHS "" CACHE STRING
"Which architectures to build when building the FREESTANDING stdlib")
configure_sdk_darwin(
FREESTANDING "FREESTANDING" ""
"${SWIFT_FREESTANDING_SDK}" freestanding "${SWIFT_FREESTANDING_TRIPLE_NAME}" freestanding "${SWIFT_FREESTANDING_ARCHS}")
"${SWIFT_FREESTANDING_SDK}" freestanding
"${SWIFT_FREESTANDING_TRIPLE_NAME}" "${SWIFT_FREESTANDING_MODULE_NAME}" "${SWIFT_FREESTANDING_ARCHS}")
set(SWIFT_SDK_FREESTANDING_LIB_SUBDIR "freestanding")
configure_target_variant(FREESTANDING-DA "FREESTANDING Debug+Asserts" FREESTANDING DA "Debug+Asserts")
configure_target_variant(FREESTANDING-RA "FREESTANDING Release+Asserts" FREESTANDING RA "Release+Asserts")
Expand Down
2 changes: 1 addition & 1 deletion docs/ABI/RegisterUsage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 64-Bit Architecture Register Usage

From Swift 5, the calling convention register allocation for 64-bit architectures is largely based on [existing](https://developer.apple.com/library/content/documentation/Xcode/Conceptual/iPhoneOSABIReference/Articles/ARM64FunctionCallingConventions.html) [standards](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/LowLevelABI/140-x86-64_Function_Calling_Conventions/x86_64.html), with the addition of the context and error return registers discussed in the [ABI stability manifesto](https://github.com/apple/swift/blob/master/docs/ABIStabilityManifesto.md):
From Swift 5, the calling convention register allocation for 64-bit architectures is largely based on [existing](https://developer.apple.com/library/content/documentation/Xcode/Conceptual/iPhoneOSABIReference/Articles/ARM64FunctionCallingConventions.html) [standards](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/LowLevelABI/140-x86-64_Function_Calling_Conventions/x86_64.html), with the addition of the context and error return registers discussed in the [ABI stability manifesto](https://github.com/apple/swift/blob/main/docs/ABIStabilityManifesto.md):

| Register Purpose | ARM64 | x86_64 |
| ------------- |:-------------:| ----- |
Expand Down
Loading