Skip to content

tensorflow merge (2020-06-09) #32265

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 1,995 commits into from
Jun 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1995 commits
Select commit Hold shift + click to select a range
3126a4e
gyb: clean up some linter warnings
compnerd Jun 3, 2020
3ff520b
Merge pull request #32006 from MForster/m/upstreaming-policy
tkremenek Jun 3, 2020
eb04bc8
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 3, 2020
b14d965
[CSGen] Allow `is` patterns to infer type from enclosing context
xedin Jun 3, 2020
492ba85
Merge pull request #32096 from adrian-prantl/demangler-hide-current-m…
adrian-prantl Jun 3, 2020
11be690
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 3, 2020
b857b22
NFC: Rename shouldCollectToken -> shouldCollectTokens
hamishknight Jun 3, 2020
b5ab29b
NFC: Inline canBeParsedInFull
hamishknight Jun 3, 2020
60eae88
Sink some parsing options into SourceFile::ParsingFlags
hamishknight Jun 3, 2020
22c1058
[Parse] Remove some unnecessary code
hamishknight Jun 3, 2020
5fdc5f3
NFC: Clean up TokenRecorder a little
hamishknight Jun 3, 2020
f57299a
Formalize some SourceFile parsing outputs
hamishknight Jun 3, 2020
7b9ccb7
[Parse] Make sure we don't finalize a DelayedTokenReciever
hamishknight Jun 3, 2020
8eb5cbe
add test by @nathawes
kastiglione Jun 3, 2020
17b681b
[SourceKit] Disable complete_build_session.swift test file while inve…
rintaro Mar 25, 2020
258ceda
rename test
kastiglione Jun 3, 2020
651503b
Merge pull request #32128 from xedin/adjust-raw-representable-diag
xedin Jun 3, 2020
573c707
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 3, 2020
baa3a7d
[benchmarks] Add a benchmark for printing using mirrors (#32150)
airspeedswift Jun 3, 2020
1883bc6
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 3, 2020
14dd909
test: repair the test after accidental merge without testing
compnerd Jun 3, 2020
1f01103
[Index] Add regression test case for @dynamicMemberLookup on a protocol.
Jun 3, 2020
07d37a8
Merge pull request #32136 from martinboehme/compile-fix-incomplete-ma…
JDevlieghere Jun 3, 2020
41fa19e
Merge pull request #32163 from rintaro/disable-rdar60881337
rintaro Jun 3, 2020
740576b
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 3, 2020
bd0bb64
Fix dependency scanner test-case to use explicit imports.
artemcm Jun 3, 2020
56c361a
Merge pull request #32164 from compnerd/31986
compnerd Jun 3, 2020
4411677
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 3, 2020
d3a5be4
Merge pull request #32144 from gottesmm/pr-d8ab9968bdf338be530e1fd4be…
gottesmm Jun 3, 2020
ac39c78
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 3, 2020
41095aa
ABI: qualify use of `StringRef` and `Optional` (NFC)
compnerd May 30, 2020
b5d6652
Merge pull request #32157 from compnerd/gyb-lint
compnerd Jun 3, 2020
6cc4fa6
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 3, 2020
8538a2a
SIL: Verify kinds of vtable entries.
jckarter Jun 3, 2020
0bed967
[semantic-arc-opts] Create an explicit composition type for "ownershi…
gottesmm Jun 3, 2020
9a93b61
[stdlib][cmake] OpenBSD target requires -lpthread.
3405691582 Jun 4, 2020
d992e04
Merge pull request #32167 from artemcm/FixFDSTestImplicitImports
nkcsgexi Jun 4, 2020
973f879
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
bd782be
Front-end: add a new module loader that loads explicitly built Swift …
nkcsgexi Jun 3, 2020
ebf291c
[memory-lifetime] Teach the verifier that select_enum_addr doesn't wr…
gottesmm Jun 4, 2020
5808893
Merge pull request #32172 from gottesmm/pr-58e5e110fe11cabaa1d7907753…
gottesmm Jun 4, 2020
574e64e
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
3cb33ac
[semantic-arc-opts] Teach semantic-arc-opts how to handle structs wit…
gottesmm Jun 3, 2020
96a5c81
Merge pull request #32170 from nkcsgexi/explicit-module-loader
nkcsgexi Jun 4, 2020
89078ed
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
690d6c4
[AST] Record whether a closure was type-checked in its enclosing expr…
DougGregor Jun 4, 2020
f55e764
[Constaint system] Add a predicate for when to check closures in encl…
DougGregor Jun 4, 2020
e11f167
Merge pull request #32165 from nathawes/add-regression-test-for-dynam…
Jun 4, 2020
202e479
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
5311021
Merge pull request #32024 from kastiglione/dl/index-apply--index-igno…
Jun 4, 2020
ad42d47
[AST] Remove some pointless uses of hasSingleExpressionBody().
DougGregor Jun 4, 2020
5e25dc7
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
ffe471a
[stdlib] Add flatMap example in Result.swift
Jun 4, 2020
b1ac68b
[test] Clang is now more strict about underlying type enums
davezarzycki Jun 4, 2020
f2fb539
[Runtime] Unify debug variable parsing from the environment and avoid…
mikeash Jun 2, 2020
66311e1
Merge pull request #32115 from eunjiChung/example-result
swift-ci Jun 4, 2020
619f0d4
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
f9128ba
build: use the same pattern for detecting Darwin platforms
compnerd Apr 25, 2020
23bfee2
runtime: silence -Wunused-variable warning (NFC)
compnerd Jun 4, 2020
a813610
Merge pull request #32176 from 3405691582/Port_OpenBSD_RequiresLinkPt…
compnerd Jun 4, 2020
84da6a5
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
9a61985
Merge pull request #32171 from jckarter/vtable-kind-validation
jckarter Jun 4, 2020
be61cc8
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
4e0fad8
Add note that LLDB changes should be cherry-picked to `swift/master` …
martinboehme Jun 4, 2020
a794c61
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
e5e34fa
Revert "Test C++ out-of-line operator functions (#32081)" (#32181)
MForster Jun 4, 2020
b4a96ea
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
8e6840d
Merge pull request #32178 from DougGregor/single-expression-closure-c…
DougGregor Jun 4, 2020
392b9af
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
7c8d860
Merge pull request #32093 from bitjammer/acgarland/rdar-63738390-inhe…
bitjammer Jun 4, 2020
65a1b60
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
5e1eadc
Merge pull request #32169 from compnerd/qualified-llvm-support
compnerd Jun 4, 2020
9357c85
Merge pull request #31838 from AnthonyLatsis/o-getinnermostgps
CodaFi Jun 4, 2020
abde762
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
d3e64ed
Merge pull request #32173 from gottesmm/pr-5e5960b7d932ff90a03c93f1ba…
gottesmm Jun 4, 2020
6cc4428
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
2f3a0f0
Merge pull request #32159 from xedin/rdar-63510989
xedin Jun 4, 2020
a03a733
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
816010c
Merge remote-tracking branch 'github/tensorflow' into HEAD
ainu-bot Jun 4, 2020
a722311
[SymbolGraph] Don't print inherited list in declaration fragments
bitjammer Jun 4, 2020
9ceb9ff
Merge pull request #32183 from compnerd/path-unification
compnerd Jun 4, 2020
32ec1d5
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
8ea7009
Merge pull request #32177 from gottesmm/pr-f5820e0408ca527e9c54f4b3c4…
gottesmm Jun 4, 2020
da335e1
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
a99d7ea
Merge pull request #31333 from valeriyvan/_applyMappingUnicodeScalarP…
xwu Jun 4, 2020
c546b9e
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
b25dab2
Merge pull request #32137 from mikeash/debug-environment-variables
mikeash Jun 4, 2020
e9548b0
Merge pull request #32182 from compnerd/uniformity
compnerd Jun 4, 2020
b047ae0
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
158332c
runtime: remove `llvm/DataTypes.h`, `llvm-c/DataTypes.h`
compnerd Jun 4, 2020
bdfe1b1
[Parse] Avoid delayed member parsing for type decl with missing brace
rintaro Jun 4, 2020
67791cc
[docs] Add a how-to guide on running IWYU on the Swift project. (#32151)
varungandhi-apple Jun 4, 2020
09ea5fd
[docs] Add module build related definitions to Lexicon. (#32153)
varungandhi-apple Jun 4, 2020
318977b
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 4, 2020
b8abe55
Build dependency list once
ladd Jun 4, 2020
0e7a329
[SymbolGraph] Don't emit extension symbol graphs if empty
bitjammer Jun 4, 2020
ea7a33c
Merge pull request #32191 from rintaro/parser-missing-memberdeclbrace…
rintaro Jun 5, 2020
db2b943
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
fc7bdf8
Merge pull request #32188 from compnerd/types
compnerd Jun 5, 2020
cbce2dd
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
ddaa3be
Verify The Entire Compilation Session
CodaFi Jun 5, 2020
14ade93
Fix getActiveDependencySourceOrNull For Private Dependencies
CodaFi Jun 5, 2020
874cc85
Make LookupInModuleRequest a Dependency Sink
CodaFi Jun 5, 2020
0215e37
Add Verifier Tests for A Tricky Typealias Miscompile
CodaFi Jun 5, 2020
a900779
[stdlib][test] Fix message test expectation.
3405691582 Jun 5, 2020
32e1d22
Merge pull request #31989 from slavapestov/demangle-nested-type-of-op…
slavapestov Jun 5, 2020
3f8f358
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
db44a8e
Merge pull request #32132 from slavapestov/a-couple-of-regression-tests
slavapestov Jun 5, 2020
f348988
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
836bc57
[AST Walker] Stop visiting the bodies of closures as expressions.
DougGregor Jun 5, 2020
a71203d
[Sema] Switch to wasTypeCheckedInEnclosingContext() for walks
DougGregor Jun 5, 2020
1d36224
[ClosureExpr] Remove hasAppliedFunctionBuilder.
DougGregor Jun 5, 2020
2f97d24
Note a fixed compiler crasher
DougGregor Jun 5, 2020
7eae5f2
[AST] Remove now-unused ClosureExpr::setSingleExpressionBody().
DougGregor Jun 5, 2020
a115ad9
[AST] Record "separately checked" in ClosureExpr.
DougGregor Jun 5, 2020
0838a65
Test C++ out-of-line operator functions
MForster Jun 5, 2020
1634fa8
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
2704009
runtime: fix SwapByteOrder.h when building for WASI
MaxDesiatov Jun 5, 2020
8349018
Merge pull request #32180 from davezarzycki/pr32180
davezarzycki Jun 5, 2020
b68d827
[NFC] AST: const-qualify ASTContext refs in PrettyStackTrace.h
AnthonyLatsis Jun 3, 2020
8d0014d
Clarify a comment
DougGregor Jun 5, 2020
b996a21
Merge pull request #32196 from ladd/levantol/perf-patch-d-files
CodaFi Jun 5, 2020
1476b18
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
e3ce94d
Introduce a `PruneVTables` pass to mark non-overridden entries.
jckarter Jun 5, 2020
d0131ba
Merge pull request #31146 from kateinoigakukun/katei/enable-lang-agno…
compnerd Jun 5, 2020
da95377
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
975ff75
Perform The Dependency Unioning Step During Replay
CodaFi Jun 5, 2020
91be29a
Merge pull request #32201 from MaxDesiatov/patch-5
CodaFi Jun 5, 2020
efbe858
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
5083f83
Merge pull request #32193 from bitjammer/acgarland/rdar-63058801-dont…
bitjammer Jun 5, 2020
af3ca70
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
fb99cfc
Merge pull request #32189 from bitjammer/acgarland/rdar-63033669-sgf-…
bitjammer Jun 5, 2020
1b7bb71
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
0e892a9
Merge pull request #32199 from 3405691582/Port_OpenBSD_Environ
compnerd Jun 5, 2020
a21bff1
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
dd7a7f7
[SymbolGraph] Print non-underscored attributes in declarations
bitjammer Jun 1, 2020
fadfb6c
Merge pull request #31874 from benlangmuir/driver-tmp-sad
benlangmuir Jun 5, 2020
6144f26
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
a423937
[Constraint solver] Wire up "parents" of closure return statements.
DougGregor Jun 5, 2020
b844035
Fix a typo in a comment
DougGregor Jun 5, 2020
31cf1f2
Merge pull request #32198 from CodaFi/depen-dots
CodaFi Jun 5, 2020
52e57f6
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
754f21d
Merge pull request #32205 from AnthonyLatsis/pretty-const-stacktrace
CodaFi Jun 5, 2020
6f15a33
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
d3b6b89
[AutoDiff] Support multiple differentiability result indices in SIL. …
dan-zheng Jun 5, 2020
1930642
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 5, 2020
bcae501
[AutoDiff] NFC: garden test. (#32209)
dan-zheng Jun 5, 2020
c647c11
[SymbolGraph] Don't consider @show_in_interface for underscored names
bitjammer Jun 5, 2020
aef3464
Merge pull request #32187 from bitjammer/acgarland/rdar-63338507-show…
bitjammer Jun 6, 2020
142aa42
[semantic-arc-opts] Teach semantic-arc-opts how to handle tuples with…
gottesmm Jun 4, 2020
104c8f3
[build-script] Make is_build_script_impl_product() a pure method and …
gottesmm Jun 6, 2020
7d4da10
Merge pull request #32200 from DougGregor/single-expression-closure-c…
DougGregor Jun 6, 2020
64f903f
[Type checker] Experimental support for one-way parameter constraints.
DougGregor Jun 5, 2020
b149341
[Constraint system] Generalize recording of pattern binding entry tar…
DougGregor Jun 6, 2020
f1febc2
[Constraint system] Lift PatternBindingDecl into SolutionApplicationT…
DougGregor Jun 6, 2020
164ebbf
Merge pull request #32218 from gottesmm/pr-f9101d605011e95162876376e8…
gottesmm Jun 6, 2020
37fefa7
[build-script] Explicitly separate build-script-impl products and non…
gottesmm Jun 6, 2020
1e1b350
[build-script] Add dependencies for all build-script products as a fi…
gottesmm Jun 6, 2020
7525b63
Unbreak after clang added BFloat16 builtin
davezarzycki Jun 6, 2020
369acdb
Merge pull request #32227 from davezarzycki/pr32227
davezarzycki Jun 6, 2020
77d4134
Merge pull request #32221 from DougGregor/stmt-typecheck-cleanups
DougGregor Jun 6, 2020
de7033c
Simplest fix to a dependency bug.
Jun 6, 2020
da14e31
Fix tests to correspond
Jun 6, 2020
62b2570
Merge pull request #32215 from DougGregor/one-way-closure-params
DougGregor Jun 6, 2020
3e280b8
Merge pull request #32107 from LucianoPAlmeida/nfc-move-to-cpp
LucianoPAlmeida Jun 6, 2020
dc1624d
build: style updates (NFC)
compnerd May 30, 2020
932a91e
Merge pull request #32219 from davidungar/quick-dependency-bug-fix
Jun 6, 2020
bd85096
Track upstream changes
davezarzycki Jun 7, 2020
77cbdee
Merge pull request #32232 from davezarzycki/pr32232
davezarzycki Jun 7, 2020
99e72b6
[TypeCheckConstraints] Check for archetypes when warning about unrela…
LucianoPAlmeida Jun 7, 2020
eb0b2bb
[tests] Adding regression tests for SR-12946
LucianoPAlmeida Jun 7, 2020
cc84c7b
Merge pull request #32229 from compnerd/style
compnerd Jun 7, 2020
71309a8
Revert "[LTO] Support LLVM level link time optimization on Darwin, Li…
compnerd Jun 7, 2020
4fe0c69
Merge pull request #32235 from apple/revert-31146-katei/enable-lang-a…
compnerd Jun 7, 2020
59d2d95
Merge pull request #32234 from LucianoPAlmeida/SR-12946-cast-warning-…
swift-ci Jun 8, 2020
9398153
[Parse] Preserve original member hashing behaviour
hamishknight Jun 8, 2020
db9a27e
[AST] Remove hasSyntaxRoot
hamishknight Jun 8, 2020
c045802
Merge pull request #32225 from gottesmm/pr-717ba0adb0340ba5a05ecc2256…
gottesmm Jun 8, 2020
bded632
Merge pull request #32224 from gottesmm/pr-62982e80e54331e66895fc94aa…
gottesmm Jun 8, 2020
504ce0a
[AutoDiff] Handle `array.finalize_intrinsic`.
dan-zheng May 28, 2020
f96f936
SIL: define begin_cow_mutation to have side effects.
eeckstein Jun 4, 2020
1559fe3
SIL: a new library intrinsic to "finalize" array literals
eeckstein May 25, 2020
3bfebf1
runtime lib: a mechanism to set an "immutable" flag on an object for …
eeckstein Jun 8, 2020
71a642e
stdlib, SIL optimizer: use the SIL copy-on-write representation in th…
eeckstein May 26, 2020
8f0569d
Merge pull request #32210 from jckarter/prune-vtables-pass
jckarter Jun 8, 2020
f822296
[SymbolGraph] Use fully qualified name for type's page titles
bitjammer Jun 8, 2020
c2d55cc
Fix AutoDiff errors.
dan-zheng Jun 8, 2020
5ce5466
[metadata prespecialization] NFC: Replaced bool with enum.
nate-chandler Jun 8, 2020
81483cc
Merge pull request #32161 from hamishknight/pipeline-parse
hamishknight Jun 8, 2020
f071136
stdlib: temporarily disable COW support runtime checks.
eeckstein Jun 8, 2020
620ec57
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 8, 2020
11ef9bd
Merge pull request #32217 from bitjammer/acgarland/rdar-63120829-show…
bitjammer Jun 8, 2020
5d72c46
[Frontend] Remove parsing option params from performParseOnly
hamishknight Jun 8, 2020
00dd637
[Frontend] Factor out getSourceFileParsingOptions
hamishknight Jun 8, 2020
ff170df
[Frontend] Populate files in getMainModule
hamishknight Jun 8, 2020
7824dc1
[Frontend] Move parse-only module load assert
hamishknight Jun 8, 2020
1ed8106
[Frontend] Remove performParseOnly
hamishknight Jun 8, 2020
55cf78b
[Frontend] Inline performSemaUpTo
hamishknight Jun 8, 2020
580bf4d
[SymbolGraph] Don't add precise identifier to `Self` fragment
bitjammer Jun 8, 2020
8effe49
[build-script] Add a really simple build scheduler that assumes/enfor…
gottesmm Jun 6, 2020
0257c7e
Merge pull request #32241 from bitjammer/acgarland/rdar-64047985-full…
bitjammer Jun 8, 2020
6b80da6
Merge pull request #32179 from gottesmm/pr-1be69dcd1c3376a6b0ecdd3afe…
gottesmm Jun 8, 2020
b27ac07
[AutoDiff] Update tests.
ainu-bot Jun 8, 2020
a3b8b2d
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 8, 2020
363bd5d
[build-script] Fix import of dependencies of each product.
gottesmm Jun 8, 2020
9a5f2dc
[Function builders] Infer function builder through @_dynamicReplaceme…
DougGregor Jun 8, 2020
d80a405
[Runtime] Clean up verifyMangledNameRoundtrip comment.
mikeash Jun 8, 2020
059fe23
Merge pull request #31856 from AnthonyLatsis/o-getcontextsubs
AnthonyLatsis Jun 8, 2020
a000932
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 8, 2020
452b6dd
[build-script-impl] Require --install-llvm to be passed in to install…
gottesmm Jun 8, 2020
88589e1
[Function builders] Improve test case for inference behavior
DougGregor Jun 8, 2020
d43c515
[Property wrappers] Reject opaque result types when there is no initi…
DougGregor Jun 8, 2020
b53334e
Merge pull request #32243 from hamishknight/whole-module-population
hamishknight Jun 8, 2020
7d784df
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 8, 2020
714e955
Merge pull request #32242 from nate-chandler/generic-metadata-prespec…
nate-chandler Jun 8, 2020
3d4a814
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 8, 2020
29d3cc4
Merge pull request #32246 from bitjammer/acgarland/rdar-63941806-dont…
bitjammer Jun 8, 2020
a934cce
Merge pull request #32226 from gottesmm/pr-12d3f8c7e3ae40ee63271019b1…
gottesmm Jun 8, 2020
3eb82c1
Fixes typo in comment in KeyPaths.cpp (#32240)
valeriyvan Jun 8, 2020
b7a72c7
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 8, 2020
3e7b4ae
[Property wrappers] Fix another opaque-result-types crasher.
DougGregor Jun 8, 2020
1c9b090
Merge remote-tracking branch 'origin/master-next'
lorentey Jun 8, 2020
68351d2
Revert "Merge remote-tracking branch 'origin/master-next'"
lorentey Jun 8, 2020
7c584c8
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 8, 2020
28f60a0
Merge pull request #32247 from gottesmm/pr-bd788ac2872223df1190069035…
gottesmm Jun 9, 2020
08c17e6
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 9, 2020
e9622ed
test: mark test as executable_test
compnerd Jun 9, 2020
3531852
Merge pull request #32250 from gottesmm/pr-962a7fcfad9a0049512c51e6da…
gottesmm Jun 9, 2020
2291200
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 9, 2020
e14cc4c
Merge pull request #32248 from DougGregor/infer-function-builder-dyna…
swift-ci Jun 9, 2020
8a1361c
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 9, 2020
39d0827
Fix typo in 'KeyedEncodingContainer.superEncoder' documentation. (#32…
rxwei Jun 9, 2020
75d6f6d
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 9, 2020
450b005
[build-script] Add support for specifying that a product is a non-dar…
gottesmm Jun 8, 2020
00146f8
[build-script] Define default llvm_install_components.
gottesmm Jun 8, 2020
886ae19
Merge pull request #32251 from DougGregor/property-wrapper-opaque-res…
DougGregor Jun 9, 2020
6520239
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 9, 2020
49288f7
[build-script] Remove a bunch of conservative dependencies on lldb.
gottesmm Jun 9, 2020
51fce88
Merge pull request #32253 from compnerd/executable
compnerd Jun 9, 2020
6fbbf22
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 9, 2020
bd6abc9
Merge pull request #32255 from gottesmm/pr-2609ae44ac52a6348d4c38cff3…
gottesmm Jun 9, 2020
d675225
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 9, 2020
13f6885
Merge pull request #32257 from gottesmm/pr-dd4cc86c522d759700beda988e…
gottesmm Jun 9, 2020
291373f
Merge pull request #32134 from eeckstein/cow-support2
eeckstein Jun 9, 2020
d45047d
Merge pull request #32260 from gottesmm/pr-89123c4fe2e41b356d82591f3e…
gottesmm Jun 9, 2020
1888534
Merge pull request #30895 from valeriyvan/RemoveRedundantZeroingString
xwu Jun 9, 2020
7b3a340
Merge pull request #32249 from mikeash/mangled-name-roundtrip-comment…
mikeash Jun 9, 2020
b1f6cb7
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 9, 2020
e6ea963
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 9, 2020
97957b4
update-checkout: adjust for tensorflow merge
compnerd Jun 9, 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 @@ -108,6 +108,7 @@ set(SWIFT_BENCH_MODULES
single-source/LuhnAlgoLazy
single-source/MapReduce
single-source/Memset
single-source/Mirror
single-source/MonteCarloE
single-source/MonteCarloPi
single-source/NSDictionaryCastToSwift
Expand Down
105 changes: 105 additions & 0 deletions benchmark/single-source/Mirror.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
//===--- Mirror.swift ------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 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
//
//===----------------------------------------------------------------------===//

// This test measures performance of Mirror and related things.
import TestsUtils

public let TypeName = BenchmarkInfo(
name: "TypeName",
runFunction: run_TypeName,
tags: [.api, .String])

public let MirrorDefault = BenchmarkInfo(
name: "MirrorDefault",
runFunction: run_MirrorDefault,
tags: [.api, .String])

struct S1 { var s: String; var d: Double }
struct S2 { var i: Int; var a: [Range<Int>] }

class C { var i: Int = 0 }
class D: C { var s: String = "" }

enum E {
case a,b(Int)
}

struct G<T> { var t: T }
class H<T>: C { var t: T; init(_ t: T) { self.t = t }}

public func run_MirrorDefault(scale: Int) {
let N = 100*scale

let s1 = S1(s: "foo", d: 3.14)
let s2 = S2(i: 42, a: [0..<4])
let c = C()
let d = D()
let e = E.a
let f = E.b(99)
let g = G(t: 12.3)
let h = H<[Int]>([1,2,3])

var str = ""

for _ in 0..<N {
str = "\(s1),\(s2),\(c),\(d),\(e),\(f),\(g),\(h)"
blackHole(str)
}

CheckResults(str ==
"S1(s: \"foo\", d: 3.14),S2(i: 42, a: [Range(0..<4)]),Mirror.C,Mirror.D,a,b(99),G<Double>(t: 12.3),Mirror.H<Swift.Array<Swift.Int>>")
}

func typename<T>(of: T.Type) -> String {
"\(T.self)"
}

public func run_TypeName(scale: Int) {
let N = 1_000*scale
var a: [String] = []
a.reserveCapacity(16)

for _ in 0..<N {
a = []
a.removeAll(keepingCapacity: true)
a.append(typename(of: S1.self))
a.append(typename(of: S2.self))
a.append(typename(of: C.self))
a.append(typename(of: D.self))
a.append(typename(of: G<S1>.self))
a.append(typename(of: G<C>.self))
a.append(typename(of: G<String>.self))
a.append(typename(of: H<Int>.self))
a.append(typename(of: [S1].self))
a.append(typename(of: [G<Int>].self))
a.append(typename(of: [H<S1>].self))
a.append(typename(of: S1?.self))
a.append(typename(of: C?.self))
blackHole(a)
}

let expected = ["S1",
"S2",
"C",
"D",
"G<S1>",
"G<C>",
"G<String>",
"H<Int>",
"Array<S1>",
"Array<G<Int>>",
"Array<H<S1>>",
"Optional<S1>",
"Optional<C>",
]
CheckResults(a == expected)
}
3 changes: 3 additions & 0 deletions benchmark/utils/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ import LuhnAlgoEager
import LuhnAlgoLazy
import MapReduce
import Memset
import Mirror
import MonteCarloE
import MonteCarloPi
import NibbleSort
Expand Down Expand Up @@ -281,6 +282,7 @@ registerBenchmark(LuhnAlgoEager)
registerBenchmark(LuhnAlgoLazy)
registerBenchmark(MapReduce)
registerBenchmark(Memset)
registerBenchmark(MirrorDefault)
registerBenchmark(MonteCarloE)
registerBenchmark(MonteCarloPi)
registerBenchmark(NSDictionaryCastToSwift)
Expand Down Expand Up @@ -366,6 +368,7 @@ registerBenchmark(Suffix)
registerBenchmark(SuperChars)
registerBenchmark(TwoSum)
registerBenchmark(TypeFlood)
registerBenchmark(TypeName)
registerBenchmark(UTF8Decode)
registerBenchmark(Walsh)
registerBenchmark(WordCount)
Expand Down
33 changes: 7 additions & 26 deletions cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,10 @@ function(_set_target_prefix_and_suffix target kind sdk)
endif()
endfunction()

function(is_darwin_based_sdk sdk_name out_var)
if ("${sdk_name}" STREQUAL "OSX" OR
"${sdk_name}" STREQUAL "IOS" OR
"${sdk_name}" STREQUAL "IOS_SIMULATOR" OR
"${sdk_name}" STREQUAL "TVOS" OR
"${sdk_name}" STREQUAL "TVOS_SIMULATOR" OR
"${sdk_name}" STREQUAL "WATCHOS" OR
"${sdk_name}" STREQUAL "WATCHOS_SIMULATOR")
set(${out_var} TRUE PARENT_SCOPE)
else()
set(${out_var} FALSE PARENT_SCOPE)
endif()
endfunction()

# Usage:
# _add_host_variant_c_compile_link_flags(name)
function(_add_host_variant_c_compile_link_flags name)
is_darwin_based_sdk("${SWIFT_HOST_VARIANT_SDK}" IS_DARWIN)
if(IS_DARWIN)
if(SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_APPLE_PLATFORMS)
set(DEPLOYMENT_VERSION "${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_DEPLOYMENT_VERSION}")
endif()

Expand All @@ -107,7 +92,7 @@ function(_add_host_variant_c_compile_link_flags name)

set(_sysroot
"${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_ARCH_${SWIFT_HOST_VARIANT_ARCH}_PATH}")
if(IS_DARWIN)
if(SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_APPLE_PLATFORMS)
target_compile_options(${name} PRIVATE -isysroot;${_sysroot})
elseif(NOT SWIFT_COMPILER_IS_MSVC_LIKE AND NOT "${_sysroot}" STREQUAL "/")
target_compile_options(${name} PRIVATE --sysroot=${_sysroot})
Expand All @@ -122,7 +107,7 @@ function(_add_host_variant_c_compile_link_flags name)
endif()
endif()

if(IS_DARWIN)
if(SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_APPLE_PLATFORMS)
# We collate -F with the framework path to avoid unwanted deduplication
# of options by target_compile_options -- this way no undesired
# side effects are introduced should a new search path be added.
Expand Down Expand Up @@ -466,20 +451,16 @@ function(add_swift_host_library name)
LIBRARY_DIR ${SWIFT_LIBRARY_OUTPUT_INTDIR})

if(SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_APPLE_PLATFORMS)
set_target_properties(${name}
PROPERTIES
set_target_properties(${name} PROPERTIES
INSTALL_NAME_DIR "@rpath")
elseif(SWIFT_HOST_VARIANT_SDK STREQUAL LINUX)
set_target_properties(${name}
PROPERTIES
set_target_properties(${name} PROPERTIES
INSTALL_RPATH "$ORIGIN:/usr/lib/swift/linux")
elseif(SWIFT_HOST_VARIANT_SDK STREQUAL CYGWIN)
set_target_properties(${name}
PROPERTIES
set_target_properties(${name} PROPERTIES
INSTALL_RPATH "$ORIGIN:/usr/lib/swift/cygwin")
elseif(SWIFT_HOST_VARIANT_SDK STREQUAL "ANDROID")
set_target_properties(${name}
PROPERTIES
set_target_properties(${name} PROPERTIES
INSTALL_RPATH "$ORIGIN")
endif()

Expand Down
4 changes: 3 additions & 1 deletion docs/ABI/Mangling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ mangled in to disambiguate.
impl-function-type ::= type* 'I' FUNC-ATTRIBUTES '_'
impl-function-type ::= type* generic-signature 'I' FUNC-ATTRIBUTES '_'

FUNC-ATTRIBUTES ::= PATTERN-SUBS? INVOCATION-SUBS? PSEUDO-GENERIC? CALLEE-ESCAPE? DIFFERENTIABILITY-KIND? CALLEE-CONVENTION FUNC-REPRESENTATION? COROUTINE-KIND? (PARAM-CONVENTION PARAM-DIFFERENTIABILITY?)* RESULT-CONVENTION* ('Y' PARAM-CONVENTION)* ('z' RESULT-CONVENTION)?
FUNC-ATTRIBUTES ::= PATTERN-SUBS? INVOCATION-SUBS? PSEUDO-GENERIC? CALLEE-ESCAPE? DIFFERENTIABILITY-KIND? CALLEE-CONVENTION FUNC-REPRESENTATION? COROUTINE-KIND? (PARAM-CONVENTION PARAM-DIFFERENTIABILITY?)* RESULT-CONVENTION* ('Y' PARAM-CONVENTION)* ('z' RESULT-CONVENTION RESULT-DIFFERENTIABILITY?)?

PATTERN-SUBS ::= 's' // has pattern substitutions
INVOCATION-SUB ::= 'I' // has invocation substitutions
Expand Down Expand Up @@ -634,6 +634,8 @@ mangled in to disambiguate.
RESULT-CONVENTION ::= 'u' // unowned inner pointer
RESULT-CONVENTION ::= 'a' // auto-released

RESULT-DIFFERENTIABILITY ::= 'w' // @noDerivative

For the most part, manglings follow the structure of formal language
types. However, in some cases it is more useful to encode the exact
implementation details of a function type.
Expand Down
19 changes: 13 additions & 6 deletions docs/Branches.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,22 @@ You can use any of the branch names as the argument to `--scheme`, such as `mast

- LLVM Project: the destination branch depends on the kind of change that must be made:

1) LLVM Project changes that don't depend on Swift: New commits go to `master` in the upstream [llvm-project](https://github.com/llvm/llvm-project).
1) LLVM Project changes that don't depend on Swift

- New commits go to `master` in the upstream [llvm-project](https://github.com/llvm/llvm-project).

... then these commits can be cherry-picked to an appropriate, `swift/master` aligned `apple/stable/*` branch in Apple's fork of [llvm-project](https://github.com/apple/llvm-project). Please see
[Apple's branching scheme](https://github.com/apple/llvm-project/blob/apple/master/apple-docs/AppleBranchingScheme.md)
document to determine which `apple/stable/*` branch you should cherry-pick to.
- Then cherry-pick these commits to an appropriate, `swift/master` aligned `apple/stable/*` branch in Apple's fork of [llvm-project](https://github.com/apple/llvm-project). Please see [Apple's branching scheme](https://github.com/apple/llvm-project/blob/apple/master/apple-docs/AppleBranchingScheme.md) document to determine which `apple/stable/*` branch you should cherry-pick to.

Note that **no new changes should be submitted directly to `apple/master`**. We are actively working on eliminating the differences from upstream LLVM.

2) Changes that depend on Swift (this only applies to LLDB): new commits go to `swift/master-next`
2) Changes that depend on Swift (this only applies to LLDB)
- New commits go to `swift/master` (_not_ an `apple/stable/*` branch, as these shouldn't contain changes that depend on Swift).

...then cherry-pick to the release branch (`swift/swift-x.y-branch`) if necessary, following the appropriate release process. (Usually this means filling out a standard template, finding someone to review your code if that hasn't already happened, and getting approval from that repo's *release manager.)*
- Then cherry-pick these commits to `swift/master-next`.

- If necessary, cherry-pick to the release branch (`swift/release/x.y`), following the appropriate release process. (Usually this means filling out a standard template, finding someone to review your code if that hasn't already happened, and getting approval from that repo's *release manager.)*

In the long term we want to eliminate the differences from upstream LLVM for these changes as well, but for now there is no concrete plan. So, submitting to `swift/master-next` continues to be allowed.

## Automerging

Expand Down
14 changes: 7 additions & 7 deletions docs/DebuggingTheCompiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ Here is how to dump the IR after the main phases of the Swift compiler

* **Parser** To print the AST after parsing:

```bash
```sh
swiftc -dump-ast -O file.swift
```

* **SILGen** To print the SIL immediately after SILGen:

```bash
```sh
swiftc -emit-silgen -O file.swift
```

* **Mandatory SIL passes** To print the SIL after the mandatory passes:

```bash
```sh
swiftc -emit-sil -Onone file.swift
```

Expand All @@ -87,25 +87,25 @@ swiftc -emit-sil -Onone file.swift
* **Performance SIL passes** To print the SIL after the complete SIL
optimization pipeline:

```bash
```sh
swiftc -emit-sil -O file.swift
```

* **IRGen** To print the LLVM IR after IR generation:

```bash
```sh
swiftc -emit-ir -Xfrontend -disable-llvm-optzns -O file.swift
```

* **LLVM passes** To print the LLVM IR after LLVM passes:

```bash
```sh
swiftc -emit-ir -O file.swift
```

* **Code generation** To print the final generated code:

```bash
```sh
swiftc -S -O file.swift
```

Expand Down
Loading