Skip to content

Merge 2020-11-10 into tensorflow #34676

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 566 commits into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
566 commits
Select commit Hold shift + click to select a range
e68aa49
Merge pull request #34583 from gottesmm/pr-bf7a29f9994c4b246636b8d186…
gottesmm Nov 5, 2020
5943710
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
e9cf2d8
Merge pull request #34578 from nate-chandler/concurrency/irgen/forwar…
nate-chandler Nov 5, 2020
40c66f3
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
8e9dec2
[NFC] Construct AsyncContextLayout from module.
nate-chandler Nov 5, 2020
096edf1
Merge pull request #34579 from rintaro/ide-test-batchcompletion-xfail
rintaro Nov 5, 2020
fbf9621
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
b4572c4
[Gardening] Migrate complete_expr_postfix_begin test to use new batching
bnbarham Nov 3, 2020
5c59bab
Merge pull request #34490 from nate-chandler/generic-metadata-prespec…
nate-chandler Nov 5, 2020
3336775
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
ce932b2
Merge pull request #34557 from zoecarver/cxx/fix/is-dependent-type-ov…
swift-ci Nov 5, 2020
4b9ceed
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
33cfbbd
[Concurrency] Don't diagnose missing "self." in async let autoclosures.
DougGregor Nov 5, 2020
3223cf1
[Concurrency] Improve await/try checking in 'async let' initializers.
DougGregor Nov 5, 2020
779a36b
[Concurrency] Require 'try' on accessing 'async let' with throwing in…
DougGregor Nov 5, 2020
290f9a5
[Concurrency] Add an async let example with multiple initializer clauses
DougGregor Nov 5, 2020
8731258
[Concurrency] Introduce initial (minimal, incomplete) Nursery APIs
ktoso Oct 28, 2020
0accc02
[concurrency] SILVerifier: don't complain about async function pointe…
eeckstein Nov 5, 2020
f3de3b4
SIL: set the @async attribute for top-level functions correctly
eeckstein Nov 5, 2020
9fc1171
[concurrency] SILGen: only emit hop_to_executor instructions in async…
eeckstein Nov 5, 2020
b89874a
Merge pull request #34516 from ktoso/wip-nurseries-taskscopes
ktoso Nov 5, 2020
46d7b6a
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
5e34851
Merge pull request #34585 from nate-chandler/concurrency/irgen/async-…
nate-chandler Nov 5, 2020
ccf2ba3
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
e723550
Merge pull request #34588 from eeckstein/async-bug-fix
swift-ci Nov 5, 2020
47fa4c7
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
4d8ae54
add an explicit include to the build output folder
rmaz Nov 5, 2020
5ef0136
Revert "[cxx-interop] Support class templates containing typedefs."
compnerd Nov 5, 2020
937fee4
Merge pull request #34575 from artemcm/RevertRevertClangOverlayDeps
artemcm Nov 5, 2020
7393e67
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
4017888
[Concurrency] Fix a comment.
DougGregor Nov 5, 2020
203d2c2
Merge pull request #34573 from DougGregor/async-let
DougGregor Nov 5, 2020
a47ebab
[concurrency] SILOptimizer: optimize hop_to_executor instructions.
eeckstein Nov 5, 2020
abfc903
[ConstraintSystem] For generic operators, only consider exact decls that
hborla Nov 3, 2020
12dce85
[NFC][ConstraintSystem] Use llvm::count_if for the count methods on
hborla Nov 3, 2020
91b969a
Merge pull request #34590 from apple/revert-34557-cxx/fix/is-dependen…
compnerd Nov 5, 2020
67aef95
platform: add WIC (Windows Imaging Component) to the SDK
compnerd Nov 5, 2020
2507a31
[Test] Add a slow type checker test case from source compatibility su…
hborla Nov 5, 2020
9566d2e
[Concurrency] Add a builtin to get the current task in an async funct…
DougGregor Nov 5, 2020
d221f14
[CodeCompletion] Deduplicate results in ExprContextInfo
rintaro Nov 5, 2020
9aa6c59
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
BradLarson Nov 5, 2020
cb45415
Merge branch 'tensorflow' of github.com:apple/swift into tensorflow-s…
ainu-bot Nov 5, 2020
901f943
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
5b74552
Merge pull request #34570 from bnbarham/migrate-postfix-begin-test
bnbarham Nov 5, 2020
1f14005
Merge pull request #34584 from xedin/rdar-70880670
xedin Nov 5, 2020
ba855e6
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
704d5e6
Merge pull request #34576 from CodaFi/beta-blockers
CodaFi Nov 5, 2020
ed9a548
[Concurrency] Return getCurrentAsyncTask() as owned.
DougGregor Nov 5, 2020
2fb1210
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
20f0d96
Merge pull request #34569 from bnbarham/do-not-skip-didset-typechecking
CodaFi Nov 5, 2020
2dd8895
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
81f5528
[Concurrency] More cleanups for getCurrentAsyncTask builtin.
DougGregor Nov 5, 2020
8e2b127
[NFC] Clang-formatted 8e9dec23fcb4964ff5c6635143c3ef0bd6f906cb.
nate-chandler Nov 5, 2020
c291eb5
[Concurrency] Add cancelAsyncTask() builtin.
DougGregor Nov 5, 2020
b63dd8b
Merge pull request #34596 from rintaro/ide-completion-rdar71063455
rintaro Nov 5, 2020
73a861e
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
6b6e419
Merge pull request #34591 from compnerd/WIC
compnerd Nov 5, 2020
7b00d52
Merge pull request #34571 from slavapestov/fix-astscope-assert
slavapestov Nov 5, 2020
f150bdd
Sema: Remove UnavailabilityReason::explicitlyWeaklyLinked()
slavapestov Nov 3, 2020
ceb8675
Sema: (Mostly) check conformance availability
slavapestov Oct 29, 2020
2700150
Attempted fix for test failure.
BradLarson Nov 5, 2020
8481b71
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
111b201
Merge pull request #34595 from DougGregor/get-current-async-task-builtin
DougGregor Nov 5, 2020
a0eb2d3
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 5, 2020
1d3f320
[ResultBuilders] Account of a fact that re-write of a statement can fail
xedin Nov 6, 2020
e8151ee
Merge pull request #34599 from nate-chandler/concurrency/irgen/async-…
swift-ci Nov 6, 2020
d6558ff
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 6, 2020
49c6ae3
[Concurrency] Nurseries are now Task.Groups
ktoso Nov 5, 2020
7cee600
[SILGen] Add flag to skip typechecking and SIL gen for function bodies
bnbarham Oct 22, 2020
8fa86d9
Merge pull request #34542 from gottesmm/pr-d13714e486b8dc024730ba8268…
gottesmm Nov 6, 2020
820e09f
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 6, 2020
e5c98ad
[ownership] Now that we allow reborrows eliminate isForwardingSubValu…
gottesmm Nov 5, 2020
4b91350
Merge pull request #34604 from ktoso/wip-nurseries-are-groups
swift-ci Nov 6, 2020
4cd3aea
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 6, 2020
fdff522
Merge pull request #34489 from bnbarham/benb/skip-all-function-bodies
bnbarham Nov 6, 2020
a2d7c70
Merge pull request #34600 from DougGregor/async-task-builtins
DougGregor Nov 6, 2020
51bd8d9
Merge pull request #34510 from maustinstar/sr-11711
xedin Nov 6, 2020
88a6f15
[re-apply][cxx-interop] Support class templates containing typedefs. …
zoecarver Nov 6, 2020
5a87482
Merge pull request #34581 from CodaFi/defunctionalization
CodaFi Nov 6, 2020
9036976
Fix EagerSpecializer to avoid critical edges.
atrick Nov 5, 2020
1328437
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
BradLarson Nov 6, 2020
242e9fe
add the -disable-implicit-concurrency-module-import hidden flag
kavon Nov 6, 2020
21dc508
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 6, 2020
e1526a9
Merge pull request #34565 from slavapestov/conformance-availability-p…
slavapestov Nov 6, 2020
0d7a37c
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 6, 2020
3dca0b6
Merge pull request #34580 from rmaz/testfixes
gmittert Nov 6, 2020
b9bed06
[Runtime] Fix incorrect free() of constant strings in TypeLookupError.
mikeash Nov 5, 2020
2e2792e
[ConstraintSystem] Adjust `diagnoseAmbiguity` to use a local slice of…
xedin Nov 6, 2020
837f3ab
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
BradLarson Nov 6, 2020
adca58f
Fix recently added SIL tests with critical edges.
atrick Nov 6, 2020
8624643
when building the swift libs, do not automatically import _Concurrency
kavon Nov 6, 2020
66fbdce
[ConstraintSystem] Don't increase a score for conditional requirement…
xedin Nov 6, 2020
747b4a0
[docs] Document building stdlib/presets against a LKG snapshot
gottesmm Nov 6, 2020
72d3d30
add regression test for -disable-implicit-concurrency-module-import
kavon Nov 6, 2020
7dd6660
Merge pull request #34615 from apple/update-contiguous-integration.md…
shahmishal Nov 6, 2020
7935b74
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 6, 2020
fd5b87f
[Runtime] Don't write to rodata if values already match.
mikeash Nov 6, 2020
80c4c90
Merge pull request #34603 from xedin/rdar-70256351
xedin Nov 6, 2020
0745ffb
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 6, 2020
f82e962
Merge pull request #34609 from apple/disable-implicit-concur-import
swift-ci Nov 6, 2020
73f880e
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 6, 2020
b785a5f
Merge pull request #34605 from gottesmm/pr-75f04ac2c27715c84382d9a9e4…
gottesmm Nov 6, 2020
fb70d67
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 6, 2020
cb7bb52
[cxx-interop] Support reference types in function templates. (#34536)
zoecarver Nov 7, 2020
1f71144
[cxx-interop] Don't crash for unkown inline-operator. (#34602)
zoecarver Nov 7, 2020
a4a7f55
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 7, 2020
d675c74
[CSApply] Adjust @autoclosure locator to point to argument expression…
xedin Nov 7, 2020
477bef7
Condense benchmarks
micahbenn Nov 7, 2020
f8577b2
driver: allow SWIFT_USE_NEW_DRIVER to specify a driver executable name
nkcsgexi Nov 7, 2020
1406932
Streamline ParseType Logic
Nov 7, 2020
889d9a7
Merge pull request #34623 from nkcsgexi/allow-driver-name
nkcsgexi Nov 7, 2020
f5be28d
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 7, 2020
f8585d7
[windows] Partial revert #34143. Remove XFAIL.
drodriguez Nov 7, 2020
5b4cc58
driver: add an option to avoid forwarding to the new driver
nkcsgexi Nov 8, 2020
0aa41bc
Merge pull request #34625 from drodriguez/windows-un-xfail-msvc-2017-…
drodriguez Nov 8, 2020
8117d0e
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 8, 2020
b43eab4
Merge pull request #34626 from nkcsgexi/opt-out-forwarding
nkcsgexi Nov 8, 2020
640735b
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 8, 2020
4c2c2f3
[Concurrency] Implement a builtin createAsyncTask() to create a new t…
DougGregor Nov 8, 2020
6400df4
[IRGen] Balance out a retain count for createAsyncTask's context.
DougGregor Nov 8, 2020
6a753ac
Merge pull request #34619 from xedin/autoclosure-application-loc
xedin Nov 8, 2020
d5e2547
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 8, 2020
a647f0f
Merge pull request #34399 from hborla/optimize-linked-operator-solving
hborla Nov 8, 2020
cdf4791
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 8, 2020
2ef7a21
[ownership] Rename the cases of UseLifetimeConstraint to use clearer …
gottesmm Nov 8, 2020
642a993
[ownership] Rename Operand::isConsumingUse() -> Operand::isLifetimeEn…
gottesmm Nov 8, 2020
9712e45
[ownership] Add a section to SIL.rst that describes the semantics of …
gottesmm Nov 7, 2020
5c88120
Merge pull request #34630 from gottesmm/pr-7615785dbc35f076a8c60b0e9a…
gottesmm Nov 9, 2020
82004b0
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
dcdf668
[stdlib] Resolve relative address in consistent way
kateinoigakukun Nov 9, 2020
f36e856
[ownership] Use a new ADT SwitchEnumBranch instead of SwitchEnumInstB…
gottesmm Nov 9, 2020
264955c
[ownership] Convert switch_enum to be an ownership forwarding inst an…
gottesmm Nov 9, 2020
36fa93a
Merge pull request #34610 from atrick/eager-critedge
atrick Nov 9, 2020
3bd71de
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
901bce2
Merge pull request #34613 from atrick/critedge-test
atrick Nov 9, 2020
5146ba8
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
0287a3d
Verify no SIL critical edges.
atrick Sep 4, 2018
34c48f1
Add isNonCriticalEdge fast check for a specific edge.
atrick Nov 6, 2020
da0f1ed
Fix CopyPropagation: remove broken critical edge handling.
atrick Nov 6, 2020
6f60a17
Merge pull request #34633 from gottesmm/pr-200203a48964c3efb090a7f4f2…
gottesmm Nov 9, 2020
f5eaf49
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
d74dbeb
[ownership] Make checked_cast_br a true Ownership Forwarding inst ins…
gottesmm Nov 9, 2020
d1b555f
[ownership] Make destructure_{struct,tuple} true forwarding instructi…
gottesmm Nov 9, 2020
6c3af65
[ownership] Add a simple ForwardingOperand ADT and use it in a few pl…
gottesmm Nov 9, 2020
56928ba
Merge pull request #34593 from eeckstein/optimize_hte
eeckstein Nov 9, 2020
a157920
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
51c2bd0
stdlib: remove a wrong internal check for COW array mutation
eeckstein Nov 9, 2020
6d0bbba
stdlib: update comments for the array buffer endCowMutation functions.
eeckstein Nov 9, 2020
c2b13cd
Merge pull request #34635 from atrick/verify-critedge
atrick Nov 9, 2020
5d34ae1
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
4aa1ef3
Merge pull request #34618 from gottesmm/pr-1639094f806f1130063c975fee…
gottesmm Nov 9, 2020
150b51e
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
c4adc64
[ownership] Remove ownership merging from computing Operand constrain…
gottesmm Nov 9, 2020
ff14a40
[Concurrency] Don't import _Concurrency implicitly when building a mo…
DougGregor Nov 9, 2020
d038989
Merge branch 'main' into create-async-task-builtin
DougGregor Nov 9, 2020
8474332
Merge pull request #34437 from buttaface/native-flags
gottesmm Nov 9, 2020
017ae0d
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
c2a6f9a
[ownership] Fix assert to test the right thing semantically in the li…
gottesmm Nov 9, 2020
b5c3f71
[ownership] Move type dependent operand check out of the main visitor…
gottesmm Nov 9, 2020
973af64
allow users to shadow declarations in the _Concurrency module
kavon Nov 9, 2020
963b4e6
Merge pull request #34640 from DougGregor/no-implicit-concurrency-mod…
swift-ci Nov 9, 2020
56c216f
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
b714a31
Merge pull request #34639 from eeckstein/fix-cow-checks
eeckstein Nov 9, 2020
48c4a70
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
5468b2e
regression test for _Concurrency module shadowing behavior
kavon Nov 9, 2020
268bf98
Merge pull request #34641 from gottesmm/pr-dfdd36033047310a7e5dd9c25a…
gottesmm Nov 9, 2020
2e0cce8
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
c7051d2
[ownership] Change ReturnInst to have its ValueOwnershipKind stored w…
gottesmm Nov 9, 2020
e4916b8
Front-end: add a front-end action to print supported features of the …
nkcsgexi Nov 9, 2020
72b594b
[NFC][ConstraintGraph] Address fixme and switch CG::Component depende…
LucianoPAlmeida Nov 9, 2020
b9b30a7
[DiagnosticsQoI] Supe up the NSObject Inheritance Diagnostics
CodaFi Nov 9, 2020
b3843af
Add an Abstraction For Full Qualification to DiagnosticEngine
CodaFi Nov 9, 2020
25bd5ea
Fix styling, optimize
micahbenn Nov 9, 2020
93d1524
Merge pull request #34634 from gottesmm/pr-88f0c52a3c1db5fb272598e5c5…
gottesmm Nov 9, 2020
8308b5a
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
b40aa54
Merge pull request #34637 from gottesmm/pr-027a025e7a95d70fcc7e983009…
gottesmm Nov 9, 2020
441d6e4
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 9, 2020
52bc1cb
[concurrency] update test missed in #34640, resolving rdar://71212904
kavon Nov 9, 2020
d7c6c00
Merge pull request #34614 from xedin/improvements-to-ambiguity-diags
xedin Nov 10, 2020
3ce8090
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
e1df94a
Merge pull request #34642 from kavon/shadowing-concurrency-lib
swift-ci Nov 10, 2020
db57c03
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
58a88c1
Merge pull request #34608 from mikeash/fix-typelookuperror-constant-s…
swift-ci Nov 10, 2020
9e7b14e
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
87f57f9
Merge pull request #34645 from nkcsgexi/emit-supported-features
nkcsgexi Nov 10, 2020
984fa76
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
79e2060
Exempt Swift Interface Files From Whole-Module ObjC Errors
CodaFi Nov 10, 2020
363b66a
Fully Qualify the Parent Type When Diagnosing Missing Member Types
CodaFi Nov 9, 2020
bb79e9c
Merge pull request #34647 from CodaFi/ancestry-dot-NeXT
swift-ci Nov 10, 2020
f70ac57
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
00b35b7
[windows] Mark crash-in-user-code as UNSUPPORTED in VS2017
drodriguez Nov 9, 2020
eadefc0
AccessPath: Add init_enum_data_addr to "access projections" set.
atrick Nov 10, 2020
a0cb311
Merge pull request #34644 from gottesmm/pr-e398af60dfa740b58a743d92dc…
gottesmm Nov 10, 2020
818ab49
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
1315ce8
Merge pull request #34624 from pi1024e/parse-cleanup
slavapestov Nov 10, 2020
12b8c2b
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
983d9b3
Merge pull request #34621 from LucianoPAlmeida/nfc-minor-fixme-cg
LucianoPAlmeida Nov 10, 2020
ef1a2b3
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
cdfff19
Merge pull request #34650 from kavon/regression-71212904
swift-ci Nov 10, 2020
4e4f841
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
7c968c6
AST: support availability on Windows
compnerd Oct 26, 2020
6798ed1
Merge pull request #34627 from DougGregor/create-async-task-builtin
DougGregor Nov 10, 2020
9864fe6
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
6934857
Sema: Tweak associated conformance exportability diagnostics
slavapestov Nov 6, 2020
972cd5c
Sema: Check associated conformance availability
slavapestov Nov 9, 2020
db394c5
Sema: Don't emit 'add @available attribute' fixit on implicit declara…
slavapestov Nov 10, 2020
241559d
[Serialization] Add an option to output modules regardless of errors
bnbarham Oct 22, 2020
4dab4c2
Merge pull request #34648 from CodaFi/a-fully-qualified-success
CodaFi Nov 10, 2020
55da261
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
a723cf7
Merge pull request #34535 from micahbenn/main
eeckstein Nov 10, 2020
26d933a
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
5a8b1ae
Merge pull request #34616 from mikeash/writers-block
mikeash Nov 10, 2020
87312de
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
f4b86c9
Build libdispatch with its own module cache (#34638)
edymtt Nov 10, 2020
7f6d16b
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
fe3415f
Merge pull request #34654 from atrick/fix-loadborrow-initenum
atrick Nov 10, 2020
8e8c2d8
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
51a75b7
[test] Fix test/SourceKit/CursorInfo/invalid_offset
benlangmuir Nov 10, 2020
58f7ac6
Merge pull request #34652 from CodaFi/a-mirror-into-the-soul-of-the-c…
CodaFi Nov 10, 2020
c0e21ed
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
10b6b9d
[Dependency Scanner] Share `ModuleDependenciesCache` as a part of the…
artemcm Nov 9, 2020
f16c4ba
[ownership] Convert ValueOwnershipKind to have an Invalid state inste…
gottesmm Nov 8, 2020
d765f23
Merge pull request #34653 from drodriguez/windows-unsupported-msvc-20…
drodriguez Nov 10, 2020
db1eb6d
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
3b192b7
[NFC] Add back a higher polynomial threshold for rdar18360240.swift.gyb
hborla Nov 10, 2020
b402827
Merge pull request #34439 from compnerd/unavailable
compnerd Nov 10, 2020
1a0830c
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
1b376cd
Merge pull request #34463 from mikeash/concurrentreadablehashmap-inli…
mikeash Nov 10, 2020
9f07436
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
5598a60
CMake: generate SupportedFeatures.json while building and install it …
nkcsgexi Nov 10, 2020
9d4341e
Merge pull request #34657 from benlangmuir/fix-cursor-test
benlangmuir Nov 10, 2020
1149aae
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
1ff9147
Merge pull request #34659 from gottesmm/pr-5755ffcaf1433708dd6843521b…
gottesmm Nov 10, 2020
8086cc6
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
9a67f53
Merge pull request #34660 from hborla/array-scale-test-threshold
hborla Nov 10, 2020
cd73ca5
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
3e3be76
Merge pull request #34646 from artemcm/BatchScanShouldShareCache
artemcm Nov 10, 2020
d5f9606
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
e201c73
Merge pull request #34631 from kateinoigakukun/use-_resolveRelativeAd…
CodaFi Nov 10, 2020
605c953
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
b0577b0
Merge pull request #34472 from bnbarham/benb/allow-errors-69815975
bnbarham Nov 10, 2020
86a8d57
Merge pull request #34655 from nkcsgexi/install-feature-json
nkcsgexi Nov 10, 2020
1945ead
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
fe1c4a4
Merge pull request #34651 from slavapestov/assoc-conformance-availabi…
slavapestov Nov 10, 2020
d195865
Merge branch 'main' of github.com:apple/swift into tensorflow-stage
ainu-bot Nov 10, 2020
0707782
update-checkout-config.json: adjust for tensorflow merge
xihui-wu Nov 10, 2020
52843ee
update swift-tools-support-core version
xihui-wu Nov 11, 2020
0377221
Remove dispatch-build-dir arg
texasmichelle Nov 10, 2020
bf24883
Exclude foundation-build-dir arg
texasmichelle Nov 10, 2020
e432c5f
Remove build args that interfere with yams
texasmichelle Nov 10, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ set(SWIFT_BENCH_MODULES
single-source/Hash
single-source/Histogram
single-source/HTTP2StateMachine
single-source/IndexPathTest
single-source/InsertCharacter
single-source/IntegerParsing
single-source/Integrate
Expand Down
134 changes: 134 additions & 0 deletions benchmark/single-source/IndexPathTest.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
//===--- IndexPathTest.swift ----------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2020 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 Foundation
import TestsUtils

let size = 200
let increasingIndexPath = indexPath(size)
let decreasingIndexPath = indexPath(size, reversed: true)
let increasingMaxMiddleIndexPath = indexPath(size, middle: size + 1)
let increasingMinMiddleIndexPath = indexPath(size, middle: -1)
let tags: [BenchmarkCategory] = [.validation, .api, .IndexPath]

public let IndexPathTest = [
BenchmarkInfo(
name: "IndexPath.Subscript.Mutation",
runFunction: run_IndexPathSubscriptMutation,
tags: tags,
setUpFunction: { blackHole(increasingIndexPath) }),
BenchmarkInfo(
name: "IndexPath.Subscript.Range.Mutation",
runFunction: run_IndexPathSubscriptRangeMutation,
tags: tags,
setUpFunction: { blackHole(increasingIndexPath) }),
BenchmarkInfo(
name: "IndexPath.Max",
runFunction: run_IndexPathMax,
tags: tags,
setUpFunction: {
blackHole(decreasingIndexPath)
blackHole(increasingMaxMiddleIndexPath)
blackHole(increasingIndexPath)
}),
BenchmarkInfo(
name: "IndexPath.Min",
runFunction: run_IndexPathMin,
tags: tags,
setUpFunction: {
blackHole(increasingIndexPath)
blackHole(increasingMinMiddleIndexPath)
blackHole(decreasingIndexPath)
}),
]

func indexPath(_ size: Int, reversed: Bool = false) -> IndexPath {
let indexes = Array(0..<size)
return IndexPath(indexes: reversed ? indexes.reversed() : indexes)
}

func indexPath(_ size: Int, middle: Int) -> IndexPath {
var indexes = Array(0..<size)
indexes.insert(middle, at: (indexes.count - 1) / 2)
return IndexPath(indexes: indexes)
}

// Subscript Mutations

@inline(__always)
func subscriptMutation(
n: Int,
mutations: Int,
indexPath: IndexPath,
mutate: (inout IndexPath, Int) -> Void
) {
for _ in 0..<n {
for i in 0..<mutations {
var ip = indexPath
mutate(&ip, i)
}
}
}

@inline(never)
public func run_IndexPathSubscriptMutation(_ n: Int) {
subscriptMutation(
n: n * 10, mutations: size, indexPath: increasingIndexPath,
mutate: { ip, i in
ip[i % 4] += 1
})
}

@inline(never)
public func run_IndexPathSubscriptRangeMutation(_ n: Int) {
subscriptMutation(
n: n, mutations: size, indexPath: increasingIndexPath,
mutate: { ip, i in
ip[0..<i] += [i]
})
}

// Max

@inline(never)
public func run_IndexPathMax(_ n: Int) {
for _ in 0..<n * 10 {
var val: Int?
// Beginning max
val = decreasingIndexPath.max()
blackHole(val)
// Middle max
val = increasingMaxMiddleIndexPath.max()
blackHole(val)
// End max
val = increasingIndexPath.max()
blackHole(val)
}
}

// Min

@inline(never)
public func run_IndexPathMin(_ n: Int) {
for _ in 0..<n * 10 {
var val: Int?
// Beginning min
val = increasingIndexPath.min()
blackHole(val)
// Middle min
val = increasingMinMiddleIndexPath.min()
blackHole(val)
// End min
val = decreasingIndexPath.min()
blackHole(val)
}
}
2 changes: 1 addition & 1 deletion benchmark/utils/TestsUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public enum BenchmarkCategory : String {
// we know is important to measure.
case validation
// subsystems to validate and their subcategories.
case api, Array, String, Dictionary, Codable, Set, Data
case api, Array, String, Dictionary, Codable, Set, Data, IndexPath
case sdk
case runtime, refcount, metadata
// Other general areas of compiled code validation.
Expand Down
2 changes: 2 additions & 0 deletions benchmark/utils/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ import Hanoi
import Hash
import Histogram
import HTTP2StateMachine
import IndexPathTest
import InsertCharacter
import IntegerParsing
import Integrate
Expand Down Expand Up @@ -274,6 +275,7 @@ registerBenchmark(Hanoi)
registerBenchmark(HashTest)
registerBenchmark(Histogram)
registerBenchmark(HTTP2StateMachine)
registerBenchmark(IndexPathTest)
registerBenchmark(InsertCharacter)
registerBenchmark(IntegerParsing)
registerBenchmark(IntegrateTest)
Expand Down
3 changes: 3 additions & 0 deletions docs/ABI/Mangling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ Globals

global ::= global 'MJ' // noncanonical specialized generic type metadata instantiation cache associated with global
global ::= global 'MN' // noncanonical specialized generic type metadata for global
global ::= global 'Mz' // canonical specialized generic type metadata caching token

#if SWIFT_RUNTIME_VERSION >= 5.4
global ::= context (decl-name '_')+ 'WZ' // global variable one-time initialization function
Expand Down Expand Up @@ -218,6 +219,8 @@ types where the metadata itself has unknown layout.)
global ::= global 'Tm' // merged function
global ::= entity // some identifiable thing
global ::= from-type to-type generic-signature? 'TR' // reabstraction thunk
global ::= from-type to-type generic-signature? 'TR' // reabstraction thunk
global ::= impl-function-type 'Tz' // objc-to-swift-async completion handler block implementation
global ::= from-type to-type self-type generic-signature? 'Ty' // reabstraction thunk with dynamic 'Self' capture
global ::= from-type to-type generic-signature? 'Tr' // obsolete mangling for reabstraction thunk
global ::= entity generic-signature? type type* 'TK' // key path getter
Expand Down
52 changes: 44 additions & 8 deletions docs/ContinuousIntegration.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
- [Linting](#linting)
- [Source Compatibility Testing](#source-compatibility-testing)
- [Sourcekit Stress Testing](#sourcekit-stress-testing)
- [Specific Preset Testing](#specific-preset-testing)
- [Running Non-Executable Device Tests](#running-non-executable-device-tests)
- [Build Swift Toolchain](#build-swift-toolchain)
- [Build and Test Stdlib against Snapshot Toolchain](#build-and-test-stdlib-against-snapshot-toolchain)
- [Specific Preset Testing](#specific-preset-testing)
- [Specific Preset Testing against a Snapshot Toolchain](#specific-preset-testing-against-a-snapshot-toolchain)
- [Running Non-Executable Device Tests using Specific Preset Testing](#running-non-executable-device-tests-using-specific-preset-testing)
- [Build and Test the Minimal Freestanding Stdlib using Toolchain Specific Preset Testing](#build-and-test-the-minimal-freestanding-stdlib-using-toolchain-specific-preset-testing)
- [Testing Compiler Performance](#testing-compiler-performance)
- [Swift Community Hosted CI Pull Request Testing](#swift-community-hosted-ci-pull-request-testing)
- [Cross Repository Testing](#cross-repository-testing)
Expand Down Expand Up @@ -168,6 +171,21 @@ Platform | Comment | Check Status
------------ | ------- | ------------
macOS platform | @swift-ci Please Sourcekit Stress test | Swift Sourcekit Stress Tester on macOS Platform

### Build Swift Toolchain

Platform | Comment | Check Status
------------ | ------- | ------------
macOS platform | @swift-ci Please Build Toolchain macOS Platform| Swift Build Toolchain macOS Platform
Linux platform | @swift-ci Please Build Toolchain Linux Platform| Swift Build Toolchain Linux Platform

### Build and Test Stdlib against Snapshot Toolchain

To test/build the stdlib for a branch that changes only the stdlib using a last known good snapshot toolchain:

Platform | Comment | Check Status
------------ | ------- | ------------
macOS platform | @swift-ci Please test stdlib with toolchain| Swift Test stdlib with toolchain macOS Platform

### Specific Preset Testing

Platform | Comment | Check Status
Expand All @@ -183,7 +201,23 @@ preset=buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx,single-thread
@swift-ci Please test with preset macOS
```

### Running Non-Executable Device Tests

### Specific Preset Testing against a Snapshot Toolchain

One can also run an arbitrary preset against a snapshot toolchain

Platform | Comment | Check Status
------------ | ------- | ------------
macOS platform | preset=<preset> <br> @swift-ci Please test with toolchain and preset| Swift Test stdlib with toolchain macOS Platform (Preset)

For example:

```
preset=$PRESET_NAME
@swift-ci Please test with toolchain and preset
```

### Running Non-Executable Device Tests using Specific Preset Testing

Using the specific preset testing, one can run non-executable device tests by
telling swift-ci:
Expand All @@ -193,12 +227,14 @@ preset=buildbot,tools=RA,stdlib=RD,test=non_executable
@swift-ci Please test with preset macOS
```

### Build Swift Toolchain
### Build and Test the Minimal Freestanding Stdlib using Toolchain Specific Preset Testing

Platform | Comment | Check Status
------------ | ------- | ------------
macOS platform | @swift-ci Please Build Toolchain macOS Platform| Swift Build Toolchain macOS Platform
Linux platform | @swift-ci Please Build Toolchain Linux Platform| Swift Build Toolchain Linux Platform
To test the minimal freestanding stdlib on macho, you can use the support for running a miscellanous preset against a snapshot toolchain.

```
preset=stdlib_S_standalone_minimal_macho_x86_64,build,test
@swift-ci please test with toolchain and preset
```

### Testing Compiler Performance

Expand Down
Loading