Skip to content

[DNM] Implement Float16 #21738

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

Closed
wants to merge 2,630 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2630 commits
Select commit Hold shift + click to select a range
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
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
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
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
56ecb8f
Enable better runtime failure messages
eeckstein Feb 18, 2020
7063a79
Merge pull request #29902 from gottesmm/pr-c7fabcf6a57817aaeaf73160c9…
swift-ci Feb 18, 2020
bb20a87
Merge pull request #29871 from swiftwasm/swiftwasm-stdlib-tests
swift-ci Feb 18, 2020
04fafd7
Merge pull request #29881 from swiftwasm/swiftwasm-string
swift-ci Feb 18, 2020
60565d5
Merge pull request #29903 from eeckstein/enable-runtime-messages
eeckstein Feb 18, 2020
abc84e7
Merge pull request #29897 from slavapestov/start-removing-clear-looku…
slavapestov Feb 18, 2020
61832cb
Merge pull request #29823 from compnerd/swift-lang-rises
compnerd 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
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
c14a51b
[SILVerifier] NFC: standardize same-type assertions. (#29862)
dan-zheng Feb 18, 2020
bf7ac27
Merge pull request #29896 from gottesmm/pr-0a06969f425624e1d9d39042fc…
gottesmm 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
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
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
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
3526539
Merge pull request #29605 from gottesmm/pr-db719c8315f5da4d80fcb17452…
gottesmm Feb 18, 2020
6992712
IRGen: Fix specialized conformances with abstract conditional require…
aschwaighofer Feb 18, 2020
e4a4dfe
Merge pull request #29910 from nkcsgexi/increase-timeout-time
nkcsgexi 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
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
01f9321
build: build PythonKit with just built toolchain
compnerd Feb 18, 2020
b0d741d
Refactor AreAllStoredPropertiesDefaultInitableRequest for Property Wr…
CodaFi 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
91995c4
IRGen: Add code for recursive type layout based witness generation
aschwaighofer Feb 14, 2020
7b65768
IRGen: Add code to compute type layouts
aschwaighofer Feb 17, 2020
cb2235f
Add code to implement value witnesses based on type layouts
aschwaighofer Feb 17, 2020
289996a
Add test case for typelayout based value witness emission.
aschwaighofer Feb 17, 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
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
9fa6d89
SILGen: Fix keypath getter/setter emission with opaque result types
slavapestov Feb 18, 2020
e641c4a
IRGen: Deal with broken AST from batch mode
aschwaighofer 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
ebb727c
[TypeCheckAttr] Allow a type eraser initializer to have more than one
hborla Feb 20, 2020
8af4f2d
Merge pull request #29493 from LucianoPAlmeida/SR-11421-checked-cast-…
xedin Feb 20, 2020
9f0e2d2
Merge pull request #29930 from CodaFi/di-trying
CodaFi Feb 20, 2020
814491a
Merge pull request #29942 from xymus/spitdlib
xymus 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
f353c40
Revert "[SILOptimizer] Generalize optimization of static keypaths"
jckarter Feb 20, 2020
2d1aa2d
Remove some unused Sema diagnostic messages
owenv Feb 20, 2020
e5e9fce
[AutoDiff upstream] Upstream attribute type-checking changes. (#29945)
dan-zheng Feb 20, 2020
f141b4d
[TypeCheckAttr] Provide better error messages for a typeEraser that
hborla 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
f5b40d6
[AutoDiff upstream] Add SIL derivative function type caching. (#29953)
dan-zheng Feb 20, 2020
e6bbb8d
Merge pull request #29948 from davidungar/unit-test-users-v5a
Feb 20, 2020
d53ff03
Merge pull request #29926 from aschwaighofer/irgen_spot_fix_for_batch…
aschwaighofer Feb 20, 2020
42b7d59
Merge pull request #29951 from dan-zheng/silence-warnings
compnerd Feb 20, 2020
f00cf8a
Merge pull request #29941 from compnerd/it-just-works
compnerd Feb 20, 2020
7543d4d
IRGen: Deal with broken conformance in the AST
aschwaighofer Feb 20, 2020
5d87e43
build: improve the PythonKit build
compnerd Feb 20, 2020
56e58b4
build: remove duplicated parameter to `_add_swift_host_library_single`
compnerd Feb 20, 2020
f11ecde
build: remove unnecessary `set_target_property`
compnerd Feb 20, 2020
749dd26
build: inline constant values for `_add_swift_host_library_single`
compnerd Feb 20, 2020
4a93f70
build: use a regular expression in `_add_swift_host_library_single`
compnerd Feb 20, 2020
a32b479
build: custom import libraries are not needed for host libraries
compnerd Feb 20, 2020
4b2cbd6
build: rename prefix for `_add_swift_host_library_single`
compnerd Feb 20, 2020
2897daa
Merge pull request #22616 from karwa/substring_inline
milseman Feb 20, 2020
00ed9e4
Disable test_backward_deploy_conformance.swift on Swift-in-the-OS bots
slavapestov Feb 20, 2020
7fa0af7
Merge pull request #29958 from compnerd/pythonkit-old-cmake
compnerd Feb 20, 2020
bbbdf14
test: fix for Windows
compnerd Feb 20, 2020
3d18c07
[TypeCheckAttr] Implement access control checking for the typeEraser
hborla Feb 20, 2020
8ad3988
Ignore output data that's not relevant for this test.
tbkka Feb 20, 2020
a305ef2
build: add missing test dependency, sort, reflow
compnerd Feb 20, 2020
2185f43
[TypeCheckAttr] Improve diagnostics and candidate notes for typeErase…
hborla Feb 20, 2020
1a59837
Merge pull request #29961 from slavapestov/disable-backward-deploymen…
slavapestov Feb 20, 2020
90a2614
Merge pull request #29957 from aschwaighofer/irgen_harden_against_inv…
aschwaighofer Feb 20, 2020
2ae0491
Reflection: Fix a compiler warning
slavapestov Feb 20, 2020
646a3e2
Merge pull request #29968 from tbkka/tbkka-validation-test-Sema-sr8209
swift-ci Feb 20, 2020
a98f446
ABI: Clean up context and method descriptor pointers
slavapestov Feb 20, 2020
386f6d6
Merge pull request #29965 from compnerd/29582-1
compnerd Feb 20, 2020
c6587f1
Merge pull request #29969 from compnerd/all-your-dependencies
compnerd Feb 20, 2020
bbdada4
[Parse] Try to preserve the invariant that anything that contains Key…
akyrtzi Feb 20, 2020
1b07853
Merge pull request #29970 from owenv/remove-unused-diags-2
owenv Feb 20, 2020
ac6e34c
build: make tensorflow-swift-apis build with older CMake
compnerd Feb 20, 2020
bfd0de4
Revert "Revert "Revert "swift-lang: shuffle the source directory stru…
milseman Feb 20, 2020
9284822
Merge pull request #29976 from apple/revert-29941-it-just-works
milseman Feb 20, 2020
dd5b967
Merge pull request #29971 from slavapestov/fix-reflection-warning
slavapestov Feb 21, 2020
71b8d03
Cache the default malloc zone
Catfish-Man Feb 21, 2020
46d945f
[ConstraintSystem] Avoid exploring too much search space when call ar…
xedin Feb 21, 2020
d082e90
Merge pull request #29975 from akyrtzi/fix-invalid-keypath-expr-crash
akyrtzi Feb 21, 2020
de37409
[Driver] pass missing private swiftinterface in merge-modules
xymus Feb 21, 2020
9600b97
[SIL] Fix use-after-free in `SILFunction::print`. (#29949)
dan-zheng Feb 21, 2020
428a08d
Merge pull request #29978 from Catfish-Man/get-in-the-zone
Catfish-Man Feb 21, 2020
91c7906
Merge pull request #29973 from compnerd/tensorflow-build
compnerd Feb 21, 2020
dd94d57
Merge pull request #29972 from slavapestov/clean-up-metadata-relative…
slavapestov Feb 21, 2020
b1c69bd
ABI: Introduce TargetRelativeProtocolRequirementPointer
slavapestov Feb 21, 2020
fe4ba8a
[TypeCheckAttr] Use the correct APIs for checking protocol conformance
hborla Feb 21, 2020
cef43e8
[AutoDiff] Minor parser fix for `@derivative` and `@transpose`.
dan-zheng Feb 21, 2020
4494dc3
Merge pull request #29980 from xymus/missing-private-opt
xymus Feb 21, 2020
9013bbb
Merge pull request #29981 from slavapestov/relative-protocol-descript…
slavapestov Feb 21, 2020
d7ab0c1
[AutoDiff] Fix "'alignof' to an incomplete type" error in AutoDiff.h.…
dan-zheng Feb 21, 2020
fa2ab3b
[NFC] Mark cross-import overlay + module trace test unsupported on Wi…
varungandhi-apple Feb 21, 2020
20048bd
Runtime: Bounds check method override descriptors
slavapestov Feb 21, 2020
79716ef
Merge pull request #29960 from compnerd/add-swift-host-library-single…
gottesmm Feb 21, 2020
b38ca0c
Disable ExistentialSpecializer on generic functions.
atrick Feb 21, 2020
2f7ff37
[Build System] Add support to execute non-executable tests
shahmishal Feb 21, 2020
4e0acd3
[Preset] Add preset for only-non-executable-test
shahmishal Feb 21, 2020
626e6e0
Merge pull request #29912 from aschwaighofer/irgen_partial_apply_forw…
aschwaighofer Feb 21, 2020
5a4d290
[Test] Fix build system test by adding only_non_executable_test flag
shahmishal Feb 21, 2020
e8a7b1b
Merge pull request #29859 from aschwaighofer/irgen_typelayout_based_v…
aschwaighofer Feb 21, 2020
c187b5e
IRGen: correct the typecast (NFC)
compnerd Feb 21, 2020
1cefebe
[AutoDiff] Fix `@differentiable`-related override matching crash. (#2…
dan-zheng Feb 21, 2020
697c722
[AutoDiff] Type-checking support for `inout` parameter differentiatio…
dan-zheng Feb 21, 2020
d37cf8e
Disable test_backward_deploy_conformance completely on Swift-in-the-O…
slavapestov Feb 21, 2020
4609b1c
Merge pull request #29986 from slavapestov/bounds-check-vtable-overri…
slavapestov Feb 21, 2020
07ade1d
[Serialization] Recover from a missing conforming type in a protocol …
xymus Feb 4, 2020
880b866
[Serialization] Fix crash in reporting missing implementationOnly mod…
xymus Feb 5, 2020
8a892f2
Merge pull request #29989 from atrick/fix-existential-generic
atrick Feb 21, 2020
dec2ad0
Merge pull request #29979 from xedin/rdar-56400265
xedin Feb 21, 2020
6dc9dce
[Test] Reproducer for witness table deserialization failure with a en…
xymus Feb 5, 2020
e93a6b9
[TypeCheckAttr] Allow a typealias to be a type eraser and add additional
hborla Feb 21, 2020
83668f9
Merge pull request #29946 from apple/revert-28799-master
jckarter Feb 21, 2020
7802d17
Merge pull request #29639 from xymus/recover-in-getAllWitnessTables
xymus Feb 21, 2020
9f09add
Merge pull request #29966 from hborla/type-check-type-eraser-attribute
hborla Feb 21, 2020
52509d6
[ClangImporter] Add a regression test for an refined explicit setter
CodaFi Feb 22, 2020
e69a361
Merge pull request #29994 from slavapestov/disable-test-harder
slavapestov Feb 22, 2020
52bf957
Merge pull request #30005 from CodaFi/sugar-never-tasted-so-sweet
swift-ci Feb 22, 2020
5f0ccca
Merge pull request #29991 from apple/add-flag-non-executable-test
shahmishal Feb 22, 2020
0a46bd4
[Preset] skip simulator and macOS tests on non_executable test preset
shahmishal Feb 22, 2020
601a51a
Fix EscapeAnalysis connection graph for existential values.
atrick Feb 22, 2020
7666a6e
Merge pull request #30007 from apple/add-flag-non-executable-test
shahmishal Feb 22, 2020
0626dc7
Merge pull request #29993 from compnerd/conform-to-your-conformance
compnerd Feb 22, 2020
c6183ee
Add RangeSet and discontiguous collection operations (#28161)
natecook1000 Feb 22, 2020
8d5c73a
Merge pull request #30009 from atrick/fix-escape-miscompile
atrick Feb 22, 2020
e9aaef4
test: move RangeSet test into validation-test
compnerd Feb 23, 2020
f39b4b5
[test] REQUIRE cpu arm64 when testing arm64 flags.
3405691582 Feb 23, 2020
2b60690
Disabled Result_future on another simulator.
nate-chandler Feb 23, 2020
893707d
Merge pull request #30016 from compnerd/28161
compnerd Feb 23, 2020
86122f7
Merge pull request #30019 from nate-chandler/result-future-disable-wa…
swift-ci Feb 23, 2020
cd4f3b0
Merge pull request #30017 from 3405691582/TestSerializationAndroidMod…
swift-ci Feb 23, 2020
ae423c5
[NFC] Replace two uses of 'fileprivate' with 'private'
xwu Feb 23, 2020
86f7c6b
[docs] Updating doc list for the diagnostics ported to new framework
LucianoPAlmeida Feb 23, 2020
1d7ec4c
[NFC][Foundation] Remove or replace unnecessary uses of 'fileprivate'
xwu Feb 23, 2020
dddcfb8
Merge pull request #29984 from dan-zheng/TF-1168
swift-ci Feb 23, 2020
2e2e886
build: bifurcate `_add_swift_executable_single`
compnerd Feb 23, 2020
c7552bf
Merge pull request #30023 from LucianoPAlmeida/patch-1
xedin Feb 24, 2020
d81161a
Merge pull request #29851 from DougGregor/remove-performance-hacks
DougGregor Feb 24, 2020
af97fd1
Merge pull request #30026 from compnerd/executable-splitting
compnerd Feb 24, 2020
4d59bc5
Merge pull request #30021 from xwu/private-not-fileprivate
xwu Feb 24, 2020
50ab652
Implement Float16
stephentyrone Jan 9, 2019
46b651c
Add support for simd vectors of Float16, and Mirrors.
stephentyrone Jan 9, 2019
9257cd7
Add conversions from Float16 to integer types.
stephentyrone Jan 9, 2019
9e9deb3
Quick implementation of FloatingPointParsing for Float16
stephentyrone Jan 9, 2019
602085f
Add codable conformance for Float16, remove AnyHashableBox.
stephentyrone Feb 5, 2020
ff14be9
Add importer support for mapping __fp16 and _Float16 to Float16.
stephentyrone Feb 5, 2020
794ab7a
add _swift_stdlib_strtof16 shim
stephentyrone Feb 26, 2020
f1c369b
More float16 work.
stephentyrone Feb 28, 2020
c6e9205
Merge branch 'add-float16' of github.com:stephentyrone/swift into add…
stephentyrone Feb 28, 2020
fd5b305
Add 9999 availability to all Float16 API.
stephentyrone Feb 28, 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
  •  
  •  
  •  
12 changes: 5 additions & 7 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,31 @@ filename =
./benchmark/scripts/Benchmark_Driver,
./benchmark/scripts/Benchmark_DTrace.in,
./benchmark/scripts/Benchmark_GuardMalloc.in,
./benchmark/scripts/Benchmark_QuickCheck.in,
./benchmark/scripts/Benchmark_RuntimeLeaksRunner.in,
./benchmark/scripts/run_smoke_bench,

./docs/scripts/ns-html2rst,

./test/Driver/Inputs/fake-toolchain/clang++,
./test/Driver/Inputs/fake-toolchain/ld,

./utils/80+-check,
./utils/backtrace-check,
./utils/build-parser-lib,
./utils/build-script,
./utils/check-incremental,
./utils/coverage/coverage-build-db,
./utils/coverage/coverage-generate-data,
./utils/coverage/coverage-query-db,
./utils/coverage/coverage-touch-tests,
./utils/dev-scripts/blockifyasm,
./utils/dev-scripts/split-cmdline,
./utils/gyb,
./utils/line-directive,
./utils/PathSanitizingFileCheck,
./utils/recursive-lipo,
./utils/round-trip-syntax-test,
./utils/rth,
./utils/run-remote,
./utils/run-test,
./utils/scale-test,
./utils/submit-benchmark-results,
Expand All @@ -39,11 +42,6 @@ filename =
# TODO: We should be linting the lit configs.
#lit.cfg,

# FIXME: We need to be linting these files.
#./utils/build-parser-lib,
#./utils/dev-scripts/blockifyasm,
#./utils/dev-scripts/split-cmdline,

exclude =
.git,
__pycache__,
Expand Down
31 changes: 31 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 @@ -193,6 +205,23 @@ Swift 5.2
* `mutating func callAsFunction` is supported.
* `func callAsFunction` works with `throws` and `rethrows`.
* `func callAsFunction` works with trailing closures.

* [SE-0249][]:

A `\Root.value` key path expression is now allowed wherever a `(Root) -> Value`
function is allowed. Such an expression is implicitly converted to a key path
application of `{ $0[keyPath: \Root.value] }`.

For example:

```swift
struct User {
let email: String
let isAdmin: Bool
}

users.map(\.email) // this is equivalent to: users.map { $0[keyPath: \User.email] }
```

* [SR-4206][]:

Expand Down Expand Up @@ -7880,9 +7909,11 @@ Swift 1.0
[SE-0242]: <https://github.com/apple/swift-evolution/blob/master/proposals/0242-default-values-memberwise.md>
[SE-0244]: <https://github.com/apple/swift-evolution/blob/master/proposals/0244-opaque-result-types.md>
[SE-0245]: <https://github.com/apple/swift-evolution/blob/master/proposals/0245-array-uninitialized-initializer.md>
[SE-0249]: <https://github.com/apple/swift-evolution/blob/master/proposals/0249-key-path-literal-function-expressions.md>
[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
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ endif()

ENABLE_LANGUAGE(C)

# Use C++14.
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to")
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS NO)

# First include general CMake utilities.
include(SwiftUtils)
include(CheckSymbolExists)
Expand Down
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
|---|:---:|:---:|
|**[Ubuntu 16.04 ](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/ppc64le_ubuntu_16_04.json)** | PPC64LE |[![Build Status](https://ci-external.swift.org/job/oss-swift-5.1-RA-linux-ubuntu-16.04-ppc64le/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-5.1-RA-linux-ubuntu-16.04-ppc64le)|
|**[Ubuntu 16.04 ](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/aarch64_ubuntu_16.04.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-aarch64)|
|**[Ubuntu 18.04 ](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/aarch64_ubuntu_18.04.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-18.04-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-18.04-aarch64)|
|**[Android](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_LTS_android.json)** | ARMv7 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android)|
|**[Android](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_LTS_android.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64)|
|**[Windows 2019](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_windows_2019.json)** | x86_64 | [![Build Status](https://ci-external.swift.org/job/oss-swift-windows-x86_64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-windows-x86_64)|
|**[Windows 2019 (VS 2017)](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_windows_2019.json)** | x86_64 | [![Build Status](https://ci-external.swift.org/job/oss-swift-windows-x86_64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-windows-x86_64)|
|**[Windows 2019 (VS 2019)](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_windows_2019_VS2019.json)** | x86_64 | [![Build Status](https://ci-external.swift.org/job/oss-swift-windows-x86_64-vs2019/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/ooss-swift-windows-x86_64-vs2019)|

**Swift TensorFlow Community-Hosted CI Platforms**

Expand Down Expand Up @@ -108,7 +110,29 @@ Instructions for installing CMake and Ninja directly can be found [below](#build

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 systemtap-sdt-dev tzdata rsync
```
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
5 changes: 5 additions & 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 Expand Up @@ -248,6 +249,10 @@ option(SWIFT_BENCHMARK_GENERATE_OPT_VIEW
set(SWIFT_BENCHMARK_OPT_VIEWER "" CACHE FILEPATH
"Path to opt-viewer")

option(SWIFT_BENCHMARK_GENERATE_DEBUG_INFO
"Produce debug info for benchmarks"
TRUE)

if(SWIFT_BENCHMARK_OPT_VIEWER)
# If the path to the opt-viewer was specified manually and we have no access
# to the LLVM tree, assume we have the modules for the opt-viewer installed.
Expand Down
3 changes: 3 additions & 0 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ The following build options are available:
* Enable this option to link the benchmark binaries against the target
machine's Swift standard library and runtime installed with the OS.
(default: OFF)
* `-DSWIFT_BENCHMARK_GENERATE_DEBUG_INFO`
* Enable this option to compile benchmark binaries with debug info.
(default: ON)

The following build targets are available:

Expand Down
8 changes: 8 additions & 0 deletions benchmark/cmake/modules/AddSwiftBenchmarkSuite.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ function (swift_benchmark_compile_archopts)
"-target" "${target}"
"-${BENCH_COMPILE_ARCHOPTS_OPT}" ${PAGE_ALIGNMENT_OPTION})

if(SWIFT_BENCHMARK_GENERATE_DEBUG_INFO)
list(APPEND common_options "-g")
endif()

if (is_darwin)
list(APPEND common_options
"-I" "${srcdir}/utils/ObjectiveCTests"
Expand Down Expand Up @@ -384,6 +388,10 @@ function (swift_benchmark_compile_archopts)
"-target" "${target}"
"-${driver_opt}")

if(SWIFT_BENCHMARK_GENERATE_DEBUG_INFO)
list(APPEND common_options_driver "-g")
endif()

if (is_darwin)
list(APPEND common_options_driver
"-sdk" "${sdk}"
Expand Down
73 changes: 42 additions & 31 deletions benchmark/scripts/Benchmark_DTrace.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,61 +19,56 @@ import sys

DRIVER_LIBRARY_PATH = "@PATH_TO_DRIVER_LIBRARY@"
sys.path.append(DRIVER_LIBRARY_PATH)
DTRACE_PATH = os.path.join(DRIVER_LIBRARY_PATH, 'swift_stats.d')
DTRACE_PATH = os.path.join(DRIVER_LIBRARY_PATH, "swift_stats.d")

import perf_test_driver # noqa (E402 module level import not at top of file)

# Regexes for the XFAIL_LIST. Matches against '([Onone|O|Osize],TestName)'
XFAIL_LIST = [
]
XFAIL_LIST = []


class DTraceResult(perf_test_driver.Result):

def __init__(self, name, status, output, csv_output):
perf_test_driver.Result.__init__(
self, name, status, output, XFAIL_LIST)
perf_test_driver.Result.__init__(self, name, status, output, XFAIL_LIST)
self.csv_output = csv_output

def is_failure(self):
return not bool(self.status)

@classmethod
def data_headers(cls):
return [
'Name', 'Result', 'Total RR Opts', 'Total RR Opts/Iter']
return ["Name", "Result", "Total RR Opts", "Total RR Opts/Iter"]

@classmethod
def data_format(cls, max_test_len):
non_name_headers = DTraceResult.data_headers()[1:]
fmt = ('{:<%d}' % (max_test_len + 5)) + \
''.join(['{:<%d}' % (len(h) + 2) for h in non_name_headers])
fmt = ("{:<%d}" % (max_test_len + 5)) + "".join(
["{:<%d}" % (len(h) + 2) for h in non_name_headers]
)
return fmt

@classmethod
def print_data_header(cls, max_test_len, csv_output):
headers = cls.data_headers()
if csv_output:
print(','.join(headers))
print(",".join(headers))
return
print(cls.data_format(max_test_len).format(*headers))

def print_data(self, max_test_len):
result = [self.get_name(), self.get_result()] + map(str, self.output)
if self.csv_output:
print(','.join(result))
print(",".join(result))
return

print(DTraceResult.data_format(max_test_len).format(*result))


class DTraceBenchmarkDriver(perf_test_driver.BenchmarkDriver):

def __init__(self, binary, xfail_list, csv_output):
perf_test_driver.BenchmarkDriver.__init__(
self, binary, xfail_list,
enable_parallel=True,
opt_levels=['O'])
self, binary, xfail_list, enable_parallel=True, opt_levels=["O"]
)
self.csv_output = csv_output

def print_data_header(self, max_test_len):
Expand All @@ -83,23 +78,37 @@ class DTraceBenchmarkDriver(perf_test_driver.BenchmarkDriver):
return {}

def process_input(self, data):
test_name = '({}_{})'.format(data['opt'], data['test_name'])
test_name = "({}_{})".format(data["opt"], data["test_name"])
print("Running {}...".format(test_name))
sys.stdout.flush()

def get_results_with_iters(iters):
e = os.environ
e['SWIFT_DETERMINISTIC_HASHING'] = '1'
p = subprocess.Popen([
'sudo', 'dtrace', '-s', DTRACE_PATH,
'-c', '%s %s %s %s' % (data['path'], data['test_name'],
'--num-iters=%d' % iters,
'--num-samples=2')
], stdout=subprocess.PIPE, stderr=open('/dev/null', 'w'), env=e)
e["SWIFT_DETERMINISTIC_HASHING"] = "1"
p = subprocess.Popen(
[
"sudo",
"dtrace",
"-s",
DTRACE_PATH,
"-c",
"%s %s %s %s"
% (
data["path"],
data["test_name"],
"--num-iters=%d" % iters,
"--num-samples=2",
),
],
stdout=subprocess.PIPE,
stderr=open("/dev/null", "w"),
env=e,
)
results = [x for x in p.communicate()[0].split("\n") if len(x) > 0]
return [
x.split(',')[1] for x in
results[results.index('DTRACE RESULTS') + 1:]]
x.split(",")[1] for x in results[results.index("DTRACE RESULTS") + 1 :]
]

iter_2_results = get_results_with_iters(2)
iter_3_results = get_results_with_iters(3)
iter_5_results = get_results_with_iters(5)
Expand Down Expand Up @@ -136,16 +145,18 @@ SWIFT_BIN_DIR = os.path.dirname(os.path.abspath(__file__))
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument(
'-filter',
"-filter",
type=str,
default=None,
help='Filter out any test that does not match the given regex')
help="Filter out any test that does not match the given regex",
)
parser.add_argument(
'--emit-csv',
"--emit-csv",
default=False,
action='store_true',
action="store_true",
help="Emit csv output",
dest='csv_output')
dest="csv_output",
)
return parser.parse_args()


Expand Down
Loading