Skip to content

Resolve conflicts with master #1289

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 306 commits into from
Jul 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
306 commits
Select commit Hold shift + click to select a range
b1f29d9
Command line routines for OpenBSD.
3405691582 Jun 23, 2020
571f222
Revert "Revert "[LTO] Build lld on Windows CI""
kateinoigakukun Jun 19, 2020
1725ece
Merge pull request #28003 from DougGregor/swift-frontend-rename
DougGregor Jun 24, 2020
220390f
tests: fix check line in dso_handle test
eeckstein Jun 24, 2020
f50b666
[CodeCompletion] Fallback to nominal member completion after trailing…
rintaro Jun 23, 2020
61a5668
Merge branch 'master' of github.com:swiftwasm/swift into maxd/master-…
MaxDesiatov Jun 24, 2020
55517d2
[CMake] Fix unified builds after #28003
davezarzycki Jun 24, 2020
e6fe8d4
Driver: update old doc comments from when clang++ was the linker driver
finagolfin Jun 24, 2020
a0702ce
Merge pull request #32520 from eeckstein/fix-test
eeckstein Jun 24, 2020
00d5839
Merge pull request #32522 from davezarzycki/pr32522
davezarzycki Jun 24, 2020
46c4c2b
Merge pull request #30733 from allevato/rt-inline-ns
compnerd Jun 24, 2020
240ae1b
test: make `make-unreadable` Python 3 friendly
compnerd Jun 23, 2020
081324d
Merge pull request #32521 from rintaro/ide-completion-rdar64650782
rintaro Jun 24, 2020
7bddcb1
Merge pull request #32444 from rintaro/ast-casestmt-parent
rintaro Jun 24, 2020
de8107e
Merge pull request #32482 from nate-chandler/generic-metadata-prespec…
nate-chandler Jun 24, 2020
ecd5041
Merge pull request #32509 from compnerd/binary-is-not-string
compnerd Jun 24, 2020
8af013b
Merge pull request #32510 from compnerd/action-at-a-distance
compnerd Jun 24, 2020
e45fa71
AST: isEquivalentToExtendedContext() should consider use patterns of …
nkcsgexi Jun 24, 2020
2d250bb
Merge pull request #32395 from 3405691582/Test_OpenBSD_NumericParsing
CodaFi Jun 24, 2020
603ca95
Merge pull request #32513 from nathawes/fix-indentation-after-incompl…
Jun 24, 2020
096777e
[cxx-interop] Do not give the default C++ constructor's return statem…
zoecarver Jun 24, 2020
21b9fc3
[CodeCompletion] Assume non-'isSimpleDidSet' in code completion
rintaro Jun 24, 2020
5549619
[IRGen] Remove an unused DenseMap
DougGregor Jun 24, 2020
beb75a1
[Test] Disabled remote_run on prespecialized-metadata/struct-multi-co…
nate-chandler Jun 24, 2020
c825d79
Merge pull request #32514 from 3405691582/OpenBSD_CommandLine
CodaFi Jun 24, 2020
c4f4ce1
[ConstraintSystem] Record substitutions from opened unbound generic t…
xedin Jun 24, 2020
2a01fc9
[Function builders] Run syntactic diagnostics for function bodies.
DougGregor Jun 24, 2020
bb2bd64
[NFC] Run clang-format over CommandLine.cpp.
3405691582 Jun 24, 2020
570eaf3
[AutoDiff] Fix false `Differentiable` derived conformances warning. (…
dan-zheng Jun 25, 2020
fa259b3
Merge pull request #32535 from DougGregor/garbage-collect-densemap
swift-ci Jun 25, 2020
30e671a
Merge pull request #32528 from rintaro/ide-completion-rdar64699286
rintaro Jun 25, 2020
233ce8e
Make numThreads variable unsigned and remove unneeded numThreads para…
Jun 24, 2020
d96d2db
Merge pull request #32536 from nate-chandler/test/disable-remote-run-…
swift-ci Jun 25, 2020
f8f2e56
[build-presets] Enable stdlib assertions on Linux installations (#32511)
vedantk Jun 25, 2020
0a53c62
Merge pull request #32529 from nkcsgexi/64538537
nkcsgexi Jun 25, 2020
e38d103
Merge pull request #32539 from 3405691582/ClangFormat_CommandLine
swift-ci Jun 25, 2020
46f9f21
[Frontend] Add --version as a frontend flag.
DougGregor Jun 25, 2020
6a44443
[Diag] Refactor DiagnosticEngine to use `YAML` files - Reopen (#32483)
HassanElDesouky Jun 25, 2020
c312143
Merge pull request #32543 from DougGregor/frontend-version-flag
swift-ci Jun 25, 2020
f5cf881
Merge pull request #32538 from DougGregor/function-builder-syntactic-…
DougGregor Jun 25, 2020
ee5abde
Merge pull request #32541 from CodaFi/signum-chi
CodaFi Jun 25, 2020
c106b2d
Merge pull request #32525 from compnerd/cant-read-this
compnerd Jun 25, 2020
46c2073
[AutoDiff] Start supporting loadable types with address-only tangents…
dan-zheng Jun 25, 2020
9855496
Add benchmarks for Substring.dropFirst(_:) and dropLast(_:) (#32473)
natecook1000 Jun 25, 2020
5dad41f
[NFC] Modernize Casts
CodaFi Jun 23, 2020
e225bfb
Add a build prodct for swift-format.
dylansturg Jun 22, 2020
18acadb
test: unixise the paths on the test (NFC)
compnerd Jun 24, 2020
87d2cdc
Sema: silence some uncovered warnings on MSVC (NFC)
compnerd Jun 25, 2020
12db528
test: remove stray comment markers (NFC)
compnerd Jun 24, 2020
e49a5b7
Switch to benchmark remove* instead of drop*
natecook1000 Jun 25, 2020
0ea0b8e
[ConstraintSystem] Adjust recording of "fixed" requirements to avoid …
xedin Jun 25, 2020
6aeca31
Merge pull request #32547 from compnerd/slash-and-test
compnerd Jun 25, 2020
af853fd
Correct WASI Command Line Parsing Error Handling Paths
CodaFi Jun 23, 2020
3faad6a
Correct Windows Command Line Parsing Error Handling Paths
CodaFi Jun 23, 2020
e56ce8a
Minor review tweaks.
dylansturg Jun 25, 2020
f7ef6d4
[Diagnostics] Augment conformance failure to with a note about enum w…
xedin Jun 25, 2020
866835d
[Diagnostics] NFC: Add a TODO as a reminder about current diagnostic …
xedin Jun 25, 2020
9044aa0
[AST] ParamDecl::isNonEphemeral() not to evaluate InterfaceTypeRequest
rintaro Jun 25, 2020
87e9349
[Test] Add a test case for https://bugs.swift.org/browse/SR-12728
rintaro Jun 25, 2020
43fd786
[SR-5688] [Sema] Handle key path component base type on MemberAccessO…
LucianoPAlmeida Jun 25, 2020
6bdfa09
Sema: Replace getAccessor() calls in SPI attribute checking
slavapestov Jun 25, 2020
496ff68
AutoDiff: Replace calls of AbstractStorageDecl::getAccessor()
slavapestov Jun 25, 2020
6e5958f
AutoDiff: Simplify closure discriminator assignment
slavapestov Jun 25, 2020
3aa3325
Sema: Sink DiscriminatorFinder down into DebuggerTestingTransform
slavapestov Jun 25, 2020
0b02d61
Sema: Simplify applyTypeToClosureExpr()
slavapestov Jun 25, 2020
34cebb4
Sema: SanitizeExpr doesn't need a ConstraintSystem
slavapestov Jun 25, 2020
b7cea44
Sema: Move code completion entry points to TypeCheckCodeCompletion.cpp
slavapestov Jun 25, 2020
bbfcc62
Merge pull request #32127 from compnerd/python-is-dead-long-live-python
shahmishal Jun 26, 2020
568cd85
test: xfail Driver/sanitize_recover.swift
nkcsgexi Jun 26, 2020
5be1fb0
Merge pull request #32563 from nkcsgexi/64784401
nkcsgexi Jun 26, 2020
1d20ddc
Merge pull request #32553 from rintaro/ast-isnonephemeral-interfacetype
rintaro Jun 26, 2020
34292da
Merge pull request #32559 from slavapestov/remove-get-accessors-calls
slavapestov Jun 26, 2020
7f8c679
Merge pull request #32560 from slavapestov/clean-up-closure-discrimin…
slavapestov Jun 26, 2020
bd7d5ec
CMake: Remove workaround fixed in CMake 2.8.4
AndrewSB Jun 26, 2020
b663c9b
Merge pull request #32561 from slavapestov/code-completion-entry-points
slavapestov Jun 26, 2020
b507894
Sema: Fix a few places where we built AST that had to go through Sani…
slavapestov Jun 26, 2020
0232cd0
Sema: Sink SanitizeExpr down into TypeCheckCodeCompletion.cpp
slavapestov Jun 25, 2020
3ffff1a
Merge pull request #32549 from compnerd/comments-not-welcome
compnerd Jun 26, 2020
0a48a39
Merge pull request #32462 from kateinoigakukun/revert-32454
compnerd Jun 26, 2020
7976162
Merge pull request #32567 from slavapestov/sink-sanitize-expr
slavapestov Jun 26, 2020
87df996
Add fast string interpolation for metatypes (#32113)
airspeedswift Jun 26, 2020
eade392
test: xfail validation-test/StdlibUnittest/RaceTest.swift
nkcsgexi Jun 26, 2020
5edaae3
test: xfail validation-test/Sanitizers/tsan-type-metadata.swift
nkcsgexi Jun 26, 2020
fa53ba8
test: xfail validation-test/Sanitizers/witness_table_lookup.swift
nkcsgexi Jun 26, 2020
6d27611
Merge pull request #32569 from nkcsgexi/64809498
nkcsgexi Jun 26, 2020
af52886
Merge pull request #32516 from CodaFi/NPE-NBD
CodaFi Jun 26, 2020
a1f0155
[SourceKit/CursorInfo] Still print implicit decls in cursorinfo to ha…
Jun 26, 2020
a3a20d9
Use a shorter example string. (#32557)
amartini51 Jun 26, 2020
336d63f
Merge pull request #32551 from natecook1000/nate/substring_removefirst
swift-ci Jun 26, 2020
bbec1eb
[SourceKit] Enable ASTContext caching in other completion-like requests
rintaro Jun 26, 2020
3b168d8
Changes for review:
dylansturg Jun 26, 2020
ba2e04b
[ownership] Move the stdlib ome point to before global opt.
gottesmm Jun 26, 2020
fb99e84
ExplicitModuleLoader: use a temporary source manager for loading the …
nkcsgexi Jun 26, 2020
a536947
ModuleLoader: refactor computePrebuiltModulePath to facilitate depend…
nkcsgexi Jun 26, 2020
ebccb92
Merge pull request #32548 from compnerd/covering
compnerd Jun 26, 2020
a8d44bc
Merge pull request #32558 from xedin/fix-req-conformace-assessment
xedin Jun 26, 2020
5300dc2
Merge pull request #32534 from zoecarver/fix/cxx/constructor-return-stmt
swift-ci Jun 26, 2020
6a24820
AutoDiff: Don't synthesize TangentVector typealias alongside the Tang…
slavapestov Jun 26, 2020
61640fe
Sema: Remove allowDerived parameter of computeAbstractTypeWitness(), …
slavapestov Jun 26, 2020
dfbb958
Sema: Try to derive type witnesses before running inference
slavapestov Jun 26, 2020
c4b3727
Merge pull request #32577 from nkcsgexi/new-source-manager-for-module…
nkcsgexi Jun 27, 2020
0816167
Merge pull request #32564 from nkcsgexi/scanner-report-prebuilt-module
nkcsgexi Jun 27, 2020
86cffd7
Merge pull request #32578 from slavapestov/derive-type-witness-before…
slavapestov Jun 27, 2020
f245717
[SourceKit/CodeFormat] Fix multi-line array literal elements not inde…
Jun 27, 2020
65af826
test: xfail Constraints/operator.swift
nkcsgexi Jun 27, 2020
4ef82a8
Merge pull request #32586 from nkcsgexi/64844584
nkcsgexi Jun 27, 2020
1715021
[TypeChecker] NFC: Clarify flaky diagnostic XFAIL
xedin Jun 27, 2020
713c836
Merge pull request #32587 from xedin/rdar-64844584
xedin Jun 28, 2020
e25934f
Merge pull request #32451 from stephencelis/patch-1
swift-ci Jun 28, 2020
057dbbd
Sema: Filter out conflicting requirements for protocol stubs
AnthonyLatsis Jun 27, 2020
8a39f82
Merge pull request #32565 from AndrewSB/fixed-in-cmake-2.8.4
compnerd Jun 28, 2020
2a200b2
SourceKit: silence as `-Wmisleading-indent` warning (NFCI)
compnerd Jun 26, 2020
bbbe67e
Merge pull request #32576 from compnerd/brace-yourself
compnerd Jun 29, 2020
364981f
SwiftPrivateThreadExtras: correct misuse of API
compnerd Jun 22, 2020
34cbb30
test: unixise some paths in diagnostics tests (NFCI)
compnerd Jun 29, 2020
7895a4e
test: unixise path for Parse.source_locs (NFCI)
compnerd Jun 29, 2020
ebf01c9
Merge pull request #32593 from compnerd/dangling
compnerd Jun 29, 2020
c42c8d2
[RemoteMirror] Gracefully handle a NULL TypeInfo passed to convertChild.
mikeash Jun 29, 2020
a817409
test: make stdlib.NumericParsing Python 3 friendly
compnerd Jun 25, 2020
0893f08
Merge pull request #32574 from gottesmm/pr-0a4cbd7fcfed51ea527c5cce60…
gottesmm Jun 29, 2020
8307c6a
[SourceKit] Report 'key.reusingastcontext' in completion like requests
rintaro Jun 29, 2020
3d6bc24
Merge pull request #32595 from compnerd/path-parsing
compnerd Jun 29, 2020
d2b68c7
Merge pull request #32594 from compnerd/diagnostic-medicine
compnerd Jun 29, 2020
6d63d95
test: attempt to quote python interpreter path
compnerd Jun 29, 2020
63d9acd
[Sema] Report public use of local SPIs by the exportability checker
xymus May 14, 2020
c2452b7
Merge pull request #32598 from compnerd/numerically-correct
compnerd Jun 29, 2020
1c58abf
Merge pull request #32575 from nathawes/fix-no-quickhelp-for-shorthan…
Jun 29, 2020
79bdd43
Merge pull request #32493 from augusto2112/elf-shim-metadata-sections
compnerd Jun 29, 2020
caab4f4
[CSGen] Handle incorrect patterns (e.g. referencing unknown types)
xedin Jun 29, 2020
12f4db3
test: make `gen-output-file-map` Python 3 friendly
compnerd Jun 24, 2020
112af9e
test: adjust style for python linter (NFC)
compnerd Jun 29, 2020
bf0a183
[NFC] Move the strto*_l stubs closer to use.
3405691582 Jun 16, 2020
311482d
[NFC] Pull out the win32 implementation.
3405691582 Jun 16, 2020
3cc9d75
[NFC] Gather strto*_l stubs together.
3405691582 Jun 16, 2020
d3a9314
[stdlib] Simplify the strto* platform stubs.
3405691582 Jun 16, 2020
9ee4ebf
[Dependency Scanner] Use `pragma clang module import` in the hack fil…
artemcm Jun 28, 2020
4d3bd22
Merge pull request #32436 from kastiglione/dl/build-script-prioritize…
JDevlieghere Jun 29, 2020
33336df
[SouceKit] Make "ASTContext reusing" optional
rintaro Jun 29, 2020
ff99d65
Merge pull request #32582 from nathawes/array-literal-sub-expr-indent…
Jun 29, 2020
ea5a31d
[NFC] Add a test for constraint generation failures in a pattern binding
hborla Jun 29, 2020
ff2cc35
ASTMangler: Tiny cleanup
slavapestov Jun 27, 2020
bddcda6
[Frontend] Factor out setupDependencyTrackerIfNeeded
hamishknight Jun 29, 2020
7bc5440
[Frontend] Internalize createDependencyTracker
hamishknight Jun 29, 2020
12ae72c
[Frontend] Move mangling stats to end of pipeline
hamishknight Jun 29, 2020
958bf8e
[Frontend] Move dependency verifier to end of pipeline
hamishknight Jun 29, 2020
4ca6732
[Frontend] NFC: Move dumpAPI up a bit
hamishknight Jun 29, 2020
553dadd
[Frontend] dumpAPI at the end of the pipeline
hamishknight Jun 29, 2020
440cd0b
[docs] Add documentation describing external resources. (#32584)
varungandhi-apple Jun 29, 2020
5cee6f3
Unify 'MetadataSections' data structure, as well as common ELF and CO…
augusto2112 Jun 19, 2020
7c87e1a
Merge pull request #32085 from xymus/spi-isnt-internal-for-real
xymus Jun 29, 2020
73c99ac
[test] Reinstate CoreGraphics↔︎NSValue bridging tests on iOS/watchOS/…
lorentey Jun 23, 2020
65da7f6
Merge pull request #32602 from xedin/rdar-64844584
xedin Jun 30, 2020
b3fb762
[test] Don’t import UIKit on iOS 10.3
lorentey Jun 30, 2020
6fcfbaa
Merge pull request #32523 from buttaface/linker
CodaFi Jun 30, 2020
c579759
[stdlib] Use a direct initializer for typed to raw pointer conversion
lorentey Jun 30, 2020
31a7859
ASTMangler: Fix assertion when mangling invalid identifiers
slavapestov Jun 29, 2020
f8720d5
Sema: Force synthesized conformance to Differentiable in EmittedMembe…
slavapestov Jun 25, 2020
c1b0c93
Sema: Use request evaluator caching for EmittedMembersRequest
slavapestov Jun 25, 2020
055b3a8
Sema: Deterministically order declarations in EmittedMemberRequest
slavapestov Jun 27, 2020
89b2f27
AST: Mark implicit destructor as synthesized to fix non-deterministic…
slavapestov Jun 27, 2020
63bf06d
Add regression test for https://bugs.swift.org/browse/SR-11030 / rdar…
slavapestov Jun 30, 2020
422fd41
Sema: Fix assertion when synthesizing Codable with an IUO stored prop…
slavapestov Jun 29, 2020
9964215
Update status to indicate feature gate
rxwei Jun 30, 2020
4b2fecf
Merge pull request #32611 from slavapestov/codable-iuo-assert
slavapestov Jun 30, 2020
faa06bf
Merge pull request #32581 from slavapestov/cached-emitted-members-req…
slavapestov Jun 30, 2020
ffb59e7
Merge pull request #32610 from slavapestov/regression-test-sr11030
slavapestov Jun 30, 2020
e75562e
Merge pull request #32613 from apple/rxwei-patch-2
swift-ci Jun 30, 2020
ad69927
Merge pull request #32612 from lorentey/unsightlyBitCast
lorentey Jun 30, 2020
4cf4515
Merge pull request #32515 from lorentey/UIKit-NSValueBridging-tests
lorentey Jun 30, 2020
621b3b4
[Diag] Create frontend flags for localization and write tests (#32568)
HassanElDesouky Jun 30, 2020
621cecb
Revert "[Diag] Create frontend flags for localization and write tests…
davezarzycki Jun 30, 2020
6bc0385
Merge pull request #32590 from artemcm/HackingWithCModules
artemcm Jun 30, 2020
c213f19
Merge pull request #32607 from hborla/function-builder-csgen-failure
hborla Jun 30, 2020
1d09970
Merge pull request #32573 from compnerd/aspirational-quotes
compnerd Jun 30, 2020
4f27eee
Merge pull request #32615 from davezarzycki/pr32615
swift-ci Jun 30, 2020
bb3c945
test: exit properly with `swift_build_sdk_interface`
compnerd Jun 25, 2020
cb0a064
tests: make `jobstats` and `process-stats-dir` python3 compatible
compnerd Jun 24, 2020
cfebd57
test: adjust style for python linter (NFC)
compnerd Jun 30, 2020
5c27465
Merge pull request #32601 from hamishknight/not-yet-over-and-out
hamishknight Jun 30, 2020
11246be
Add explicit init from BinaryInteger to CGFloat
stephentyrone Jun 30, 2020
30ccb52
Merge pull request #32572 from rintaro/sourcekit-fast-completionliker…
rintaro Jun 30, 2020
a2758b7
Fix a comment.
DougGregor Jun 24, 2020
1867e0d
[Clang importer] Remove the OS_object objc_runtime_visible hack.
DougGregor Jun 30, 2020
d098595
Merge pull request #32589 from compnerd/cartography
compnerd Jun 30, 2020
59464c3
Merge pull request #32604 from compnerd/statically-moving-forward
compnerd Jun 30, 2020
e832698
Merge pull request #32616 from compnerd/exit-stage-right
compnerd Jun 30, 2020
7d5def9
Merge pull request #32478 from augusto2112/unify_metadata_sections
compnerd Jun 30, 2020
e258bc4
Merge pull request #32537 from 3405691582/StrtoSimplicity
compnerd Jun 30, 2020
f7ee082
test: improve Python3 compatibility for `swift_build_sdk_interfaces`
compnerd Jun 30, 2020
0750b0b
[generics] Add an option that causes the generic specializer to valid…
gottesmm Jun 26, 2020
a86eacc
[sourcekit] Retain semantic annotations across queries
benlangmuir Jun 30, 2020
7f4cd11
Merge pull request #32617 from stephentyrone/rdar-64544503
swift-ci Jun 30, 2020
063e92a
Create frontend flags for localization
HassanElDesouky Jun 30, 2020
8ee34b7
Add an else statement
HassanElDesouky Jun 30, 2020
223b5ed
[test] use %diff to fix Windows test
benlangmuir Jun 30, 2020
5f95138
Merge pull request #32626 from compnerd/construction-workers
CodaFi Jun 30, 2020
1bc9159
[AutoDiff] Support differentiation of functions with multiple results…
dan-zheng Jul 1, 2020
7985896
Provide an implementation of init?<T:BinaryInteger>(exactly:T) on eac…
stephentyrone Jul 1, 2020
69c2acf
Loosen a CopyForwarding assert: store instead of deinit.
atrick Jun 30, 2020
4a50e23
Merge pull request #32627 from gottesmm/pr-d8d0aecd8a64d1dd705c2b4412…
gottesmm Jul 1, 2020
71dbe2b
NFC: silence some -Wrange-loop-analysis warnings. (#32634)
dan-zheng Jul 1, 2020
89ae325
Use Formal Access To Compute Override Elision Check
CodaFi Jul 1, 2020
cc622b7
Merge pull request #32625 from atrick/fix-cpf-deinitstore
swift-ci Jul 1, 2020
cddf73e
[Gardening] Clean Up OS-Test Patterns Across The Codebase
CodaFi Jul 1, 2020
50159d1
[Gardening] Use Vendor=apple Where Possible
CodaFi Jul 1, 2020
5d94d3f
[lit] Detect lldb by checking both for lldb_build_root and that that …
gottesmm Jul 1, 2020
8e886ab
Apply -debug-prefix-map to isysroot (#32580)
keith Jul 1, 2020
ba968d4
[stdlib] Fix removeLast(_:) performance for non-random-access collect…
natecook1000 Jul 1, 2020
fe82a70
Merge pull request #32324 from AnthonyLatsis/prespec-oopsie
AnthonyLatsis Jul 1, 2020
0990ffe
Merge pull request #32562 from AnthonyLatsis/stub-filter
AnthonyLatsis Jul 1, 2020
9e85a39
Merge pull request #32630 from HassanElDesouky/LocaleFlagsRE
davezarzycki Jul 1, 2020
fae2c19
NFC: Make SILType.h and SILDeclRef.h not depend on SIL/*.h
davezarzycki Jul 1, 2020
6760555
SIL: a new instruction 'base_addr_for_offset' for field offset calcul…
eeckstein Jul 1, 2020
d7d829c
SILCombine: Constant-fold MemoryLayout<T>.offset(of: \.literalKeyPath)
eeckstein Jun 25, 2020
3f18b5e
[AST] Stop using PointerIntPair for SIL params/results
davezarzycki Jul 1, 2020
b9341c8
[AutoDiff] Fix protocol witness SILGen for `@differentiable` class me…
dan-zheng Jul 1, 2020
46a315e
Merge pull request #32645 from davezarzycki/pr32645
davezarzycki Jul 1, 2020
3e59cc4
Merge pull request #32646 from davezarzycki/pr32646
davezarzycki Jul 1, 2020
d0a7948
Merge pull request #32544 from eeckstein/fold-kp-offset
eeckstein Jul 1, 2020
211bd71
SIL: increase the module version number
eeckstein Jul 1, 2020
d5a549a
NFC: silence some -Wrange-loop-analysis warnings. (#32635)
dan-zheng Jul 1, 2020
fa71582
[IRGen] Assert the SourceFile has been type-checked
hamishknight Jul 1, 2020
c65246f
Merge the IRGen requests
hamishknight Jul 1, 2020
bf2f4af
NFC: Move NumThreads from SILOptions to IRGenOptions
hamishknight Jul 1, 2020
d2bf447
Revert "ModuleLoader: refactor computePrebuiltModulePath to facilitat…
nkcsgexi Jun 30, 2020
35eab3e
Merge pull request #32628 from benlangmuir/sema-repeat
benlangmuir Jul 1, 2020
337c4e8
Add a new -sil-disable-only-function flag (#32622)
meg-gupta Jul 1, 2020
d285123
[build] Pass target to linker for host tools for Apple SDKs (#32618)
edymtt Jul 1, 2020
2e85347
Merge pull request #32643 from gottesmm/pr-aa6d8ea8a6a7c33cd050eaa2e5…
gottesmm Jul 1, 2020
62ebcae
Merge pull request #32596 from mikeash/remotemirror-null-convertchild
mikeash Jul 1, 2020
e74e914
Merge pull request #32651 from eeckstein/module-version
swift-ci Jul 1, 2020
84dd4db
Dependencies Scanner: report compiled Swift module paths if they are …
nkcsgexi Jun 30, 2020
b766544
Merge pull request #32642 from CodaFi/ossignpost
CodaFi Jul 1, 2020
5a8fdaf
Merge pull request #32638 from CodaFi/let-it-override
CodaFi Jul 1, 2020
723a205
Revert "SILCombine: Constant-fold MemoryLayout<T>.offset(of: \.litera…
eeckstein Jul 1, 2020
c03ea7a
Merge pull request #32546 from dylansturg/add_swift_format_product
benlangmuir Jul 1, 2020
890df57
Merge pull request #32654 from hamishknight/all-for-ir-and-ir-for-all
hamishknight Jul 1, 2020
906b3cb
Add -sil-inline-never-function flag (#32660)
meg-gupta Jul 1, 2020
3da8595
Merge pull request #32664 from eeckstein/revert-offsetof-opt
swift-ci Jul 1, 2020
50142f8
AST: address code review comments on isEquivalentToExtendedContext()
nkcsgexi Jul 1, 2020
3e8166e
Merge pull request #32633 from nkcsgexi/build-forward-module-from-com…
nkcsgexi Jul 2, 2020
844ab50
AST: Add more asserts for same-type constraints in generic signatures
slavapestov Jul 1, 2020
665eb51
Merge pull request #32667 from nkcsgexi/comments-on-64538537-5.3
nkcsgexi Jul 2, 2020
fbec91a
[Autodiff] Derivative Registration for the Get and Set Accessors (#32…
Jul 2, 2020
ed1dc0f
Merge pull request #32620 from DougGregor/remove-os-object-hack
DougGregor Jul 2, 2020
a091d4f
Merge pull request #32666 from slavapestov/same-type-requirement-assert
slavapestov Jul 2, 2020
9defc0a
[AutoDiff] NFC: silence no-asserts unused variable warnings. (#32675)
dan-zheng Jul 2, 2020
650109d
Merge branch 'master' of github.com:swiftwasm/swift into maxd/master-…
MaxDesiatov Jul 2, 2020
edbf6bb
Use Xcode 12 beta when building for macOS
MaxDesiatov Jul 2, 2020
c90937b
Fix compilation errors in SwiftRT-WASM.cpp
MaxDesiatov Jul 2, 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
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ jobs:
path: ../build-cache
key: ${{ runner.os }}-sccache-v7
- name: Build macOS installable archive
run: ./utils/webassembly/ci.sh
run: |
sudo xcode-select --switch /Applications/Xcode_12_beta.app/Contents/Developer/
./utils/webassembly/ci.sh
- name: Upload macOS installable archive
uses: actions/upload-artifact@v1
with:
Expand Down
10 changes: 0 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -487,16 +487,6 @@ if(NOT SWIFT_LIPO)
find_toolchain_tool(SWIFT_LIPO "${SWIFT_DARWIN_XCRUN_TOOLCHAIN}" lipo)
endif()

# Reset CMAKE_SYSTEM_PROCESSOR if not cross-compiling.
# CMake refuses to use `uname -m` on OS X
# http://public.kitware.com/Bug/view.php?id=10326
if(NOT CMAKE_CROSSCOMPILING AND CMAKE_SYSTEM_PROCESSOR STREQUAL "i386")
execute_process(
COMMAND "uname" "-m"
OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()

get_filename_component(SWIFT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} REALPATH)
set(SWIFT_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
set(SWIFT_CMAKE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Please make sure you use Python 2.x. Python 3.x is not supported currently.

#### macOS

To build for macOS, you need [Xcode 11.4](https://developer.apple.com/xcode/resources/).
To build for macOS, you need [Xcode 12 beta](https://developer.apple.com/xcode/resources/).
The required version of Xcode changes frequently, and is often a beta release.
Check this document or the host information on <https://ci.swift.org> for the
current required version.
Expand Down
5 changes: 4 additions & 1 deletion benchmark/cmake/modules/AddSwiftBenchmarkSuite.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,11 @@ function (swift_benchmark_compile_archopts)
"-m${triple_platform}-version-min=${ver}"
"-lobjc"
"-L${SWIFT_LIBRARY_PATH}/${BENCH_COMPILE_ARCHOPTS_PLATFORM}"
"-L${sdk}/usr/lib/swift"
"-Xlinker" "-rpath"
"-Xlinker" "${SWIFT_LINK_RPATH}"
"-Xlinker" "-rpath"
"-Xlinker" "/usr/lib/swift"
${bench_library_objects}
${bench_driver_objects}
${ld64_add_ast_path_opts}
Expand Down Expand Up @@ -694,7 +697,7 @@ function(swift_benchmark_compile)
cmake_parse_arguments(SWIFT_BENCHMARK_COMPILE "" "PLATFORM" "" ${ARGN})

if(NOT SWIFT_BENCHMARK_BUILT_STANDALONE)
set(stdlib_dependencies "swift")
set(stdlib_dependencies "swift-frontend")
foreach(stdlib_dependency ${UNIVERSAL_LIBRARY_NAMES_${SWIFT_BENCHMARK_COMPILE_PLATFORM}})
string(FIND "${stdlib_dependency}" "Unittest" find_output)
if("${find_output}" STREQUAL "-1")
Expand Down
4 changes: 2 additions & 2 deletions benchmark/single-source/FloatingPointParsing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public func run_ParseDoubleExp(_ N: Int) {

@inline(never)
public func run_ParseFloat80Exp(_ N: Int) {
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(Linux)
#if canImport(Darwin) || os(Linux)
// On Darwin, long double is Float80 on x86, and Double otherwise.
// On Linux, Float80 is at aleast available on x86.
#if arch(x86_64) || arch(i386)
Expand All @@ -263,7 +263,7 @@ public func run_ParseDoubleUniform(_ N: Int) {

@inline(never)
public func run_ParseFloat80Uniform(_ N: Int) {
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(Linux)
#if canImport(Darwin) || os(Linux)
// On Darwin, long double is Float80 on x86, and Double otherwise.
// On Linux, Float80 is at aleast available on x86.
#if arch(x86_64) || arch(i386)
Expand Down
6 changes: 3 additions & 3 deletions benchmark/single-source/FloatingPointPrinting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public func run_FloatingPointPrinting_Double_description_small(_ N: Int) {

@inline(never)
public func run_FloatingPointPrinting_Float80_description_small(_ N: Int) {
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(Linux)
#if canImport(Darwin) || os(Linux)
// On Darwin, long double is Float80 on x86, and Double otherwise.
// On Linux, Float80 is at aleast available on x86.
#if arch(x86_64) || arch(i386)
Expand Down Expand Up @@ -152,7 +152,7 @@ public func run_FloatingPointPrinting_Double_description_uniform(_ N: Int) {

@inline(never)
public func run_FloatingPointPrinting_Float80_description_uniform(_ N: Int) {
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(Linux)
#if canImport(Darwin) || os(Linux)
// On Darwin, long double is Float80 on x86, and Double otherwise.
// On Linux, Float80 is at aleast available on x86.
#if arch(x86_64) || arch(i386)
Expand Down Expand Up @@ -202,7 +202,7 @@ public func run_FloatingPointPrinting_Double_interpolated(_ N: Int) {

@inline(never)
public func run_FloatingPointPrinting_Float80_interpolated(_ N: Int) {
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(Linux)
#if canImport(Darwin) || os(Linux)
// On Darwin, long double is Float80 on x86, and Double otherwise.
// On Linux, Float80 is at aleast available on x86.
#if arch(x86_64) || arch(i386)
Expand Down
2 changes: 1 addition & 1 deletion benchmark/single-source/NSStringConversion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//===----------------------------------------------------------------------===//

// <rdar://problem/19003201>
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if canImport(Darwin)

import TestsUtils
import Foundation
Expand Down
22 changes: 22 additions & 0 deletions benchmark/single-source/Substring.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public let SubstringTest = [
BenchmarkInfo(name: "EqualSubstringString", runFunction: run_EqualSubstringString, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "EqualSubstringSubstring", runFunction: run_EqualSubstringSubstring, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "EqualSubstringSubstringGenericEquatable", runFunction: run_EqualSubstringSubstringGenericEquatable, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "SubstringRemoveFirst1", runFunction: run_SubstringRemoveFirst1, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "SubstringRemoveLast1", runFunction: run_SubstringRemoveLast1, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "LessSubstringSubstring", runFunction: run_LessSubstringSubstring, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "LessSubstringSubstringGenericComparable", runFunction: run_LessSubstringSubstringGenericComparable, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "StringFromLongWholeSubstring", runFunction: run_StringFromLongWholeSubstring, tags: [.validation, .api, .String]),
Expand All @@ -34,6 +36,8 @@ let longWide = "fὢasὢodὢijὢadὢolὢsjὢalὢsdὢjlὢasὢdfὢijὢ
let (s1, ss1) = equivalentWithDistinctBuffers()
let (s2, ss2) = equivalentWithDistinctBuffers()

let quiteLong = String(repeating: "0", count: 10_000)[...]

@inline(never)
public func run_SubstringFromLongString(_ N: Int) {
var s = longWide
Expand Down Expand Up @@ -126,6 +130,24 @@ public func run_EqualSubstringSubstringGenericEquatable(_ N: Int) {
}
}

@inline(never)
public func run_SubstringRemoveFirst1(_ N: Int) {
for _ in 1...N {
var s = quiteLong
s.removeFirst(1)
blackHole(s.first == "0")
}
}

@inline(never)
public func run_SubstringRemoveLast1(_ N: Int) {
for _ in 1...N {
var s = quiteLong
s.removeLast(1)
blackHole(s.first == "0")
}
}

/*
func checkEqual<T, U>(_ x: T, _ y: U)
where T : StringProtocol, U : StringProtocol {
Expand Down
8 changes: 4 additions & 4 deletions benchmark/utils/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ import NibbleSort
import NIOChannelPipeline
import NSDictionaryCastToSwift
import NSError
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if canImport(Darwin)
import NSStringConversion
#endif
import NopDeinit
import ObjectAllocation
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if canImport(Darwin)
import ObjectiveCBridging
import ObjectiveCBridgingStubs
#if !(SWIFT_PACKAGE || Xcode)
Expand Down Expand Up @@ -287,14 +287,14 @@ registerBenchmark(MonteCarloE)
registerBenchmark(MonteCarloPi)
registerBenchmark(NSDictionaryCastToSwift)
registerBenchmark(NSErrorTest)
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if canImport(Darwin)
registerBenchmark(NSStringConversion)
#endif
registerBenchmark(NibbleSort)
registerBenchmark(NIOChannelPipeline)
registerBenchmark(NopDeinit)
registerBenchmark(ObjectAllocation)
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if canImport(Darwin)
registerBenchmark(ObjectiveCBridging)
registerBenchmark(ObjectiveCBridgingStubs)
#if !(SWIFT_PACKAGE || Xcode)
Expand Down
10 changes: 4 additions & 6 deletions cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function(_swift_gyb_target_sources target scope)

add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${generated}
COMMAND
$<TARGET_FILE:Python2::Interpreter> ${SWIFT_SOURCE_DIR}/utils/gyb -D CMAKE_SIZEOF_VOID_P=${CMAKE_SIZEOF_VOID_P} ${SWIFT_GYB_FLAGS} -o ${CMAKE_CURRENT_BINARY_DIR}/${generated}.tmp ${absolute}
$<TARGET_FILE:Python3::Interpreter> ${SWIFT_SOURCE_DIR}/utils/gyb -D CMAKE_SIZEOF_VOID_P=${CMAKE_SIZEOF_VOID_P} ${SWIFT_GYB_FLAGS} -o ${CMAKE_CURRENT_BINARY_DIR}/${generated}.tmp ${absolute}
COMMAND
${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/${generated}.tmp ${CMAKE_CURRENT_BINARY_DIR}/${generated}
COMMAND
Expand Down Expand Up @@ -88,6 +88,7 @@ function(_add_host_variant_c_compile_link_flags name)
MACCATALYST_BUILD_FLAVOR ""
DEPLOYMENT_VERSION "${DEPLOYMENT_VERSION}")
target_compile_options(${name} PRIVATE -target;${target})
target_link_options(${name} PRIVATE -target;${target})
endif()

set(_sysroot
Expand Down Expand Up @@ -472,6 +473,7 @@ function(add_swift_host_library name)

_add_host_variant_c_compile_flags(${name})
_add_host_variant_link_flags(${name})
_add_host_variant_c_compile_link_flags(${name})
_set_target_prefix_and_suffix(${name} "${libkind}" "${SWIFT_HOST_VARIANT_SDK}")

# Set compilation and link flags.
Expand Down Expand Up @@ -528,11 +530,6 @@ function(add_swift_host_library name)
target_link_options(${name} PRIVATE
"LINKER:-current_version,${SWIFT_COMPILER_VERSION}")
endif()

get_target_triple(target target_variant "${SWIFT_HOST_VARIANT_SDK}" "${SWIFT_HOST_VARIANT_ARCH}"
MACCATALYST_BUILD_FLAVOR ""
DEPLOYMENT_VERSION "${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_DEPLOYMENT_VERSION}")
target_link_options(${name} PRIVATE -target;${target})
endif()

add_dependencies(dev ${name})
Expand Down Expand Up @@ -577,6 +574,7 @@ function(add_swift_host_tool executable)
add_executable(${executable} ${ASHT_UNPARSED_ARGUMENTS})
_add_host_variant_c_compile_flags(${executable})
_add_host_variant_link_flags(${executable})
_add_host_variant_c_compile_link_flags(${executable})
target_link_directories(${executable} PRIVATE
${SWIFTLIB_DIR}/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR})
add_dependencies(${executable} ${LLVM_COMMON_DEPENDS})
Expand Down
8 changes: 5 additions & 3 deletions cmake/modules/AddSwiftUnittests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ function(add_swift_unittest test_dirname)
_ENABLE_EXTENDED_ALIGNED_STORAGE)
endif()

if(SWIFT_USE_LINKER)
set_property(TARGET "${test_dirname}" APPEND_STRING PROPERTY
LINK_FLAGS " -fuse-ld=${SWIFT_USE_LINKER}")
if(NOT SWIFT_COMPILER_IS_MSVC_LIKE)
if(SWIFT_USE_LINKER)
target_link_options(${test_dirname} PRIVATE
-fuse-ld=${SWIFT_USE_LINKER}$<$<STREQUAL:${CMAKE_HOST_SYSTEM_NAME},Windows>:.exe>)
endif()
endif()

if(SWIFT_ANALYZE_CODE_COVERAGE)
Expand Down
4 changes: 1 addition & 3 deletions cmake/modules/SwiftHandleGybSources.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
include(SwiftAddCustomCommandTarget)
include(SwiftSetIfArchBitness)

find_package(Python2 COMPONENTS Interpreter REQUIRED)

# Create a target to process single gyb source with the 'gyb' tool.
#
# handle_gyb_source_single(
Expand Down Expand Up @@ -60,7 +58,7 @@ function(handle_gyb_source_single dependency_out_var_name)
COMMAND
"${CMAKE_COMMAND}" -E make_directory "${dir}"
COMMAND
"$<TARGET_FILE:Python2::Interpreter>" "${gyb_tool}" ${SWIFT_GYB_FLAGS} ${GYB_SINGLE_FLAGS} -o "${GYB_SINGLE_OUTPUT}.tmp" "${GYB_SINGLE_SOURCE}"
"$<TARGET_FILE:Python3::Interpreter>" "${gyb_tool}" ${SWIFT_GYB_FLAGS} ${GYB_SINGLE_FLAGS} -o "${GYB_SINGLE_OUTPUT}.tmp" "${GYB_SINGLE_SOURCE}"
COMMAND
"${CMAKE_COMMAND}" -E copy_if_different "${GYB_SINGLE_OUTPUT}.tmp" "${GYB_SINGLE_OUTPUT}"
COMMAND
Expand Down
5 changes: 2 additions & 3 deletions docs/Android.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,9 @@ $ NDK_PATH="path/to/android-ndk21"
$ build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swiftc \ # The Swift compiler built in the previous step.
# The location of the tools used to build Android binaries
-tools-directory ${NDK_PATH}/toolchains/llvm/prebuilt/linux-x86_64/bin/ \
-target armv7a-none-linux-androideabi \ # Targeting android-armv7.
-sdk ${NDK_PATH}/platforms/android-21/arch-arm \ # Use the same architecture and API version as you used to build the stdlib in the previous step.
-Xclang-linker -nostdlib++ \ # Don't link libc++, and supply the path to libgcc.
-target armv7a-none-linux-androideabi \ # Targeting android-armv7, and supply the path to libgcc.
-L ${NDK_PATH}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/armv7-a \
-sdk ${NDK_PATH}/platforms/android-21/arch-arm \ # Use the same architecture and API version as you used to build the stdlib in the previous step.
hello.swift
```

Expand Down
4 changes: 2 additions & 2 deletions docs/DifferentiableProgramming.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Differentiable Programming Manifesto

* Authors: [Richard Wei], [Dan Zheng], [Marc Rasi], [Bart Chrzaszcz]
* Status: Partially implemented
* Status: Partially implemented on master, feature gated under `import _Differentiation`

## Table of contents

Expand Down Expand Up @@ -1949,7 +1949,7 @@ One concrete example is `sinf(_:)` from the C standard library. It can be made
differentiable by defining a derivative retroactively.

```swift
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if canImport(Darwin)
import func Darwin.sinf
#else
import func Glibc.sinf
Expand Down
Loading