Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
432 commits
Select commit Hold shift + click to select a range
0c54eec
Remove an unused member
CodaFi Nov 13, 2019
4f9f6b9
Privatize findLHS
CodaFi Nov 13, 2019
6ff321a
build: adjust cmake invocation for export targets
compnerd Nov 13, 2019
6f83668
Merge pull request #28168 from ravikandhadai/oslog-closure-array-folding
ravikandhadai Nov 13, 2019
af75939
Update WindowsBuild.md
compnerd Nov 13, 2019
cd8f545
Update DifferentiableProgramming.md (#28230)
Lee4Gitr Nov 13, 2019
dfb9a80
[semantic-arc-opts] Do not perform the (guaranteed (copy)) -> (guaran…
gottesmm Nov 13, 2019
95c716c
Merge pull request #28139 from atrick/escape-createcontentnode
atrick Nov 13, 2019
d53c015
Merge pull request #28231 from CodaFi/security-types
swift-ci Nov 13, 2019
999b32e
EscapeAnalysis: add a refcount flag to content nodes.
atrick Nov 8, 2019
53015f5
[Gardening] Remove handleSILGenericParams from TypeChecker
CodaFi Nov 13, 2019
f3b2430
Merge pull request #28235 from gottesmm/pr-b17541a0a4d7b1ca7d40f3c808…
swift-ci Nov 13, 2019
67cd031
Merge pull request #28236 from CodaFi/parametric-monomorphism
swift-ci Nov 13, 2019
431ca98
[Diagnostics] Port explicit closure result contextual mismatch
xedin Nov 13, 2019
eb3a1b3
[CSDiag] NFC: Remove obsolete explicit closure result mismatch handling
xedin Nov 13, 2019
ea1a46c
[ConstraintFix] Rather than creating a coalesced fix right before
hborla Nov 9, 2019
166daeb
Merge pull request #28153 from atrick/escape-refcount
atrick Nov 13, 2019
9b6aa30
Relax an assert in witness access diagnostics
CodaFi Nov 13, 2019
0a3a130
Merge pull request #28232 from compnerd/xctest-foundation-tied-up
compnerd Nov 13, 2019
88ee618
Move Vending Top-Level Autoclosure discriminators into ASTContext
CodaFi Nov 13, 2019
faa66f1
Strip the REPLChecker of its TopLevelContext
CodaFi Nov 13, 2019
fcf4703
Strip PCMacro of its TopLevelContext
CodaFi Nov 13, 2019
09c7c74
Remove the context parameter from performTypeChecking
CodaFi Nov 13, 2019
c0312b9
[ConstraintSystem] Record holes in the constraint system using a new …
hborla Nov 11, 2019
21922a4
Merge branch 'master' into accelerate-vDSP-interpolation-tests
lorentey Nov 13, 2019
5f3a6af
Explicitly Specify a 64bit Shift to Fix Warning
gmittert Nov 13, 2019
71f5cee
Fix closing braces lost during conflict resolution
lorentey Nov 14, 2019
5446d33
Merge pull request #28126 from danliew-apple/rdar_56346688
delcypher Nov 14, 2019
670ff7d
[Constrant system] Drop expression from diagnoseAmbiguityWithFixes.
DougGregor Nov 9, 2019
4c2a7bf
Revert "[Constraint solver] Be more careful about NULL parent express…
DougGregor Nov 11, 2019
e91a41a
Merge pull request #28244 from CodaFi/pavane-pour-une-infante-default
swift-ci Nov 14, 2019
c0ea564
Merge pull request #28234 from apple/compnerd-import-exports
compnerd Nov 14, 2019
7152364
Fix logic related to isTriviallyDuplicatable.
atrick Nov 14, 2019
3b50749
Merge pull request #28247 from gmittert/ShiftingBlame
swift-ci Nov 14, 2019
3975e72
Merge pull request #28246 from CodaFi/contextual-equivalence
CodaFi Nov 14, 2019
0ebe9a1
Merge pull request #28218 from CodaFi/curb-cuts
CodaFi Nov 14, 2019
e35a068
Sema: Add test case for https://bugs.swift.org/browse/SR-11392
slavapestov Nov 8, 2019
aa62509
Sema: Remove an unnecessary call to isInvalid()
slavapestov Nov 8, 2019
07d87a1
Sema: Simplify TypeResolver::resolveSILBoxType()
slavapestov Nov 8, 2019
686ddd7
Sema: Tighten up getReferencedAssociatedTypes()
slavapestov Nov 8, 2019
04fbcc0
Sema: Look for generic parameters first when inferring an associated …
slavapestov Nov 8, 2019
d60b97d
[Testing] Add missing REQUIRES: asan_runtime
davezarzycki Nov 14, 2019
edaf7b0
Merge pull request #28240 from xedin/port-clj-explicit-result-mismatch
xedin Nov 14, 2019
10aac56
Merge pull request #28254 from davezarzycki/pr28254
davezarzycki Nov 14, 2019
25ebcac
Merge pull request #28157 from slavapestov/tiny-assoc-type-fixes
slavapestov Nov 14, 2019
1ca57e0
Merge pull request #28249 from atrick/fix-trivially-dup
atrick Nov 14, 2019
9963fe5
Add support in SILLoop::canDuplicate for PartialApplyInst.
atrick Nov 14, 2019
ff601ad
SourceKit: inline single-use variable (NFC)
compnerd Nov 14, 2019
df27954
build: inline a number of single-use variables (NFC)
compnerd Nov 14, 2019
2f78afa
Merge pull request #28214 from francisvm/bitstream-changes/master
hyp Nov 14, 2019
ec70b62
Merge pull request #28107 from allevato/emit-pcm
DougGregor Nov 14, 2019
e74feb6
Merge pull request #24432 from FlexMonkey/accelerate-vDSP-interpolati…
lorentey Nov 14, 2019
e6992d3
Fix reference to `range(of:)` in the contains doc
lucatorella Nov 29, 2018
8da2311
Merge pull request #28162 from ahoppen/exprlistsyntax-description
ahoppen Nov 14, 2019
ac99f18
[Gardening] Clean up after #16227
CodaFi Nov 14, 2019
ae7723a
[Docs] Fix typo in HighLevelSILOptimizations.rst.
own2pwn Aug 4, 2019
1813b8b
Merge pull request #28261 from atrick/check-partialapply
atrick Nov 14, 2019
d502355
Merge pull request #19048 from kitasuke/fix_typo_of_marked_uninitialized
swift-ci Nov 14, 2019
0a7c93d
Merge pull request #14011 from noahsark769/noahsark769-DerivedConform…
swift-ci Nov 14, 2019
0100d7c
Merge pull request #28263 from CodaFi/a-flock-of-seagulls
swift-ci Nov 14, 2019
3146197
Merge pull request #28264 from CodaFi/command-and-control
CodaFi Nov 14, 2019
0718dc9
[windows] Adapt pcm-emit-and-import for Windows separators.
drodriguez Nov 14, 2019
3c05aca
Address review feedback
hamishknight Nov 14, 2019
0103fe1
Merge pull request #28265 from DougGregor/diagnose-ambiguity-with-fix…
swift-ci Nov 14, 2019
29cc760
Merge pull request #27569 from Azoy/wheres-my-type-metadata
swift-ci Nov 14, 2019
1b8a723
[Reflection] Ignore BuiltinTypeDescriptors with zero size, alignment,…
mikeash Nov 11, 2019
c81141a
[Reflection] Add a test for reflecting empty structs.
mikeash Nov 14, 2019
7722d43
build: simplify source file handling for sourcekitdAPI
compnerd Nov 14, 2019
8a61284
Merge pull request #28266 from CodaFi/verb-check
CodaFi Nov 14, 2019
db9c2ed
[windows] Enable SourceKit tests in CI.
drodriguez Nov 13, 2019
717c4d3
SourceKit: remove `LINK_LIBS` (NFC)
compnerd Nov 14, 2019
e716300
[Reflection] Accept BuiltinTypeDescriptors with zero size.
mikeash Nov 14, 2019
5bb5006
Merge pull request #28243 from hborla/missing-generic-args-refactoring
hborla Nov 14, 2019
c8ce5b3
ABI/API checker: don't complain about changing var to let or vice versa
nkcsgexi Nov 14, 2019
1be22c5
[Sema] Requestify default argument type checking (#27756)
hamishknight Nov 14, 2019
9188dd6
Add benchmarks for mutable copies of bridged Swift Strings
Catfish-Man Nov 14, 2019
01f203a
[Constraint system] Sink Expr::getDepthMap() into its one client.
DougGregor Nov 14, 2019
e68ab43
Merge pull request #20474 from tinysun212/pr-swiftc-cygwin-3
swift-ci Nov 14, 2019
6b8d54d
Merge pull request #20795 from DougGregor/sr-8767
DougGregor Nov 14, 2019
2d5d8e3
Sema: Clean up applyGenericArguments() and friends
slavapestov Nov 14, 2019
54155fe
Sema: Check generic requirements of parent context when realizing non…
slavapestov Nov 14, 2019
0e06792
Add regression test for SR-10201
slavapestov Nov 14, 2019
9b9aa23
[Constraint solver] Lazily populate the expression depth/index map.
DougGregor Nov 14, 2019
d6619e5
Merge pull request #18705 from DougGregor/bridge-object-ref-count
DougGregor Nov 14, 2019
2d915f6
[Constraint solver] Remove expression from the constructor.
DougGregor Nov 14, 2019
5268ce4
Merge pull request #28270 from compnerd/sourcekit-simplify
compnerd Nov 14, 2019
38c29e2
Generalize and fix SinkAddressProjections.
atrick Sep 30, 2019
a30968f
Merge pull request #28267 from drodriguez/windows-fix-pcm-emit-and-im…
drodriguez Nov 15, 2019
954a142
Merge pull request #27943 from jrose-apple/eevee
jrose-apple Nov 15, 2019
6db9a69
[docs] Move all the futurey bits of LibraryEvolution.rst to a new fil…
jrose-apple Nov 15, 2019
bf78d4a
Merge pull request #28271 from Catfish-Man/mutantmark
Catfish-Man Nov 15, 2019
b30efa7
[pmo] Refactor addHandOffCopyDestroysForPhis to be able to take a loa…
gottesmm Nov 13, 2019
9243c61
Handle Boolean literals as enum raw values.
DougGregor Nov 14, 2019
21a7fba
More tests for Bool raw values of enums
DougGregor Nov 15, 2019
62c0bb8
[msvc] std::move the pointer for the method that requires an rvalue.
drodriguez Nov 15, 2019
16ea9fa
Merge pull request #28277 from gottesmm/pr-fe75266370825e5d95381c70f6…
swift-ci Nov 15, 2019
2fbb0c1
Merge pull request #28272 from nkcsgexi/let-var-is-file
nkcsgexi Nov 15, 2019
9884e50
Merge pull request #28280 from drodriguez/msvc-wants-you-to-move
drodriguez Nov 15, 2019
24b47b5
[Constraint solver] Sink Expr::getPreorderIndexMap() into its client.
DougGregor Nov 15, 2019
abf41e7
[Constraint system] Look for parent/depth info in base constraint sys…
DougGregor Nov 15, 2019
0540535
Merge pull request #28274 from DougGregor/bool-raw-value
swift-ci Nov 15, 2019
815bf31
[IDE] Enable 'IgnoreSwiftSourceInfo' in code completion
rintaro Nov 15, 2019
0b6ef0d
Merge pull request #28276 from DougGregor/constraint-solver-expr-ctor
DougGregor Nov 15, 2019
9826aaa
Merge pull request #28275 from slavapestov/check-where-clause-non-gen…
slavapestov Nov 15, 2019
f2f521f
[FrondEnd] Wrap RunInmediately() in a pretty stack trace indicating w…
tapthaker Nov 15, 2019
ee8447e
[Reflection] Reject BuiltinTypeDescriptors with non-power-of-two alig…
mikeash Nov 15, 2019
724ff1e
Merge pull request #28262 from compnerd/sourcekit-link-libraries
compnerd Nov 15, 2019
7c0ed24
[stdlib] Document Windows implementation of SystemRandomNumberGenerat…
natecook1000 Nov 15, 2019
e66e033
Cleanup EscapeAnalysis::ConnectionGraph::initializePointsTo.
atrick Nov 14, 2019
9a71f23
Merge pull request #27444 from atrick/fix-sink-address
atrick Nov 15, 2019
7d4bf75
[Test] Don't test demangling of SwiftObject's name, as it's subject t…
mikeash Nov 15, 2019
84e1d7e
Merge pull request #28273 from atrick/escape-initializePointsTo
atrick Nov 15, 2019
5eb1df5
[CSDiagnostics] NFC: Use std::tie to call resolveImmutableBase
hamishknight Nov 15, 2019
8d208be
[CSDiagnostics] Use qualified lookup for 'self.' fix-it
hamishknight Nov 15, 2019
37e15db
[CSDiagnostics] Use expr's start loc for 'self.' fix-it
hamishknight Nov 15, 2019
6d6feb6
[CSDiagnostics] Support static "Type." fix-it
hamishknight Nov 15, 2019
55e3797
Revert "Sema: Look for generic parameters first when inferring an ass…
slavapestov Nov 15, 2019
d0219b6
[stlextras] Add overloads for binary_search that take containers.
gottesmm Nov 15, 2019
1d76c9d
Merge pull request #28286 from mikeash/swiftobject-mangling
mikeash Nov 15, 2019
b615db4
[CSDiagnostics] A couple of fixes for the "self." immutability… (#28288)
hamishknight Nov 15, 2019
8499a7f
Merge pull request #28183 from mikeash/zero-size-builtin-type-descrip…
mikeash Nov 15, 2019
da69915
[Linux] Build and install Foundation static libraries.
spevans Nov 15, 2019
495917e
Merge pull request #28291 from gottesmm/pr-bd9748e1a8090958d45317cc39…
swift-ci Nov 15, 2019
564e377
setInvalid on attr
keith Nov 15, 2019
8bfe519
[stdlib] Use RRC.filter in removeAll(where: _) (#18825)
natecook1000 Nov 15, 2019
185c265
NFC: Move LookupResult from Sema to Name Lookup
hamishknight Nov 14, 2019
633de02
Add UnqualifiedLookupRequest
hamishknight Nov 14, 2019
3aa7158
Switch UnqualifiedLookup callers over to UnqualifiedLookupRequest
hamishknight Nov 14, 2019
e8c30ca
Remove UnqualifiedLookup
hamishknight Nov 15, 2019
acbf0b2
Remove NumUnqualifiedLookup counter
hamishknight Nov 14, 2019
25949c2
[Sanitizer] Don't depend on symbolication in `asan_recover.swift`. (#…
danliew-apple Nov 15, 2019
b8a1ecd
[stlextras] Add overloads for binary_search that take containers.
gottesmm Nov 15, 2019
95de4d2
[pmo] Fix load [copy] like I fixed load_borrow.
gottesmm Nov 15, 2019
a1a891e
[windows] Use the temporal directory for root of VFS tests.
drodriguez Nov 14, 2019
2978884
[build] Refer to projects through the monorepo directly
bulbazord Nov 15, 2019
cf4fc06
build: require libdispatch on non-Darwin targets
compnerd Nov 15, 2019
2853615
Add type to package inputs to UnqualifiedLookupRequest
hamishknight Nov 16, 2019
46e2e5e
Merge pull request #28250 from drodriguez/windows-sourcekit-vfs-tests
gmittert Nov 16, 2019
e777840
Merge pull request #28297 from compnerd/defaults-are-true
compnerd Nov 16, 2019
0e99e30
Merge pull request #28220 from drodriguez/msvc-adapt-enum-to-avoid-error
compnerd Nov 16, 2019
125c1fb
[Sema] Avoid needing the typechecker for the IsStaticRequest request
Nov 12, 2019
77daaf3
[ASTVerifier] Don't perform semantic requests in verifyParsed()
Nov 12, 2019
196ee01
build: relax SWIFT_PATH_TO_LIBDISPATCH_SOURCE requirement
compnerd Nov 16, 2019
26b20ef
Merge pull request #28227 from keith/ks/remove-frozen-warning
Nov 16, 2019
6273941
[Constraint solver] Centralize solution-application logic somewhat.
DougGregor Nov 15, 2019
c63076e
[Constraint system] Apply fixes without relying on a root expression.
DougGregor Nov 15, 2019
78e360a
[Constraint solver] Drop unused Expr* from diagnoseAmbiguity().
DougGregor Nov 16, 2019
f44941d
Merge pull request #28303 from compnerd/relax
compnerd Nov 16, 2019
7623367
Merge pull request #28295 from gottesmm/pr-5dfaf35e4af5aa2b6e46e3db70…
gottesmm Nov 16, 2019
bcb4546
[CMake] SWIFT_ENABLE_SOURCEKIT_TESTS depends on SWIFT_BUILD_SOURCEKIT
davezarzycki Nov 16, 2019
5087296
Merge pull request #28289 from slavapestov/generic-parameters-are-unr…
slavapestov Nov 16, 2019
d4e097f
Merge pull request #25175 from compnerd/build
CodaFi Nov 16, 2019
2526e79
Merge pull request #28304 from davezarzycki/pr28304
davezarzycki Nov 16, 2019
a596172
Merge pull request #28296 from xiaobai/mono-for-all-and-all-for-mono
shahmishal Nov 16, 2019
1ef9dff
Merge pull request #27937 from spevans/pr_icu_65_1
shahmishal Nov 16, 2019
5c53756
[update-checkout] Remove the symlink from update-checkout because we …
shahmishal Nov 16, 2019
a9daa00
Merge pull request #26298 from compnerd/android-sdk-cross-compilation
compnerd Nov 16, 2019
11d20b8
[IDE] Avoid name binding in sourcekitd's syntactic requests
Nov 15, 2019
9732f81
Merge pull request #23070 from gottesmm/pr-593fd7aed5142c9e2b0b2f18bf…
CodaFi Nov 16, 2019
3932133
Merge pull request #26495 from porglezomp-misc/build-script-remove-re…
compnerd Nov 16, 2019
b530e87
[AutoDiff upstream] Organize AutoDiff tests.
dan-zheng Nov 16, 2019
2d2a5de
[AutoDiff upstream] Minor cleanup for `@differentiable` attribute.
dan-zheng Nov 16, 2019
2b8e266
Revert "[pmo] Fix load [copy] like I fixed load_borrow."
beccadax Nov 16, 2019
fa6c07d
[Docs] [AutoDiff] Rename '@nondiff' to '@noDerivative'.
rxwei Nov 17, 2019
01b53db
Remove a redundant paragraph.
rxwei Nov 17, 2019
adc8116
Merge pull request #28306 from dan-zheng/autodiff-tests
swift-ci Nov 17, 2019
7431c4e
Merge pull request #28308 from apple/revert-28295-pr-5dfaf35e4af5aa2b…
swift-ci Nov 17, 2019
823b216
Merge pull request #28309 from apple/autodiff-doc-update
swift-ci Nov 17, 2019
9a1d482
Merge pull request #28307 from dan-zheng/autodiff-cleanup
swift-ci Nov 17, 2019
91e0db4
[Build System] Update the llvm projects path to be inside llvm-projec…
shahmishal Nov 17, 2019
4bf1059
Merge pull request #28293 from spevans/pr_static_foundation
swift-ci Nov 17, 2019
6759d82
Revert "Revert "[pmo] Fix load [copy] like I fixed load_borrow.""
gottesmm Nov 17, 2019
07c625b
[pmo] Eliminate non-determinism by unmixing some iteration order/sort…
gottesmm Nov 17, 2019
c2be4a1
Merge pull request #28314 from gottesmm/pr-9eb0e6cb15b67bf611cbe9574f…
gottesmm Nov 17, 2019
332d4e2
[Update Checkout] Remove import errno
shahmishal Nov 17, 2019
0567c2a
Disable test until ownership lowering after diagnostics transition is…
gottesmm Nov 17, 2019
269762e
[ownership] Enable ownership lowering /after/ the diagnostic passes.
gottesmm Nov 2, 2019
6fe6ca0
Fix typo in docs
dainmiller Nov 17, 2019
976c8c9
Add tests
zoecarver Nov 17, 2019
fd02663
More tests
zoecarver Nov 17, 2019
a8953b1
Format with clang-format
zoecarver Nov 17, 2019
62a75d7
Use precondition instead of fatalError in DateInterval initializer
ogres Nov 3, 2017
8c8bbf1
Merge pull request #28042 from gottesmm/pr-d5ceb87c25bcf343e5f92bd726…
gottesmm Nov 17, 2019
164a527
Merge pull request #28316 from dainmiller/patch-1
swift-ci Nov 18, 2019
c239d7a
Merge pull request #12530 from amraboelela/update-android-md
swift-ci Nov 18, 2019
82301a5
Merge pull request #28317 from CodaFi/high-intensity-interval-training
swift-ci Nov 18, 2019
4f98772
Merge pull request #28305 from apple/shahmishal/update-checkout-remov…
shahmishal Nov 18, 2019
86f6570
Stop using SharedTimer except to implement FrontendStatsTracer
slavapestov Nov 15, 2019
b8947c4
Add more FileCheck tests
zoecarver Nov 18, 2019
3f7ee85
Fix nits
zoecarver Nov 18, 2019
cda5676
IndexSet.union performance improvement
Jul 1, 2018
2488f48
[docs] Add a DevelopmentTips.md file. (#28248)
varungandhi-apple Nov 18, 2019
498a240
[Foundation] Reorder _DataStorage to save 14 bytes of overhead
phausler Mar 5, 2018
43523df
[IDE] Remove call to getFormalAccess() in inferAccessSyntactically()
Nov 18, 2019
4eafff2
Merge pull request #28325 from CodaFi/index-while-building
CodaFi Nov 18, 2019
d9d6457
Merge pull request #19652 from ranunez/patch-1
CodaFi Nov 18, 2019
633986e
[vim] tidy up coding styles for syntax/swift.vim
tokorom Oct 2, 2018
a128b64
[vim] replace + to "
tokorom Oct 2, 2018
4d85c8b
Index optional is pattern
rockbruno Nov 1, 2018
1a4b362
[oslog] Fix bug where OSLog was not invalidating any state that it wa…
gottesmm Nov 18, 2019
4990bc4
[build] amend search path for Cmake modules
edymtt Nov 18, 2019
9905c44
Merge pull request #28327 from CodaFi/do-it-for-the-datagrams
swift-ci Nov 18, 2019
b96ae61
Update README.md
MrNightcall Dec 6, 2018
1945ee2
[ConstraintSystem] NFC: Fix type variable printing in connected compo…
xedin Nov 18, 2019
42da7ca
Merge pull request #28330 from CodaFi/vim-and-vigour
swift-ci Nov 18, 2019
a05f787
Merge pull request #28323 from slavapestov/stop-using-shared-timer
slavapestov Nov 18, 2019
57a2092
Merge pull request #28332 from CodaFi/indexed-dependent-types
swift-ci Nov 18, 2019
85a5df0
Merge pull request #28292 from DougGregor/apply-fixes-without-root
DougGregor Nov 18, 2019
1457a6a
Merge pull request #19876 from Kaiede/attributeBaseAlignment
CodaFi Nov 18, 2019
fb581fd
Add a regression test for https://bugs.swift.org/browse/SR-10612
slavapestov Nov 18, 2019
e0abe20
Merge pull request #28335 from CodaFi/minimum-viable-products
swift-ci Nov 18, 2019
598042b
Merge pull request #21550 from valeriyvan/patch-1
swift-ci Nov 18, 2019
66a1a02
Merge pull request #28333 from gottesmm/pr-90c324ff2d094bdf07f4d9f0f7…
gottesmm Nov 18, 2019
8de96f3
[silopt] Add a new SerializeSIL utility pipeline.
gottesmm Nov 18, 2019
45dc751
Merge pull request #28336 from xedin/restore-cs-debug-output
xedin Nov 19, 2019
a9a0bba
[Diagnostics] Don't apply the single parameter tuple splat fix if the
hborla Nov 19, 2019
e06fb4b
[Constraint system] Capture "salvage" result in a self-contained data…
DougGregor Nov 19, 2019
f507e7b
Merge pull request #13012 from anandabits/generics-manifesto
swift-ci Nov 19, 2019
dc0cbd3
Merge pull request #28282 from rintaro/ide-completion-rdar57194358
rintaro Nov 19, 2019
477983b
Merge pull request #28342 from gottesmm/pr-5f43d6cc0d2709b4c3590eeaff…
swift-ci Nov 19, 2019
eef34ad
Merge pull request #28343 from hborla/restrain-param-tuple-splat-fix
hborla Nov 19, 2019
0f3ed3f
Fix the crash-in-user-code test for macos and Linux
tapthaker Nov 19, 2019
a5d8f7f
Merge pull request #28294 from hamishknight/disqualified
CodaFi Nov 19, 2019
6096b43
Merge pull request #28345 from DougGregor/cs-fewer-root-exprs
DougGregor Nov 19, 2019
82aff15
Merge pull request #28340 from slavapestov/another-regression-test
slavapestov Nov 19, 2019
15eea66
Make the crash-in-user-code check agnostic for macOS, Linux and Windows
tapthaker Nov 19, 2019
7c145fb
Merge pull request #27951 from zoecarver/key-path-default-arg
slavapestov Nov 19, 2019
ab062fc
[Runtime] Handle dynamic casting to NSObject via error bridging.
DougGregor Nov 19, 2019
fe60ace
[CMake] Add missing dep when building with BUILD_SHARED_LIBS
davezarzycki Nov 19, 2019
946f12a
Merge pull request #28354 from davezarzycki/pr28354
swift-ci Nov 19, 2019
c0c247e
Merge pull request #28334 from edymtt/llvm-project-in-standalone-over…
edymtt Nov 19, 2019
18570c7
build: remove `SWIFT_NEED_EXPLICIT_LIBDISPATCH` (NFC)
compnerd Nov 18, 2019
7659121
[Runtime] Add test for casting an Error type to NSObject
DougGregor Nov 19, 2019
edd281c
Remove test of dynamic replacement and dlclose
aschwaighofer Nov 19, 2019
7b33254
Merge pull request #28226 from nathawes/assertion-fixes
Nov 19, 2019
6d46eb1
Merge pull request #28353 from DougGregor/error-bridge-to-nsobject
swift-ci Nov 19, 2019
dca3056
Merge pull request #28284 from tapthaker/SR-11765-pretty-stack-trace
Nov 19, 2019
8a9f535
Merge pull request #28338 from compnerd/explictly-explicit
compnerd Nov 19, 2019
fae3590
Merge pull request #28356 from aschwaighofer/remove_dlclose_test
aschwaighofer Nov 19, 2019
b886600
Revert "[FrontEnd] Pretty stack trace indicating running user code"
shahmishal Nov 19, 2019
ff80326
Merge pull request #28373 from apple/revert-28284-SR-11765-pretty-sta…
shahmishal Nov 19, 2019
b956a74
Merge tag 'swift-DEVELOPMENT-SNAPSHOT-2019-11-20-a' into tensorflow-m…
dan-zheng Nov 21, 2019
95c369b
Fix merge conflicts.
dan-zheng Nov 22, 2019
af2cf1e
Merge branch 'tensorflow' of github.com:apple/swift into tensorflow-m…
dan-zheng Nov 23, 2019
f9956c1
[AutoDiff] Fix control flow AD when OME is skipped. (#28459)
dan-zheng Nov 23, 2019
28be9cb
[TF] Re-enable `-enable-ownership-stripping-after-serialization`. (#2…
dan-zheng Nov 24, 2019
c6b30e2
Update update-checkout-config.json
Nov 26, 2019
80ab3aa
Merge branch 'tensorflow' of github.com:apple/swift into tensorflow-m…
dan-zheng Dec 3, 2019
e8d9d0f
Merge branch 'tensorflow' of github.com:apple/swift into tensorflow-m…
dan-zheng Dec 3, 2019
e24030c
Merge branch 'tensorflow' of github.com:apple/swift into tensorflow-m…
dan-zheng Dec 3, 2019
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
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#==============================================================================#
cscope.files
cscope.out
.vimrc
tags

#==============================================================================#
# Directories to ignore (do not add trailing '/'s, they skip symlinks).
Expand Down
38 changes: 12 additions & 26 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -476,31 +476,17 @@ if(CMAKE_C_COMPILER_ID MATCHES Clang)
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Werror=gnu>)
endif()

if(CMAKE_SYSTEM_NAME STREQUAL Darwin OR
EXISTS "${SWIFT_PATH_TO_LIBDISPATCH_SOURCE}")
set(SWIFT_BUILD_SYNTAXPARSERLIB_default TRUE)
set(SWIFT_BUILD_SOURCEKIT_default TRUE)
else()
set(SWIFT_BUILD_SYNTAXPARSERLIB_default FALSE)
set(SWIFT_BUILD_SOURCEKIT_default FALSE)
endif()
option(SWIFT_BUILD_SYNTAXPARSERLIB
"Build the Swift Syntax Parser library"
${SWIFT_BUILD_SYNTAXPARSERLIB_default})
option(SWIFT_BUILD_ONLY_SYNTAXPARSERLIB
"Only build the Swift Syntax Parser library" FALSE)
option(SWIFT_BUILD_SOURCEKIT
"Build SourceKit"
${SWIFT_BUILD_SOURCEKIT_default})
option(SWIFT_ENABLE_SOURCEKIT_TESTS
"Enable running SourceKit tests"
${SWIFT_BUILD_SOURCEKIT_default})

if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND
(SWIFT_BUILD_SYNTAXPARSERLIB OR SWIFT_BUILD_SOURCEKIT))
set(SWIFT_NEED_EXPLICIT_LIBDISPATCH TRUE)
else()
set(SWIFT_NEED_EXPLICIT_LIBDISPATCH FALSE)
option(SWIFT_BUILD_SYNTAXPARSERLIB "Build the Swift Syntax Parser library" TRUE)
option(SWIFT_BUILD_ONLY_SYNTAXPARSERLIB "Only build the Swift Syntax Parser library" FALSE)
option(SWIFT_BUILD_SOURCEKIT "Build SourceKit" TRUE)
option(SWIFT_ENABLE_SOURCEKIT_TESTS "Enable running SourceKit tests" ${SWIFT_BUILD_SOURCEKIT})

if(SWIFT_BUILD_SYNTAXPARSERLIB OR SWIFT_BUILD_SOURCEKIT)
if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
if(NOT EXISTS "${SWIFT_PATH_TO_LIBDISPATCH_SOURCE}")
message(SEND_ERROR "SyntaxParserLib and SourceKit require libdispatch on non-Darwin hosts. Please specify SWIFT_PATH_TO_LIBDISPATCH_SOURCE")
endif()
endif()
endif()

#
Expand Down Expand Up @@ -982,7 +968,7 @@ if (LLVM_ENABLE_DOXYGEN)
message(STATUS "Doxygen: enabled")
endif()

if(SWIFT_NEED_EXPLICIT_LIBDISPATCH)
if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
if(CMAKE_C_COMPILER_ID STREQUAL Clang AND
CMAKE_C_COMPILER_VERSION VERSION_GREATER 3.8
OR LLVM_USE_SANITIZER)
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ There are two primary build systems to use: Xcode and Ninja. The Xcode build
system allows you to work in Xcode, but Ninja is a bit faster and supports
more environments.

First, make sure that you're in the swift directory:

cd swift

To build using Ninja, run:

swift/utils/build-script --enable-tensorflow --release-debuginfo
Expand All @@ -127,7 +131,7 @@ the entire project in debug, you can run:
For documentation of all available arguments, as well as additional usage
information, see the inline help:

swift/utils/build-script -h
utils/build-script -h

### Customize TensorFlow support

Expand Down
94 changes: 93 additions & 1 deletion benchmark/single-source/NSStringConversion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import TestsUtils
import Foundation

fileprivate var test:NSString = ""
fileprivate var mutableTest = ""

public let NSStringConversion = [
BenchmarkInfo(name: "NSStringConversion",
Expand Down Expand Up @@ -65,7 +66,44 @@ public let NSStringConversion = [
BenchmarkInfo(name: "NSStringConversion.Rebridge.LongUTF8",
runFunction: run_NSStringConversion_longNonASCII_rebridge,
tags: [.validation, .api, .String, .bridging],
setUpFunction: { test = NSString(cString: "Thë qüick bröwn föx jumps over the lazy dög", encoding: String.Encoding.utf8.rawValue)! })]
setUpFunction: { test = NSString(cString: "Thë qüick bröwn föx jumps over the lazy dög", encoding: String.Encoding.utf8.rawValue)! } ),
BenchmarkInfo(name: "NSStringConversion.MutableCopy.UTF8",
runFunction: run_NSStringConversion_nonASCIIMutable,
tags: [.validation, .api, .String, .bridging],
setUpFunction: { mutableTest = "tëst" }),
BenchmarkInfo(name: "NSStringConversion.MutableCopy.Medium",
runFunction: run_NSStringConversion_mediumMutable,
tags: [.validation, .api, .String, .bridging],
setUpFunction: { mutableTest = "aaaaaaaaaaaaaaa" } ),
BenchmarkInfo(name: "NSStringConversion.MutableCopy.Long",
runFunction: run_NSStringConversion_longMutable,
tags: [.validation, .api, .String, .bridging],
setUpFunction: { mutableTest = "The quick brown fox jumps over the lazy dog" } ),
BenchmarkInfo(name: "NSStringConversion.MutableCopy.LongUTF8",
runFunction: run_NSStringConversion_longNonASCIIMutable,
tags: [.validation, .api, .String, .bridging],
setUpFunction: { mutableTest = "Thë qüick bröwn föx jumps over the lazy dög" } ),
BenchmarkInfo(name: "NSStringConversion.MutableCopy.Rebridge",
runFunction: run_NSStringConversion_rebridgeMutable,
tags: [.validation, .api, .String, .bridging],
setUpFunction: { mutableTest = "test" }),
BenchmarkInfo(name: "NSStringConversion.MutableCopy.Rebridge.UTF8",
runFunction: run_NSStringConversion_nonASCII_rebridgeMutable,
tags: [.validation, .api, .String, .bridging],
setUpFunction: { mutableTest = "tëst" }),
BenchmarkInfo(name: "NSStringConversion.MutableCopy.Rebridge.Medium",
runFunction: run_NSStringConversion_medium_rebridgeMutable,
tags: [.validation, .api, .String, .bridging],
setUpFunction: { mutableTest = "aaaaaaaaaaaaaaa" } ),
BenchmarkInfo(name: "NSStringConversion.MutableCopy.Rebridge.Long",
runFunction: run_NSStringConversion_long_rebridgeMutable,
tags: [.validation, .api, .String, .bridging],
setUpFunction: { mutableTest = "The quick brown fox jumps over the lazy dog" } ),
BenchmarkInfo(name: "NSStringConversion.MutableCopy.Rebridge.LongUTF8",
runFunction: run_NSStringConversion_longNonASCII_rebridgeMutable,
tags: [.validation, .api, .String, .bridging],
setUpFunction: { mutableTest = "Thë qüick bröwn föx jumps over the lazy dög" } )
]

public func run_NSStringConversion(_ N: Int) {
let test:NSString = NSString(cString: "test", encoding: String.Encoding.ascii.rawValue)!
Expand Down Expand Up @@ -103,6 +141,31 @@ public func run_NSStringConversion_longNonASCII(_ N: Int) {
innerLoop(test, N, 300)
}

fileprivate func innerMutableLoop(_ str: String, _ N: Int, _ scale: Int = 5000) {
for _ in 1...N * scale {
let copy = (str as NSString).mutableCopy() as! NSMutableString
for char in (identity(copy) as String).utf8 {
blackHole(char)
}
}
}

public func run_NSStringConversion_nonASCIIMutable(_ N: Int) {
innerMutableLoop(mutableTest, N, 500)
}

public func run_NSStringConversion_mediumMutable(_ N: Int) {
innerMutableLoop(mutableTest, N, 500)
}

public func run_NSStringConversion_longMutable(_ N: Int) {
innerMutableLoop(mutableTest, N, 250)
}

public func run_NSStringConversion_longNonASCIIMutable(_ N: Int) {
innerMutableLoop(mutableTest, N, 150)
}

fileprivate func innerRebridge(_ str: NSString, _ N: Int, _ scale: Int = 5000) {
for _ in 1...N * scale {
let bridged = identity(str) as String
Expand Down Expand Up @@ -135,4 +198,33 @@ public func run_NSStringConversion_longNonASCII_rebridge(_ N: Int) {
innerRebridge(test, N, 300)
}

fileprivate func innerMutableRebridge(_ str: String, _ N: Int, _ scale: Int = 5000) {
for _ in 1...N * scale {
let copy = (str as NSString).mutableCopy() as! NSMutableString
let bridged = identity(copy) as String
blackHole(bridged)
blackHole(bridged as NSString)
}
}

public func run_NSStringConversion_rebridgeMutable(_ N: Int) {
innerMutableRebridge(mutableTest, N, 1000)
}

public func run_NSStringConversion_nonASCII_rebridgeMutable(_ N: Int) {
innerMutableRebridge(mutableTest, N, 500)
}

public func run_NSStringConversion_medium_rebridgeMutable(_ N: Int) {
innerMutableRebridge(mutableTest, N, 500)
}

public func run_NSStringConversion_long_rebridgeMutable(_ N: Int) {
innerMutableRebridge(mutableTest, N, 500)
}

public func run_NSStringConversion_longNonASCII_rebridgeMutable(_ N: Int) {
innerMutableRebridge(mutableTest, N, 300)
}

#endif
2 changes: 1 addition & 1 deletion cmake/modules/StandaloneOverlay.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ endif()


list(APPEND CMAKE_MODULE_PATH
"${SWIFT_SOURCE_ROOT}/llvm/cmake/modules"
"${SWIFT_SOURCE_ROOT}/llvm-project/llvm/cmake/modules"
"${PROJECT_SOURCE_DIR}/../../../../cmake/modules"
"${PROJECT_SOURCE_DIR}/../../../cmake/modules")

Expand Down
8 changes: 2 additions & 6 deletions cmake/modules/SwiftSource.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,8 @@ function(_compile_swift_files
NOT "${SWIFTFILE_MODULE_NAME}" STREQUAL "DifferentiationUnittest")
list(APPEND swift_flags "-enable-library-evolution")
endif()
# FIXME(SR-11336): `-enable-ownership-stripping-after-serialization` for
# swiftCore causes test/AutoDiff/array.swift to crash, related to
# Array and key paths.
# Disabling the flag for swiftCore requires disabling the flag for all
# other standard library modules.
# list(APPEND swift_flags "-Xfrontend" "-enable-ownership-stripping-after-serialization")
# SWIFT_ENABLE_TENSORFLOW END
list(APPEND swift_flags "-Xfrontend" "-enable-ownership-stripping-after-serialization")
endif()

if(SWIFT_STDLIB_USE_NONATOMIC_RC)
Expand Down
20 changes: 18 additions & 2 deletions docs/Android.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ To follow along with this guide, you'll need:
turn on remote debugging by following the official instructions:
https://developer.chrome.com/devtools/docs/remote-debugging.

## Part One: "Hello, world" on Android
## "Hello, world" on Android

### 1. Downloading (or building) the Swift Android stdlib dependencies

Expand Down Expand Up @@ -189,7 +189,7 @@ Hello, Android

Congratulations! You've just run your first Swift program on Android.

## Part Two: Running the Swift test suite hosted on an Android device
## Running the Swift test suite hosted on an Android device

When running the test suite, build products are automatically pushed to your
device. As in part one, you'll need to connect your Android device via USB:
Expand All @@ -213,3 +213,19 @@ $ utils/build-script \
--android-icu-i18n ~/libicu-android/armeabi-v7a/libicui18n.so \
--android-icu-i18n-include ~/libicu-android/armeabi-v7a/icu/source/i18n/
```

## Build Android Toolchain

This toolchain will generate the .so and .swiftmodule files of the Swift standard library and Foundation framework for the Android environment, armv7 architecture. Those files are needed when building any Swift library to be included in an application for Android.

To build the toolchain run:

```
$ utils/android/build-toolchain
```

It will be built on:

```
path/to/swift-source/swift-android-toolchain
```
Loading