Skip to content

Merge tag 'swift-DEVELOPMENT-SNAPSHOT-2020-01-20-a' into tensorflow #29347

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 261 commits into from
Jan 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
07865c7
[TypeChecker.rst] NFC: Mark that array/dictionary diagnostics have be…
xedin Jan 13, 2020
83744d9
[Diagnostics] Use ´isa` instead of `dyn_cast` because array/dictionar…
xedin Jan 13, 2020
1386af0
Revert "stdlib: Add custom .first to Array"
aschwaighofer Jan 13, 2020
ce2a081
[parse-sil] Refactor huge per op code parsing switch into its own met…
gottesmm Jan 13, 2020
e23e77b
Allow function builder attrs on vars without bodies in interfaces (#2…
Jan 13, 2020
d8cc616
Merge pull request #28663 from ahoppen/install-swiftsyntax-usr-lib
compnerd Jan 13, 2020
eed6a4e
Expose function sections option (#28088)
asuhan Jan 13, 2020
b890bcb
Merge pull request #28899 from ravikandhadai/constexpr-checked-casts
swift-ci Jan 13, 2020
9b33ece
Merge pull request #28605 from nathawes/fix-unreachable-in-addSameTyp…
Jan 13, 2020
60b4f38
Eliminate context descriptor cache (#29151)
airspeedswift Jan 13, 2020
1dd527e
Sema: Fix crash when synthesizing RawRepresentable conformance with n…
slavapestov Jan 13, 2020
20443ad
Merge pull request #29166 from xedin/port-array-dict-literal-diagnostics
xedin Jan 14, 2020
7bb01ed
Merge pull request #28896 from rintaro/ide-completion-rdar58098222
rintaro Jan 14, 2020
70ad17a
Merge pull request #28904 from rintaro/ide-completion-rdar58119719
rintaro Jan 14, 2020
90f59e4
TBDGen: teach the compiler to take a json file indicating previous in…
nkcsgexi Jan 14, 2020
ec70a40
[CodeCompletion] Disable module system headers validation
rintaro Jan 14, 2020
6c29939
[AutoDiff upstream] Add `@differentiable` ASTScope support. (#29171)
dan-zheng Jan 14, 2020
f12f0cc
test: adjust Migrator tests (NFCI)
compnerd Jan 14, 2020
b9dfd40
Merge pull request #29173 from slavapestov/enum-raw-value-not-equatab…
slavapestov Jan 14, 2020
3abf47a
Sema: Improve -require-explicit-availability diagnostic phrasing
slavapestov Jan 14, 2020
b73adbe
Driver: Actually pass -require-explicit-availability{,-target} to fro…
slavapestov Jan 14, 2020
4771ce0
AST: Weak-link declarations in extensions of weak-linked types
slavapestov Jan 14, 2020
42916b4
Merge pull request #29183 from slavapestov/require-explicit-availabil…
slavapestov Jan 14, 2020
1669800
Merge pull request #29179 from nkcsgexi/json-previous-install-name
nkcsgexi Jan 14, 2020
6cfa3a6
Merge pull request #29182 from compnerd/20200108-migrator-tests
compnerd Jan 14, 2020
9b4906d
Merge pull request #29184 from slavapestov/weak-link-extension-fix
slavapestov Jan 14, 2020
61872fa
IRGen: Don't use the demangler to realize imported Objective-C class …
slavapestov Jan 14, 2020
d4976ca
[Gardening] Const-qualify some logically const functions
CodaFi Jan 10, 2020
fad29a3
[NFC] Don't mutate SILOptions when Loading Profile Info Fails
CodaFi Jan 10, 2020
eb61931
[NFC] Grab the private discriminator for a file in IRGenDebugInfo
CodaFi Jan 10, 2020
6407a4d
[Gardening] Drop an unused parameter
CodaFi Jan 10, 2020
5c746fa
[NFC] Compute remaining IRGen options in the argument parser
CodaFi Jan 10, 2020
d63053d
[Gardening] Remove more unused parameters
CodaFi Jan 10, 2020
bd57f14
[NFC] Push const IRGenOptions and SILOptions everywhere
CodaFi Jan 10, 2020
8fe25f7
[NFC] Remove CompilerInstance::setSILModule
CodaFi Jan 12, 2020
29268e2
[PropertyWrappers] Fix a bug with class property wrapper access contr…
theblixguy Jan 14, 2020
8f68a68
[ConstraintSystem] Augment `getCalleeLocator` with `getType` callback
xedin Dec 10, 2019
465a948
[ConstraintSystem] Add a separate constraint generation for closure body
xedin Dec 10, 2019
92556e8
[ConstraintSystem] Introduce a mapping from closures to their inferre…
xedin Dec 11, 2019
b7523d7
[ConstraintSystem] Introduce `resolveClosure` method to generate cons…
xedin Dec 11, 2019
66db166
[ConstraintSystem] Introduce new `DefaultClosureType` constraint
xedin Dec 11, 2019
9dc2dfd
[ConstraintSystem] Allow single-statement closures be used with funct…
xedin Dec 16, 2019
58f615d
[AST] NFC: Remove obsolete function builder type storage from `Parame…
xedin Dec 16, 2019
9257b29
[ConstraintSystem] Clarify `DefaultClosureType` constraint and add it…
xedin Dec 16, 2019
141c987
[ConstraintSystem] Add accessor to type var to determine if it repres…
xedin Dec 16, 2019
b868d1c
[ConstraintSystem] Account for unapplied curried self while trying to…
xedin Dec 17, 2019
59c7491
[CSBindings] Prefer closure type binding over disjunction
xedin Dec 17, 2019
65adc18
[ConstraintSystem] Delay constraint generation from single-statement …
xedin Dec 17, 2019
36216d5
[Diagnostics] Pinpoint contextual error location if it's related to a…
xedin Dec 17, 2019
1c803a7
[CSFix] Account for special closure handling in invalid trailing clos…
xedin Dec 17, 2019
449ef61
[CSGen] NFC: Remove obsolete closure handling logic
xedin Dec 17, 2019
3f1083e
[TypeChecker] NFC: Mark perf test-case for rdar://problem/20959612 as…
xedin Dec 18, 2019
09e4582
[Diagnostics] NFC: Adjust test-cases improved by changes to closure e…
xedin Dec 18, 2019
30876a4
[TypeChecker] NFC: Mark test-case for rdar://problem/22022980 as "slow"
xedin Dec 18, 2019
cf2cad0
[ConstraintSystem] Add more information retrieval callbacks to `getCa…
xedin Dec 18, 2019
af82e6f
[TypeChecker] Use special locator while matching function builder bod…
xedin Jan 10, 2020
22e12e8
[ConstraintSystem] Switch to pair-wise type binding differentiation f…
xedin Jan 10, 2020
c3153e0
[CSRanking] Account for that fact that some bindings can be type holes
xedin Jan 10, 2020
ad52afa
[ConstraintSystem] Add pair-wise differentiation of key path dynamic …
xedin Jan 10, 2020
e6f2427
[TypeChecker] NFC: Adjust a couple of test-case affected by closure c…
xedin Jan 10, 2020
25433b3
[CSGen] Use `getType` when refering to closure parameters in expressi…
xedin Jan 9, 2020
c6a5f59
[ConstraintSystem] Attempt types linked via subtyping in reverse orde…
xedin Jan 14, 2020
2265d6e
tests: adjust the SourceKit tests for line endings (NFCI)
compnerd Jan 14, 2020
d0203fe
tests: avoid the `not env` pattern
compnerd Jan 14, 2020
b4b8f64
Merge pull request #29169 from gottesmm/pr-bb85c6dcf2969bae076e9d10f9…
gottesmm Jan 14, 2020
2af598f
[Gardening] Const-qualify Many Usages of CompilerInstance
CodaFi Jan 12, 2020
071bece
Merge pull request #29167 from aschwaighofer/revert_array_first
aschwaighofer Jan 14, 2020
e0ccadd
[NFC] Small formatting fix in TypeMatcher.h
Jan 14, 2020
0aa3125
[Testing] Eliminate REQUIRES-ANY usage
rintaro Jan 14, 2020
4e7141b
Merge pull request #29190 from compnerd/what-do-we-tell-failure
compnerd Jan 14, 2020
292c540
Merge pull request #29189 from compnerd/20200108-sourcekit-test
compnerd Jan 14, 2020
1010d1e
Merge pull request #29186 from slavapestov/realize-objc-classes-the-o…
slavapestov Jan 14, 2020
2354ceb
Merge pull request #29192 from nathawes/formatting-fix
Jan 14, 2020
5e155d9
Merge pull request #29155 from CodaFi/west-const-story
CodaFi Jan 14, 2020
f7d610d
IRGen: don't create ObjC methods with the unnamed_addr attribute
eeckstein Jan 14, 2020
faf3be4
Merge pull request #29180 from rintaro/ide-completion-rdar58550697
rintaro Jan 14, 2020
47df8a1
SILGen: Fix assert when bridging no-payload enum case to Any
slavapestov Jan 14, 2020
7619c63
SILGen: Simplify a check in SILGenBuilder::createStore()
slavapestov Jan 14, 2020
0aadb7c
[CSDiag] NFC: Move `findResolvedMemberRef` to ConstraintSystem.cpp
xedin Jan 14, 2020
951b853
[SourceKit] Disable module system headers validation
rintaro Jan 14, 2020
546c5b7
tests: fix accidental `not env` usage
compnerd Jan 14, 2020
9626d55
Merge pull request #29196 from rintaro/sourcekit-rdar58550697
rintaro Jan 14, 2020
b9f4e12
SIL: Fix visibility of final method symbols in resilient classes
slavapestov Jan 14, 2020
64263ed
test: loosen path pattern matching for Windows
compnerd Jan 14, 2020
f9160c0
Merge pull request #29199 from xedin/nfc-csdiag-gardening
xedin Jan 15, 2020
c5461ce
Merge pull request #29191 from compnerd/not-today
compnerd Jan 15, 2020
4f10b19
[NFC] Adjust SILFunctionType layout to use TrailingObjects methods. (…
varungandhi-apple Jan 15, 2020
5e0226f
Merge pull request #29194 from rintaro/test-requiresor-rdar57245073
rintaro Jan 15, 2020
97d7470
[CSBindings] Avoid inferring duplicate bindings from supertypes
xedin Jan 15, 2020
d318b5d
[ConstraintSystem] Fix `getArgumentExpr` to check number of tuple ele…
xedin Jan 15, 2020
7f4e5a5
Merge pull request #29197 from slavapestov/misc-silgen-fixes
slavapestov Jan 15, 2020
6ff8722
[build] Remove function contains_product from build-script-impl
bulbazord Jan 15, 2020
25161a4
Merge pull request #29206 from compnerd/test-temporary-paths
compnerd Jan 15, 2020
e0a9a74
[NFC] Add minimal test case for rdar://problem/58578342.
varungandhi-apple Jan 15, 2020
f5cb50c
[Sema] Implicitly tuple a pattern if applicable.
varungandhi-apple Jan 15, 2020
1f59f10
Unwind the Bogus Delayed Categories Hack
CodaFi Jan 15, 2020
f980105
Merge pull request #29188 from eeckstein/fix-unnamed-addr
eeckstein Jan 15, 2020
b633ef2
Merge pull request #29208 from xedin/dont-attempt-duplicate-supertypes
xedin Jan 15, 2020
6126fdb
Merge pull request #29125 from apple/hyp-patch-1
shahmishal Jan 15, 2020
3a520e6
Disable test that fails spuriously
aschwaighofer Jan 14, 2020
7f20d93
IRGen: Correctly compute instanceStart for a Swift class that starts …
aschwaighofer Jan 15, 2020
172c72b
stdlib: add a shortcut for Array.append(contentsOf:) in case the argu…
eeckstein Jan 15, 2020
49d89fa
Disable test that fails on the ASAN bot
aschwaighofer Jan 15, 2020
9f50719
Merge pull request #29217 from CodaFi/applied-category-theory
CodaFi Jan 15, 2020
32a5bf0
Fix test for linux
aschwaighofer Jan 15, 2020
d0e20eb
Merge pull request #29209 from xedin/rdar-56221372
xedin Jan 15, 2020
a1fe532
[AutoDiff upstream] Add derivative function type calculation. (#29218)
dan-zheng Jan 15, 2020
fe9a4db
[NFC] Add emitAndAddMethodList to replace several similar methods. (#…
varungandhi-apple Jan 15, 2020
8ed908f
Revert "[silgen] When SILGenLValue accesses ref_elt_addr, emit unsafe…
aschwaighofer Jan 15, 2020
c1618c1
[Parser] Fix suggested fix-its on enum case with empty parens
xymus Jan 14, 2020
76d4c1f
Merge pull request #29211 from xiaobai/no-more-containers
compnerd Jan 15, 2020
fdd1154
Merge pull request #29227 from xymus/r58546221
xymus Jan 15, 2020
4cf5c2e
Merge pull request #29219 from aschwaighofer/irgen_fix_zero_size_fiel…
aschwaighofer Jan 15, 2020
1c74c7f
Merge pull request #29226 from aschwaighofer/revert_silgen_ref_elt_addr
aschwaighofer Jan 15, 2020
4eda042
[CSGen] Unify handling of single- and multi-statement closures
xedin Jan 15, 2020
676411f
Have dtrace aggregate rr opts and start tracking {retain,release}_n.
gottesmm Jan 15, 2020
eb90ff2
[test][android] Mark inherits-superclass-initializers-client as execu…
drodriguez Jan 15, 2020
35aa040
Pattern match test names, not numbers to capture test names from Benc…
gottesmm Jan 15, 2020
461f17e
Change -csv flag to be --emit-csv.
gottesmm Jan 15, 2020
2840a76
When gathering counters, check for instability and FAIL otherwise.
gottesmm Jan 15, 2020
0c478b6
Revert "Merge pull request #28665 from CodaFi/the-phantom-menace"
beccadax Jan 15, 2020
c02b95e
[Runtime] A Swift Error bridged to NSError should return its descript…
theblixguy Jan 16, 2020
8510b92
[NFC] Add an EmitSortedSIL member to SILOptions for consistency. (#29…
varungandhi-apple Jan 16, 2020
ff60592
[Build System: build-script] Re-organized the build_swift module to m…
Jan 16, 2020
ffc10a5
Merge pull request #29201 from gottesmm/pr-7c946eae74676ddfef96000970…
swift-ci Jan 16, 2020
99e60b0
Merge pull request #29237 from brentdax/revenge-of-the-synth
beccadax Jan 16, 2020
3018b55
[CodeCompletion] Enable fast completion within accessors
rintaro Jan 16, 2020
9b1212b
[CodeCompletion] Make getEquivalentDeclContextFromSourceFile() safe
rintaro Jan 16, 2020
a8e5a04
Merge pull request #29243 from Rostepher/reorganize-build-swift-module
Rostepher Jan 16, 2020
53c008f
[Parser]: Labeled block without do diagnostics (#29147)
kitaisreal Jan 16, 2020
8269522
Merge pull request #28837 from xedin/rdar-56340587
xedin Jan 16, 2020
2715c70
Merge pull request #29220 from eeckstein/improve-array-append
eeckstein Jan 16, 2020
a34956b
Merge pull request #29235 from drodriguez/executable-inherits-supercl…
drodriguez Jan 16, 2020
13e865c
Merge pull request #29245 from rintaro/ide-completion-fastaccessor-rd…
rintaro Jan 16, 2020
f49d450
[ConstraintSystem] Fix conversion of variadic/inout closure parameter…
xedin Jan 16, 2020
a0b0e36
Merge pull request #29213 from varungandhi-apple/vg-fix-implicit-tupl…
varungandhi-apple Jan 16, 2020
caf88fb
TBDGen: some refactoring to allow multiple platform kinds for linker …
nkcsgexi Jan 16, 2020
67b9aab
[cmake] Honour CMAKE_CXX_STANDARD when performing test for check_cxx_…
benlangmuir Jan 16, 2020
80d6230
Merge pull request #29241 from nkcsgexi/refactor-originally-defined
nkcsgexi Jan 16, 2020
9e6f6d8
Rename FunctionBuilderClosurePreCheck -> FunctionBuilderBodyPreCheck
DougGregor Jan 10, 2020
71350bd
Generalize some mentions of closures in function builder application
DougGregor Jan 10, 2020
3a51d5b
[WIP] Reimplement function builders as statement transformations.
DougGregor Jan 10, 2020
c8acc0f
[Function builders] Minor fixes for builder transform refactoring.
DougGregor Jan 14, 2020
fccee4f
[Constraint generation] Cope with odd handling of parameter types.
DougGregor Jan 15, 2020
f959ace
[Function builders] Minor fixes for "load" expr generation
DougGregor Jan 15, 2020
e79281d
Nail Down The Emergent Behaviors of the ClangImporter's Override Chec…
CodaFi Jan 16, 2020
ee93805
[Test] Update expected connected components for one-way constraints
DougGregor Jan 15, 2020
a49f009
[Constraint application] Skip error expressions when applying builders.
DougGregor Jan 15, 2020
9853926
[Function builders] Make sure we contextualize closures with builders…
DougGregor Jan 16, 2020
cf96e65
[Function builders] Minor fixes for lvalue-ness, interface types
DougGregor Jan 16, 2020
bfa6d73
[Function builders] Fake Expr-based locators for now.
DougGregor Jan 16, 2020
0a7f040
[Function builders] Fix one-way constraint test, again
DougGregor Jan 16, 2020
e4277da
Merge pull request #29252 from xedin/rdar-58647769
xedin Jan 16, 2020
6da7ec3
Merge pull request #29255 from CodaFi/categorical-denials
CodaFi Jan 16, 2020
5e760a0
More tests for bogus category behaviors
CodaFi Jan 16, 2020
95f12af
[CodeCompletion] Improve context type analysis for dictionary literal
rintaro Jan 13, 2020
9d44c45
[CodeCompletion] Use CodeCompletionExpr as a value of dictionary literal
rintaro Jan 14, 2020
f562da9
build-script: Don't build compiler-rt for embedded devices (#29256)
vedantk Jan 17, 2020
35bfe2a
Merge pull request #29254 from benlangmuir/honour-thy-standard
benlangmuir Jan 17, 2020
33ac01d
Merge pull request #29257 from CodaFi/scattergories
swift-ci Jan 17, 2020
45f4ce5
[SIL Optimization] Improving comments for the constant evaluable call…
ravikandhadai Jan 17, 2020
0a30529
Merge pull request #29261 from ravikandhadai/dead-code-elim-minor-fix
swift-ci Jan 17, 2020
5fc2cfa
Merge pull request #29258 from rintaro/ide-completion-dictliteral-rda…
rintaro Jan 17, 2020
bb22690
[Build System: build-script] Moves the rest of the build-script-impl …
Jan 17, 2020
f5c56f2
[Build System: build-script] Remove the dumb assertNotRaises test met…
Jan 17, 2020
dadd43c
Merge pull request #29262 from Rostepher/migrate-migration-module
Rostepher Jan 17, 2020
973b962
[build] Simplify common_cross_c_flags
bulbazord Jan 17, 2020
fbe38ce
Fix EscapeAnalysis losing precision during merge.
atrick Jan 16, 2020
525708e
Merge pull request #29265 from Rostepher/remove-assert-not-raises
Rostepher Jan 17, 2020
9eeb96c
[CodeCompletion] Handle cases where PersistentParserState is not created
rintaro Jan 17, 2020
1d088fc
[Build System: update-checkout] Move the run_parallel and check_paral…
Jan 17, 2020
7b8401c
[Build System: build-script] Remove the old implementation of the pre…
Jan 17, 2020
31f063b
[Build System: build-script] Remove the old arguments module hiding i…
Jan 17, 2020
bb4e5fe
[Python: flake8] Appease the utils/python_lint.py script.
Jan 17, 2020
2331142
Merge pull request #29270 from Rostepher/move-parallel-shell-funcs
Rostepher Jan 17, 2020
513c926
Merge pull request #29264 from Rostepher/remove-old-presets-parser
Rostepher Jan 17, 2020
2e73fd7
Merge pull request #29266 from Rostepher/remove-old-arguments-module
Rostepher Jan 17, 2020
1370f8f
Merge pull request #29271 from Rostepher/appease-python-lint
Rostepher Jan 17, 2020
79fb67f
tests: exclude some very long running tests from jobs with a non-opti…
eeckstein Jan 17, 2020
8d21f1b
build-script: minor cleanup
compnerd Jan 17, 2020
c3a08f0
Merge pull request #29249 from atrick/fix-stackpromote
atrick Jan 17, 2020
616fcb3
Merge pull request #29269 from rintaro/ide-completion-rdar58663066
rintaro Jan 17, 2020
09bfd94
Merge pull request #29133 from DougGregor/generlize-function-builders
DougGregor Jan 17, 2020
1f67146
[Diagnostics] Emit fix-its for 'did you mean to override init(from:)/…
theblixguy Jan 17, 2020
7b1e35b
Merge pull request #29275 from compnerd/bs-cleanup
compnerd Jan 17, 2020
7691188
Merge pull request #29267 from xiaobai/simplify-common-c-flags
compnerd Jan 17, 2020
8ee7fc7
[Parse] Emit a fix-it to move 'some' to the beginning of protocol com…
theblixguy Jan 17, 2020
6f096be
build-script-impl: reorganise the option
compnerd Jan 17, 2020
b8c090d
[SR-3871] Unwrap multiple layers of Any/AnyObject when casting to pro…
tbkka Jan 17, 2020
5f62deb
Merge pull request #29279 from theblixguy/fix/fix-it-for-some-in-comp…
rintaro Jan 17, 2020
17cfa93
Add test cases for EscapeAnalysis.
atrick Jan 17, 2020
7865015
IRGen: Remove unused variable
slavapestov Jan 17, 2020
bfeb134
[Build System: build-script] Update the auto-generated preset parsing…
Jan 17, 2020
acce4a0
Merge pull request #29286 from Rostepher/preset-substitutions-in-tests
shahmishal Jan 17, 2020
0fdef59
[Build System: build-script] Adopt the six compatibility library in t…
Jan 16, 2020
3ee9b11
TBDGen: when previous install name map is specified, emit $ld$previou…
nkcsgexi Jan 17, 2020
6a5c166
Merge pull request #29280 from compnerd/bs-options
Rostepher Jan 18, 2020
90c478f
Add the target list to build-script --help.
atrick Jan 17, 2020
3511358
Merge pull request #29287 from slavapestov/irgen-unused-var
slavapestov Jan 18, 2020
73e69c8
Merge pull request #29293 from nkcsgexi/emit-ld-previous
nkcsgexi Jan 18, 2020
5d3e8b5
Merge pull request #29283 from atrick/show-build-targets
atrick Jan 18, 2020
4d715e6
Merge pull request #29276 from atrick/test-stackpromote
atrick Jan 18, 2020
3fd9098
Merge pull request #29274 from eeckstein/disable-slow-tests
eeckstein Jan 18, 2020
1a0cbbf
tests: only run a Casts.swift test with a newer runtime
eeckstein Jan 18, 2020
f2b6446
build: always report the status of building `Differentiation`
compnerd Jan 18, 2020
516ad28
Merge pull request #29244 from Rostepher/adopt-six-in-build-swift
Rostepher Jan 18, 2020
67d6b10
[Build System: build-script] Add a new versions module to build_swift…
Jan 16, 2020
885fd01
[Build System: build-script] Adds a new shell module to build_swift w…
Jan 16, 2020
4b76637
Merge pull request #29297 from eeckstein/fix-cast-test
swift-ci Jan 18, 2020
c9bf062
Merge pull request #29247 from Rostepher/version-module
Rostepher Jan 18, 2020
d21a603
Merge pull request #29268 from Rostepher/shell-module
Rostepher Jan 18, 2020
6df28a2
Clarify the use of parameter indices and `self`.
rxwei Jan 19, 2020
893dd36
Fix typo: 'foo' -> 'sinf'
rxwei Jan 19, 2020
b5912e8
Add missing 'T == T.TangentVector' requirement.
rxwei Jan 19, 2020
2a13bb0
Remove duplicate paragraph.
rxwei Jan 19, 2020
1b0eee9
Merge pull request #28925 from apple/derivative-registration-typing-r…
swift-ci Jan 19, 2020
dfb6f20
[Docs] [AutoDiff] Allow implicitly inherited '@differentiable' on non…
rxwei Jan 19, 2020
51e7f8a
[run-test] Update run-test for recent changes
rintaro Jan 19, 2020
274138a
Merge pull request #29308 from rintaro/run-test-targets
rintaro Jan 19, 2020
7587c7c
[Build System: build-script] Re-structured the build_swift module tes…
Jan 19, 2020
de1759c
[Build System: build-script] Added a new run_test.py script to utils/…
Jan 19, 2020
83bfc69
[Build System: update-checkout] Added a new run_test.py script to uti…
Jan 19, 2020
d39dae5
[Build System: Python] Renamed the Python lint validation test and up…
Jan 19, 2020
68bf968
[Build System: build-presets] Remove duplicate flag from preset which…
Jan 19, 2020
a4fcc48
Merge pull request #29307 from rxwei/not-require-differentiable
swift-ci Jan 19, 2020
ac431fa
[Build System: build-script] Remove the old which module in swift_bui…
Jan 19, 2020
456ecaf
Merge pull request #29299 from compnerd/status
compnerd Jan 19, 2020
f185dd6
[QoI] Fix -Wrange-loop-analysis warnings
davezarzycki Jan 19, 2020
ed15a9e
[QoI] Fix -Wmisleading-indentation warnings
davezarzycki Jan 19, 2020
32c66c3
[QoI] Fix -Wunused-variable warning
davezarzycki Jan 19, 2020
b904179
[Build System: Python] Cleaned-up the python_lint.py script.
Jan 19, 2020
44d937d
[AutoDiff upstream] Add `@differentiable` declaration attribute type-…
dan-zheng Jan 19, 2020
63afeb1
Merge pull request #29312 from davezarzycki/pr29312
davezarzycki Jan 19, 2020
f8f3324
Merge pull request #29306 from Rostepher/python-test-restructure
Rostepher Jan 20, 2020
ce7888e
Merge pull request #29309 from Rostepher/cleanup-python-lint
Rostepher Jan 20, 2020
2d1930f
Merge pull request #29310 from Rostepher/remove-old-which-module
Rostepher Jan 20, 2020
a6dab52
[Build System: build-script] Adds a new xcrun module to build_swift w…
Jan 19, 2020
0405cb5
Merge pull request #29315 from Rostepher/xcrun-module
Rostepher Jan 20, 2020
b45aaee
Merging swift-DEVELOPMENT-SNAPSHOT-2020-01-20-a into tensorflow
Jan 22, 2020
ff48eed
Update dependencies to new snapshot version 'swift-DEVELOPMENT-SNAPSH…
Jan 22, 2020
457df8f
Fix merge fallout
Jan 22, 2020
29ce7f3
Fix merge issues and `@differentiable` attribute type-checking.
dan-zheng Jan 23, 2020
9e32a5f
Fix test/AutoDiff/downstream/differentiable_attr_type_checking.swift
Jan 26, 2020
ca16e69
Update test/AutoDiff/Sema/differentiable_attr_type_checking.swift wit…
Jan 26, 2020
df2e553
Disable validation-test/Python/build_swift.swift
Jan 26, 2020
2988a33
Disable failing LLDB tests
Jan 27, 2020
d1c8d70
Merge branch 'tensorflow' of github.com:apple/swift into tensorflow-m…
dan-zheng Jan 27, 2020
03593f4
Fix `-enable-experimental-cross-file-derivative-registration` flag.
dan-zheng Jan 27, 2020
b601662
Clean up `@differentiable` attribute type-checking.
dan-zheng Jan 27, 2020
65ed534
Update to the latest version of tensorflow-swift-quote
Jan 27, 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
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ if(POLICY CMP0068)
cmake_policy(SET CMP0068 OLD)
endif()

# Honour CMAKE_CXX_STANDARD in try_compile(), needed for check_cxx_native_regex.
if(POLICY CMP0067)
cmake_policy(SET CMP0067 NEW)
endif()

# Add path for custom CMake modules.
list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
Expand Down Expand Up @@ -889,6 +894,9 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
message(STATUS "Building Swift runtime with:")
message(STATUS " Leak Detection Checker Entrypoints: ${SWIFT_RUNTIME_ENABLE_LEAK_CHECKER}")
message(STATUS "")

message(STATUS "Differentiable Programming Support: ${SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING}")
message(STATUS "")
else()
message(STATUS "Not building Swift standard library, SDK overlays, and runtime")
message(STATUS "")
Expand Down
35 changes: 28 additions & 7 deletions benchmark/scripts/Benchmark_DTrace.in
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ class DTraceResult(perf_test_driver.Result):
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', 'strong_retain', 'strong_retain/iter',
'strong_release', 'strong_release/iter']
'Name', 'Result', 'Total RR Opts', 'Total RR Opts/Iter']

@classmethod
def data_format(cls, max_test_len):
Expand Down Expand Up @@ -100,13 +102,32 @@ class DTraceBenchmarkDriver(perf_test_driver.BenchmarkDriver):
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)

results = []
for x in zip(iter_2_results, iter_3_results):
results.append(x[1])
results.append(int(x[1]) - int(x[0]))
foundInstability = False
for x in zip(iter_2_results, iter_3_results, iter_5_results):
result_2 = int(x[0])
result_3 = int(x[1])
result_5 = int(x[2])

single_iter = result_3 - result_2
two_iter = result_5 - result_3

# We are always doing more work, so these should be the same. Fail
# if we have a negative number.
if single_iter < 0 or two_iter < 0:
foundInstability = True

# Our retain traffic should always increase linearly with iteration
# size.
if (single_iter * 2) == two_iter:
foundInstability = True

results.append(result_3)
results.append(single_iter)

return DTraceResult(test_name, 0, results, self.csv_output)
return DTraceResult(test_name, int(not foundInstability), results)


SWIFT_BIN_DIR = os.path.dirname(os.path.abspath(__file__))
Expand All @@ -120,7 +141,7 @@ def parse_args():
default=None,
help='Filter out any test that does not match the given regex')
parser.add_argument(
'-csv',
'--emit-csv',
default=False,
action='store_true',
help="Emit csv output",
Expand Down
2 changes: 1 addition & 1 deletion benchmark/scripts/perf_test_driver/perf_test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import subprocess


BENCHMARK_OUTPUT_RE = re.compile('([^,]+),')
BENCHMARK_OUTPUT_RE = re.compile(r'\d+,([^,]+)')


class Result(object):
Expand Down
14 changes: 12 additions & 2 deletions benchmark/scripts/perf_test_driver/swift_stats.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,22 @@

pid$target:*:swift_retain:entry
{
@counts[probefunc] = count();
@counts["rr-opts"] = count();
}

pid$target:*:swift_release:entry
{
@counts[probefunc] = count();
@counts["rr-opts"] = count();
}

pid$target:*:swift_retain_n:entry
{
@counts["rr-opts"] = count();
}

pid$target:*:swift_release_n:entry
{
@counts["rr-opts"] = count();
}

END
Expand Down
12 changes: 10 additions & 2 deletions docs/Branches.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,17 @@ You can use any of the branch names as the argument to `--scheme`, such as `mast

- Swift: new commits go to `master`

- LLVM Project: new commits go to `swift/master-next`
- LLVM Project: the destination branch depends on the kind of change that must be made:

...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.)*
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.

2) Changes that depend on Swift (this only applies to LLDB): new commits go to `swift/master-next`

...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.)*

## Automerging

Expand Down
Loading