Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
633 commits
Select commit Hold shift + click to select a range
16efe40
[ownership] Add copy constructor/assignment operator for BorrowScopeO…
gottesmm Feb 16, 2020
f15435d
Merge pull request #29872 from gottesmm/pr-fb98c866323e29b0bd6b281370…
swift-ci Feb 17, 2020
cec9ef5
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
3777ec0
Merge pull request #29853 from compnerd/cleaning-up
compnerd Feb 17, 2020
42e8a96
Merge pull request #29873 from gottesmm/pr-9e43d3301740b75fd0546f1d2f…
gottesmm Feb 17, 2020
edbe22b
swift-lang: shuffle the source directory structure (NFC)
compnerd Feb 13, 2020
6fa6b98
Fix string memory bug
Feb 17, 2020
0fbdb77
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
bf778c0
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
709c58a
Merge pull request #29869 from davidungar/unit-test-users-v4
Feb 17, 2020
8514385
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
3d88fa1
[gardening] Update a bit-rotted header.
gottesmm Feb 17, 2020
bc8a4db
Revert "Revert "[basic] Add a simple vector backed 2 stage multi map.""
gottesmm Feb 17, 2020
1fb56db
[ownership] Implement movable guaranteed scopes in ossa.
gottesmm Feb 16, 2020
d66d329
[diagnose-unreachable] Adjust test cases for movable guaranteed phis.
gottesmm Feb 17, 2020
8e705f3
[WebAssembly] Add wasm32 support to stdlib String
MaxDesiatov Feb 17, 2020
57a3df5
Merge pull request #29848 from mikeash/eagerly-realize-empty-singletons
mikeash Feb 17, 2020
8165db2
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
a89340c
SILCombine: fix a miscompile in the alloc_stack optimization which ca…
eeckstein Feb 17, 2020
fb838b5
Merge pull request #29870 from LucianoPAlmeida/argument-mismatch-cleanup
xedin Feb 17, 2020
3fac150
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
50e9cc3
Merge pull request #29882 from eeckstein/fix-sil-combine
eeckstein Feb 17, 2020
8cba88b
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
48f24b0
Merge pull request #29866 from xedin/rdar-57356196
xedin Feb 17, 2020
f4ebcad
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
4475f43
[metadata prespecialization] Always on for stdlib.
nate-chandler Feb 17, 2020
aac282b
Merge pull request #29878 from gottesmm/pr-a084c54a01e290d0552ef3ce96…
gottesmm Feb 17, 2020
445e023
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
3cb5f07
Merge pull request #29876 from gottesmm/pr-45a44022ce758198b24f6ffe93…
gottesmm Feb 17, 2020
6a4fb15
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
1ca2b61
Runtime: Less eager instantiation of type metadata in the conformance…
slavapestov Feb 17, 2020
d624115
[CSSimplify] Guard against null locator in isSelfRecursiveKeyPathDyna…
theblixguy Feb 17, 2020
0788f9b
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
4e39455
Update ProtocolConformance.cpp
slavapestov Feb 17, 2020
de660ce
Merge pull request #29885 from nate-chandler/generic-metadata-prespec…
nate-chandler Feb 17, 2020
5a4a0be
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
0516c3b
Merge pull request #29857 from nathawes/avoid-mangling-in-document-st…
Feb 17, 2020
535cc26
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 17, 2020
0a8de8b
[ConstraintSystem] Allow `simplifyRestrictedConstraintImpl` to diagno…
xedin Feb 11, 2020
802e141
[Diagnostics] Diagnose mismatches related to use of `===` and `!==` v…
xedin Feb 13, 2020
bb656e1
[CSFix] Teach `getStructuralTypeContext` about tuple initialization c…
xedin Feb 13, 2020
f6b7df1
[ConstraintSystem] Increase impact of a missing conformance related t…
xedin Feb 14, 2020
0c451bb
[Diagnostics] Diagnose ambiguities related to ephemeral pointers
xedin Feb 14, 2020
79b757d
[ConstraintSystem] Detect and diagnose mismatches in single parameter…
xedin Feb 14, 2020
df21cbf
[ConstraintSystem] Ignore attempt to bind type var to dependent membe…
xedin Feb 15, 2020
e17df6b
[CSGen] Don't try to infer closure types with destructured parameters
xedin Feb 17, 2020
ca91a1b
[ConstraintSystem] Detect and diagnose OoO arguments in call to binar…
xedin Feb 17, 2020
81addcc
[CSDiag] NFC: Remove `visitApplyExpr` and associated logic
xedin Feb 17, 2020
2565d41
[ConstraintSystem] NFC: Remove obsolete `CalleeCandidateInfo`
xedin Feb 17, 2020
8722530
[CSDiag] NFC: Move `diagnoseDeprecatedConditionalConformanceOuterAcce…
xedin Feb 17, 2020
15036bc
[ConstraintSystem] Fix `unwrap optional base` fix to preserve l-value…
xedin Feb 17, 2020
3edefea
[ConstraintSystem] Don't attempt to solve closures with error express…
xedin Feb 17, 2020
81c3f62
[CSGen] Validate presence of `_MaxBuiltinFloatType` before generating…
xedin Feb 17, 2020
0271370
[android][test] Mark sil_combine_alloc_stack as executable.
drodriguez Feb 18, 2020
a348640
Use single quotes instead of backticks in diagnostics
mdiep Feb 18, 2020
b44fbae
[sil] Use FrozenMultiMap in PredictableMemOpts instead of implementin…
gottesmm Jan 6, 2020
c4203dd
Merge pull request #29887 from slavapestov/conformance-cache-sillyness
slavapestov Feb 18, 2020
6ef943a
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
0555de5
Sema: Remove a couple of calls to clearLookupCache()
slavapestov Feb 18, 2020
8626cc4
Merge pull request #29875 from gottesmm/pr-a905499d41ad40cb3a8a3deb65…
gottesmm Feb 18, 2020
a4f00ea
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
eaee6fa
Sema: Prefer an outer type named 'Self' over the SE-0068 behavior
slavapestov Feb 18, 2020
d8bc35b
Merge pull request #29895 from mdiep/remove-backticks-in-diagnostics
owenv Feb 18, 2020
396ee73
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
fefd027
[semantic-arc-opts] Convert @owned -> @guaranteed args of transformin…
gottesmm Feb 3, 2020
457b5dd
Add guidance about cost of var boxes being captured by an escaping cl…
gottesmm Feb 18, 2020
c435646
[GSB] Delay mapping an invalid subject type to an error type (#29813)
theblixguy Feb 18, 2020
0a5785c
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
56ecb8f
Enable better runtime failure messages
eeckstein Feb 18, 2020
7063a79
Merge pull request #29902 from gottesmm/pr-c7fabcf6a57817aaeaf73160c9…
swift-ci Feb 18, 2020
2b17236
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
bb20a87
Merge pull request #29871 from swiftwasm/swiftwasm-stdlib-tests
swift-ci Feb 18, 2020
03f3208
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
04fafd7
Merge pull request #29881 from swiftwasm/swiftwasm-string
swift-ci Feb 18, 2020
12fd64a
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
60565d5
Merge pull request #29903 from eeckstein/enable-runtime-messages
eeckstein Feb 18, 2020
af31c29
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
abc84e7
Merge pull request #29897 from slavapestov/start-removing-clear-looku…
slavapestov Feb 18, 2020
1fcb8b1
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
61832cb
Merge pull request #29823 from compnerd/swift-lang-rises
compnerd Feb 18, 2020
14c37a9
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
2763e13
[Stdlib] Fix an overrelease in -[__SwiftNativeNSError description].
mikeash Feb 18, 2020
d06cab7
.str() for fine-grained
Feb 18, 2020
3b11c2b
[SILGen] Materialize Arguments To Property Wrapper Setters If Needed
CodaFi Feb 18, 2020
b905113
[ConstraintSystem] Remove now completely obsolete CSDiag
xedin Feb 18, 2020
1486290
Merge pull request #28043 from zoecarver/fix/substitution-map-composi…
atrick Feb 18, 2020
0f6aa67
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
aeb894f
Merge pull request #29898 from slavapestov/self-but-not-self
slavapestov Feb 18, 2020
20f8436
Merge pull request #29832 from rintaro/ast-funcparam-nonull
rintaro Feb 18, 2020
b948160
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
c14a51b
[SILVerifier] NFC: standardize same-type assertions. (#29862)
dan-zheng Feb 18, 2020
47f00fe
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
bf7ac27
Merge pull request #29896 from gottesmm/pr-0a06969f425624e1d9d39042fc…
gottesmm Feb 18, 2020
61fcac9
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
2dccdbf
[ConstraintSystem] NFC: Remove workarounds related to (now deprecated…
xedin Feb 18, 2020
2afa121
SILCombine: remove dead unchecked_take_enum_data_addr instructions.
eeckstein Feb 18, 2020
93d3226
DeadObjectElimination: handle init_existential_addr instructions.
eeckstein Feb 18, 2020
b0b05e6
WIP: Getting toolchains to build again. compnerd@ to continue. :-)
saeta Feb 18, 2020
7c0859d
Add frontend flags for staging cross-import overlays
beccadax Feb 15, 2020
6cce3d3
Add swiftcrossimport and swiftoverlays file_types
beccadax Feb 15, 2020
e248f82
Add support for loading cross-import files
beccadax Feb 15, 2020
f8df2f6
Add mechanism for per-SourceFile overlays
beccadax Feb 15, 2020
03832cb
[NFC] Allow ImportedModuleDesc to be a DenseMap key
beccadax Feb 15, 2020
5d74978
[NFC] Heavily refactor NameBinding
beccadax Feb 15, 2020
d6bccba
Load cross-import overlays
beccadax Feb 15, 2020
0ab8238
Test cross-import overlays
beccadax Feb 15, 2020
d9c9405
[NFC] Create one default value for EnableCrossImportOverlays
beccadax Feb 15, 2020
17087cb
Correct for difference between BSD and GNU cp
beccadax Feb 16, 2020
747c507
Add a warning about redundant cross-import declarations
beccadax Feb 18, 2020
1228619
[NFC] Improvements suggested in code review
beccadax Feb 18, 2020
014bb1c
Don’t count submodules when cross-importing
beccadax Feb 18, 2020
73ebd5b
build: drop build-script-impl changes for tensorflow
compnerd Feb 18, 2020
5b6a050
IRGen: Fix reflection metadata for zero-sized enum cases
slavapestov Feb 18, 2020
4bd5633
Avoid incorrectly asserting when we disable pure Swift deallocation o…
Catfish-Man Feb 18, 2020
6c19d6f
Merge pull request #29904 from mikeash/fix-swiftnativeerror-descripti…
mikeash Feb 18, 2020
1ad5e90
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
81fa2ed
ModuleInterface: increase timeout time for .interface file lock
nkcsgexi Feb 18, 2020
d2953bb
[ConstraintSystem] Let `simplifyRestrictedConstraintImpl` fix any fai…
xedin Feb 18, 2020
14cda1a
Merge pull request #28799 from NobodyNada/master
jckarter Feb 18, 2020
68f5e4f
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
1533a8d
build: drop tensorflow additions for building tensorflow
compnerd Feb 18, 2020
80724fe
build: add tensorflow build to the build-script
compnerd Feb 18, 2020
3526539
Merge pull request #29605 from gottesmm/pr-db719c8315f5da4d80fcb17452…
gottesmm Feb 18, 2020
0ac08bf
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
e4a4dfe
Merge pull request #29910 from nkcsgexi/increase-timeout-time
nkcsgexi Feb 18, 2020
79380c7
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 18, 2020
509f225
build: correct the tensorflow paths
compnerd Feb 18, 2020
fdfe954
stdlib: remove `Python` and `TensorFlow` additions
compnerd Feb 18, 2020
5c8022e
Merge remote-tracking branch 'github/tensorflow' into HEAD
ainu-bot Feb 18, 2020
3547122
SILGen: Simplify prepareEpilog() utility method
slavapestov Feb 18, 2020
7a4b5cf
SIL: Fix assertion failure when function with opaque result type retu…
slavapestov Feb 18, 2020
a599dda
More build fixings!
saeta Feb 18, 2020
3e4a820
[SILGen] Handle Reabstraction and Substitution in assign_by_wrapper
CodaFi Feb 18, 2020
2c92df4
[ConstraintSystem] Simplify `diagnoseAmbiguityWithEphemeralPointers`
xedin Feb 18, 2020
6616e81
Merge pull request #29909 from Catfish-Man/cant-switch-off-a-switched…
Catfish-Man Feb 18, 2020
05bfed1
build: more fixes for building
compnerd Feb 18, 2020
01f9321
build: build PythonKit with just built toolchain
compnerd Feb 18, 2020
b0d741d
Refactor AreAllStoredPropertiesDefaultInitableRequest for Property Wr…
CodaFi Feb 19, 2020
5fd9397
PythonKit fixes & misc.
saeta Feb 19, 2020
c868b86
Merge pull request #29893 from drodriguez/android-mark-sil_combine_al…
drodriguez Feb 19, 2020
51257dd
Merge pull request #29906 from xedin/eliminate-csdiag
xedin Feb 19, 2020
2c70f0a
[AutoDiff] Improve `@derivative` attribute diagnostics.
dan-zheng Feb 19, 2020
6965c33
Merge pull request #29894 from CodaFi/im-beginning-to-feel-like-a-wra…
CodaFi Feb 19, 2020
3efb350
Merge pull request #29917 from davidungar/widman-fixes
Feb 19, 2020
cee664f
Merge pull request #29916 from CodaFi/de-fault-is-mine
CodaFi Feb 19, 2020
b1fc252
Merge pull request #29907 from eeckstein/dead_alloc_stack_elimination
eeckstein Feb 19, 2020
9adaddc
[NFC] Additional readability improvements
beccadax Feb 19, 2020
9a09eb7
[NFC] Replace three fields in UnboundImport with a PointerUnion
beccadax Feb 19, 2020
4af4af4
[CS] Remove baseCS param from typeCheckExpression
hamishknight Feb 19, 2020
ed1d372
[CS] Remove DiagnosedExprs
hamishknight Feb 19, 2020
1a9764e
[CS] Remove SubExpressionDiagnostics option
hamishknight Feb 19, 2020
857e523
[CS] Remove unused function
hamishknight Feb 19, 2020
092fb33
Merge pull request #29901 from slavapestov/reflection-zero-edition
slavapestov Feb 19, 2020
a61d220
Merge pull request #29911 from compnerd/pythonkit-new-compiler
compnerd Feb 19, 2020
f74ca15
build: build PythonKit with just built toolchain
compnerd Feb 18, 2020
495554f
[Test] Don't run EmptyCollectionSingletonRealization on older runtime…
mikeash Feb 19, 2020
0ab98fc
[swift-lang] Fix dependency on sourcekitd module
benlangmuir Feb 19, 2020
d842fa3
Merge pull request #29582 from brentdax/the-most-ambitious-crossover-…
beccadax Feb 19, 2020
0ca869e
Merge pull request #29118 from rintaro/ide-completion-rdar56834798
rintaro Feb 19, 2020
469ecb6
Improve `@derivative` type-checking diagnostics order.
dan-zheng Feb 19, 2020
44d7ae6
Add utility for checking whether differentiable programming is enabled.
dan-zheng Feb 19, 2020
87b1920
[CS] A couple of post CSDiag cleanups (#29922)
hamishknight Feb 19, 2020
71753f3
[ConstraintSystem] Rank contextually unavailable overloads lower than…
xedin Feb 19, 2020
e26b01c
Merge pull request #29923 from mikeash/fix-empty-collection-singleton…
swift-ci Feb 19, 2020
0f0a908
Merge pull request #29925 from benlangmuir/dep-sourcekitd
benlangmuir Feb 19, 2020
ef32ead
build: correct executable name for swift compiler
compnerd Feb 19, 2020
35e21b0
SR-10556 _foreignGrow should use the uninitialized-buffer String init…
Catfish-Man Feb 14, 2020
34eaf8d
Add regression tests for rdar://58495602
CodaFi Feb 19, 2020
705e468
Require objc interop on cast/literals_downcast tests
LucianoPAlmeida Feb 19, 2020
5a7b6d4
build: fix pythonkit build
compnerd Feb 19, 2020
0211eaa
build: automate tensorflow default configuration
compnerd Feb 19, 2020
fbcbbd7
build: make tensorflow-swift-apis build on Linux
compnerd Feb 19, 2020
9fa6d89
SILGen: Fix keypath getter/setter emission with opaque result types
slavapestov Feb 18, 2020
c39cfd8
fix flags for tensorflow-swift-apis
compnerd Feb 19, 2020
e641c4a
IRGen: Deal with broken AST from batch mode
aschwaighofer Feb 19, 2020
83ab97f
build: more fixing
compnerd Feb 19, 2020
089d347
Revert "[swift-lang] Fix dependency on sourcekitd module"
benlangmuir Feb 19, 2020
beb8ecd
Revert "swift-lang: shuffle the source directory structure (NFC)"
benlangmuir Feb 19, 2020
497d46f
[tests] Spliting literals downcast tests into commom and bridged
LucianoPAlmeida Feb 19, 2020
288a776
[CSRanking] Detect cases where overload choices are incomparable
xedin Feb 19, 2020
d5969a9
[AST] Intro SPI attribute for access control and imports
xymus Feb 6, 2020
3552f80
[Parser] Parse the SPI attribute
xymus Feb 6, 2020
501f458
[AST] Intro service lookupImportedSPIs to find direct SPI imports of …
xymus Feb 6, 2020
6a5a858
[SPI] Serialize SPI attributes on imports
xymus Feb 6, 2020
56880d7
[Sema] Diagnose the use of SPI on unsupported decls
xymus Feb 6, 2020
2e73cb4
[Sema] Type-check the use and exposability of SPI decls
xymus Feb 6, 2020
9013928
[Frontend] Output the private module interface with the SPI info
xymus Feb 6, 2020
ffa0bda
[Frontend] Use the private module interface when available
xymus Feb 6, 2020
b14fdd3
[Test] SPI access and limits when used locally
xymus Feb 6, 2020
4d6adef
[Test] Test clients of modules defining SPI decls
xymus Feb 6, 2020
d4bd722
[Test] Test generated private and public swiftinterface when using @_spi
xymus Feb 6, 2020
d12292c
[Sema] Consider SPI decls public to emit symbols and TBD
xymus Feb 6, 2020
d4e0336
[Test] Test use of SPI in compiled lib
xymus Feb 6, 2020
ac0f444
[Serialization] Register IMPORTED_MODULE_SPIS in the block info block
xymus Feb 18, 2020
0e7029d
Use "SPI group" for the name used in an @_spi attribute
xymus Feb 19, 2020
8cfc5ed
[ASTPrinter] When printing a property wrapper attribute name for the …
akyrtzi Feb 19, 2020
92b8d63
[Sema] Always install property wrappers during qualified lookup
CodaFi Feb 19, 2020
11e79dc
[SourceKit] Remove a globally shared variable from inside a method th…
akyrtzi Feb 19, 2020
c93b961
Merge pull request #29934 from benlangmuir/revert-swift-lang-changes
akyrtzi Feb 19, 2020
4e9ae93
Flush an old pre-Evaluator Cycle Breaking Hack
CodaFi Feb 19, 2020
200b96d
Revert "Revert "swift-lang: shuffle the source directory structure (N…
compnerd Feb 20, 2020
b0b927b
Merge pull request #29810 from xymus/spi
xymus Feb 20, 2020
047476c
Merge pull request #29929 from compnerd/swift-is-swiftc
compnerd Feb 20, 2020
4055c94
[stdlib] Update one String initializer and client to use @_spi
xymus Feb 6, 2020
3d5cb90
Merge pull request #29938 from akyrtzi/annotated-property-wrapper-att…
akyrtzi Feb 20, 2020
3fe6b65
Merge pull request #24303 from Catfish-Man/uninitialized-initialize
Catfish-Man Feb 20, 2020
1a9eb79
Merge pull request #29913 from slavapestov/opaque-result-type-versus-…
slavapestov Feb 20, 2020
8af4f2d
Merge pull request #29493 from LucianoPAlmeida/SR-11421-checked-cast-…
xedin Feb 20, 2020
85f74bf
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 20, 2020
33ffada
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 20, 2020
6e5b836
Merge remote-tracking branch 'github/tensorflow' into HEAD
ainu-bot Feb 20, 2020
9f0e2d2
Merge pull request #29930 from CodaFi/di-trying
CodaFi Feb 20, 2020
0b2936b
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 20, 2020
814491a
Merge pull request #29942 from xymus/spitdlib
xymus Feb 20, 2020
54af258
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 20, 2020
850aba5
Merge pull request #29940 from CodaFi/bicyclette
CodaFi Feb 20, 2020
8c2cff8
Merge pull request #29937 from CodaFi/semantic-gymnastics
CodaFi Feb 20, 2020
91c4db4
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 20, 2020
e5e9fce
[AutoDiff upstream] Upstream attribute type-checking changes. (#29945)
dan-zheng Feb 20, 2020
f56080e
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 20, 2020
0f196f9
Merge remote-tracking branch 'github/tensorflow' into HEAD
ainu-bot Feb 20, 2020
b367d2e
Rename files and classes involved in SourceFileDepGraphConstruction
Feb 17, 2020
0515e00
Robert Widmann's .str() fixes
Feb 19, 2020
5e030b5
Merge pull request #29918 from dan-zheng/derivative-attr-diagnostics
swift-ci Feb 20, 2020
1779632
[IRGen] NFC: silence `llvm::MaybeAlign` warnings.
dan-zheng Feb 20, 2020
88ca382
Merge pull request #29936 from xedin/rdar-49712598
xedin Feb 20, 2020
2397ec5
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 20, 2020
1002305
Fix `@derivative` attribute type-checking.
dan-zheng Feb 20, 2020
f5b40d6
[AutoDiff upstream] Add SIL derivative function type caching. (#29953)
dan-zheng Feb 20, 2020
d460910
Merge remote-tracking branch 'github/master' into HEAD
dan-zheng Feb 20, 2020
a65347c
Merge remote-tracking branch 'github/tensorflow' into HEAD
ainu-bot Feb 20, 2020
e6bbb8d
Merge pull request #29948 from davidungar/unit-test-users-v5a
Feb 20, 2020
adcdbb0
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 20, 2020
d53ff03
Merge pull request #29926 from aschwaighofer/irgen_spot_fix_for_batch…
aschwaighofer Feb 20, 2020
0adea48
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 20, 2020
42b7d59
Merge pull request #29951 from dan-zheng/silence-warnings
compnerd Feb 20, 2020
d991d78
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 20, 2020
f00cf8a
Merge pull request #29941 from compnerd/it-just-works
compnerd Feb 20, 2020
e179516
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Feb 20, 2020
965e53e
Fix build toolchain for TensorFlow.
saeta Feb 20, 2020
8baa0e6
Switch to `#if canImport(PythonKit)` for tests.
saeta Feb 20, 2020
70fd2e6
Fix all tests in merge branch.
saeta Feb 20, 2020
12754e9
Merge remote-tracking branch 'origin/tensorflow-stage' into tensorflo…
saeta Feb 20, 2020
8e2589c
Propagate `--enable-tensorflow` from build-script to CMake. (#29982)
dan-zheng Feb 21, 2020
1a3efc2
Add `test/api-digester/Outputs/stability-stdlib-source.swift.expected`.
dan-zheng Feb 21, 2020
3483944
Disable `test/api-digester/stability-stdlib-abi-without-asserts.swift`.
dan-zheng Feb 21, 2020
f4b1ced
Update checkout for auxiliary repositories.
dan-zheng Feb 21, 2020
d084d87
Fix validation-test/Python/python_lint.swift. (#29997)
dan-zheng Feb 21, 2020
98c01d6
Fix utils/build-script unbound variable.
dan-zheng Feb 21, 2020
768942e
build: add some tensorflow install rules
compnerd Feb 21, 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
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ CHANGELOG
Swift Next
----------

* [SE-0266][]:

Enumerations with no associated values, or only `Comparable` associated values, can opt-in to synthesized `Comparable` conformance by declaring conformance to the `Comparable` protocol. The synthesized implementation orders the cases first by case-declaration order, and then by lexicographic order of the associated values (if any).

```swift
enum Foo: Comparable {
case a(Int), b(Int), c
}

// .a(0) < .a(1) < .b(0) < .b(1) < .c
```

* [SE-0269][]:

When an escaping closure explicitly captures `self` in its capture list, the
Expand Down Expand Up @@ -7901,6 +7913,7 @@ Swift 1.0
[SE-0252]: <https://github.com/apple/swift-evolution/blob/master/proposals/0252-keypath-dynamic-member-lookup.md>
[SE-0253]: <https://github.com/apple/swift-evolution/blob/master/proposals/0253-callable.md>
[SE-0254]: <https://github.com/apple/swift-evolution/blob/master/proposals/0254-static-subscripts.md>
[SE-0266]: <https://github.com/apple/swift-evolution/blob/master/proposals/0266-synthesized-comparable-for-enumerations.md>
[SE-0269]: <https://github.com/apple/swift-evolution/blob/master/proposals/0269-implicit-self-explicit-capture.md>

[SR-106]: <https://bugs.swift.org/browse/SR-106>
Expand Down
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,29 @@ Additionally, [Bazel](https://www.bazel.build) between v0.24.1 and v0.25.2 (incl

For Ubuntu, you'll need the following development dependencies:

sudo apt-get install git cmake ninja-build clang python uuid-dev libicu-dev icu-devtools libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config libcurl4-openssl-dev libblocksruntime-dev systemtap-sdt-dev tzdata rsync

Additionally, [Bazel](https://www.bazel.build) between v0.24.1 and v0.25.2 (inclusive) is required to build with TensorFlow support. Ubuntu installation instructions can be found [below](#bazel).
```
sudo apt-get install \
clang \
cmake \
git \
icu-devtools \
libcurl4-openssl-dev \
libedit-dev \
libicu-dev \
libncurses5-dev \
libpython-dev \
libsqlite3-dev \
libxml2-dev \
ninja-build \
pkg-config \
python \
python-six \
rsync \
swig \
systemtap-sdt-dev \
tzdata \
uuid-dev
```

**Note:** LLDB currently requires at least `swig-1.3.40` but will successfully build
with version 2 shipped with Ubuntu.
Expand Down
1 change: 1 addition & 0 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ set(SWIFT_BENCH_MODULES
single-source/Combos
single-source/DataBenchmarks
single-source/DeadArray
single-source/DevirtualizeProtocolComposition
single-source/DictOfArraysToArrayOfDicts
single-source/DictTest
single-source/DictTest2
Expand Down
45 changes: 45 additions & 0 deletions benchmark/single-source/DevirtualizeProtocolComposition.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//===--- DevirtualizeProtocolComposition.swift -------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//

import TestsUtils

public let DevirtualizeProtocolComposition = [
BenchmarkInfo(name: "DevirtualizeProtocolComposition", runFunction: run_DevirtualizeProtocolComposition, tags: [.validation, .api]),
]

protocol Pingable { func ping() -> Int; func pong() -> Int}

public class Game<T> {
func length() -> Int { return 10 }
}

public class PingPong: Game<String> { }

extension PingPong : Pingable {
func ping() -> Int { return 1 }
func pong() -> Int { return 2 }
}

func playGame<T>(_ x: Game<T> & Pingable) -> Int {
var sum = 0
for _ in 0..<x.length() {
sum += x.ping() + x.pong()
}
return sum
}

@inline(never)
public func run_DevirtualizeProtocolComposition(N: Int) {
for _ in 0..<N * 20_000 {
blackHole(playGame(PingPong()))
}
}
2 changes: 2 additions & 0 deletions benchmark/utils/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import Codable
import Combos
import DataBenchmarks
import DeadArray
import DevirtualizeProtocolComposition
import DictOfArraysToArrayOfDicts
import DictTest
import DictTest2
Expand Down Expand Up @@ -231,6 +232,7 @@ registerBenchmark(Combos)
registerBenchmark(ClassArrayGetter)
registerBenchmark(DataBenchmarks)
registerBenchmark(DeadArray)
registerBenchmark(DevirtualizeProtocolComposition)
registerBenchmark(DictOfArraysToArrayOfDicts)
registerBenchmark(Dictionary)
registerBenchmark(Dictionary2)
Expand Down
Loading