Skip to content

Merge 2020-06-30 into tensorflow #32623

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 271 commits into from
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
271 commits
Select commit Hold shift + click to select a range
c8ead6d
[TypeChecker] NFC: Remove obsolete `getObjectLiteralParameterType`
xedin Jun 19, 2020
02bc2c6
[TypeChecker] NFC: Adjust object literal test-case for iOS
xedin Jun 22, 2020
c690ac8
[AutoDiff] Improve invalid stored property projection diagnostics.
dan-zheng Jun 22, 2020
b9476ce
build: correct handling of argument generation
compnerd Jun 19, 2020
8c8360b
Move 'MetadataSections' from 'ImageInspectionElf.h' to SwiftShims
augusto2112 Jun 22, 2020
4cd754e
[DepScan] NFC: Remove check for OnoneSupport
hamishknight Jun 22, 2020
6d0c34c
[Runtime] Add entry point to compare conformance descriptors.
nate-chandler Jun 19, 2020
272c466
Update master to build with Xcode 12 beta
shahmishal Jun 20, 2020
da242bd
[SDK] Remove obsolete overlay code
lorentey Jun 22, 2020
279c723
[README] Update the Xcode version.
shahmishal Jun 22, 2020
3820568
[android] Set linux-androideabi (Android ARM 32 bits) as ABI stable d…
drodriguez Jun 22, 2020
0717ba4
Merge pull request #32497 from dan-zheng/autodiff-tangent-stored-prop…
dan-zheng Jun 22, 2020
79c38b2
Merge pull request #32501 from hamishknight/scan-none
hamishknight Jun 23, 2020
3530f8e
[ownership] Split ownership lowering in the pass pipeline for non-tra…
gottesmm Jun 23, 2020
236237f
Merge pull request #32471 from nate-chandler/runtime/add-swift_compar…
swift-ci Jun 23, 2020
a5f0069
[metadata prespecialization] Check conformances.
nate-chandler Jun 20, 2020
05de54f
ExplicitModules: use key names conforming to Swift naming convention …
nkcsgexi Jun 23, 2020
15dfa83
Merge pull request #32495 from eeckstein/cmo-improvements
eeckstein Jun 23, 2020
da23205
Merge pull request #32504 from drodriguez/android-eabi-as-abi-stable
compnerd Jun 23, 2020
451fd09
Merge pull request #32499 from compnerd/no-more-arguing
compnerd Jun 23, 2020
f77e794
test: make `binary_sub` python 2, 3 compatible
compnerd Jun 22, 2020
24003e6
utils: update `remote-run` for Python 3 compatibility
compnerd Jun 22, 2020
f9951b3
Merge pull request #32507 from nkcsgexi/swift-name-convention
nkcsgexi Jun 23, 2020
52d11fd
Remove comment in TestData.swift
shahmishal Jun 23, 2020
ace20bd
Remove comment in TestData.swift
shahmishal Jun 23, 2020
63235bb
Remove unsupported iosmac from attractive_objc_reilience.swift
shahmishal Jun 23, 2020
f32c311
Remove unsupported iosmac from nscoding.swift
shahmishal Jun 23, 2020
0da060e
Merge pull request #32447 from martinboehme/option-set-initializer-list
CodaFi Jun 23, 2020
890f670
Merge pull request #32481 from xedin/rework-object-literal-typechecking
xedin Jun 23, 2020
493a4a2
Merge pull request #32502 from apple/update-master-xcode-12-beta
shahmishal Jun 23, 2020
f71f620
[CMake] Make swift-frontend the primary Swift binary.
DougGregor Oct 31, 2019
ade21a3
Fix build of benchmark suite and Linux test
DougGregor Nov 1, 2019
6c0d957
[Driver] Execute the frontend when invoked via swift-frontend.
DougGregor Nov 1, 2019
bd95fcb
[Test] Fix a test for Windows
DougGregor Jun 16, 2020
bb2d6c5
Install swift-frontend executable
DougGregor Jun 16, 2020
480c631
Linux-specific fixes for the swift-frontend rename.
DougGregor Jun 19, 2020
49dfa8f
[Frontend rename] Fix another Linux test
DougGregor Jun 19, 2020
9c4a189
Disable test on Windows where we don't have symlinks
DougGregor Jun 19, 2020
436d475
[SourceKit/Indentation] Fix over-indent after function declaration wi…
Jun 23, 2020
c5006dd
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 23, 2020
0d6af22
[AutoDiff] Fix tensorflow branch test.
ainu-bot Jun 23, 2020
d49e4a2
[Build] Don't install swift-frontend twice, incorrectly
DougGregor Jun 23, 2020
5b6918f
Merge pull request #32505 from gottesmm/pr-12b4fd6015e37d9a95ea6a81da…
gottesmm Jun 23, 2020
5e5e797
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 23, 2020
b1f29d9
Command line routines for OpenBSD.
3405691582 Jun 23, 2020
571f222
Revert "Revert "[LTO] Build lld on Windows CI""
kateinoigakukun Jun 19, 2020
1725ece
Merge pull request #28003 from DougGregor/swift-frontend-rename
DougGregor Jun 24, 2020
220390f
tests: fix check line in dso_handle test
eeckstein Jun 24, 2020
f50b666
[CodeCompletion] Fallback to nominal member completion after trailing…
rintaro Jun 23, 2020
55517d2
[CMake] Fix unified builds after #28003
davezarzycki Jun 24, 2020
e6fe8d4
Driver: update old doc comments from when clang++ was the linker driver
finagolfin Jun 24, 2020
a0702ce
Merge pull request #32520 from eeckstein/fix-test
eeckstein Jun 24, 2020
00d5839
Merge pull request #32522 from davezarzycki/pr32522
davezarzycki Jun 24, 2020
46c4c2b
Merge pull request #30733 from allevato/rt-inline-ns
compnerd Jun 24, 2020
240ae1b
test: make `make-unreadable` Python 3 friendly
compnerd Jun 23, 2020
081324d
Merge pull request #32521 from rintaro/ide-completion-rdar64650782
rintaro Jun 24, 2020
7bddcb1
Merge pull request #32444 from rintaro/ast-casestmt-parent
rintaro Jun 24, 2020
de8107e
Merge pull request #32482 from nate-chandler/generic-metadata-prespec…
nate-chandler Jun 24, 2020
ecd5041
Merge pull request #32509 from compnerd/binary-is-not-string
compnerd Jun 24, 2020
8af013b
Merge pull request #32510 from compnerd/action-at-a-distance
compnerd Jun 24, 2020
db09c27
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 24, 2020
e45fa71
AST: isEquivalentToExtendedContext() should consider use patterns of …
nkcsgexi Jun 24, 2020
2d250bb
Merge pull request #32395 from 3405691582/Test_OpenBSD_NumericParsing
CodaFi Jun 24, 2020
07226d7
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 24, 2020
603ca95
Merge pull request #32513 from nathawes/fix-indentation-after-incompl…
Jun 24, 2020
6cf5d09
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 24, 2020
096777e
[cxx-interop] Do not give the default C++ constructor's return statem…
zoecarver Jun 24, 2020
21b9fc3
[CodeCompletion] Assume non-'isSimpleDidSet' in code completion
rintaro Jun 24, 2020
5549619
[IRGen] Remove an unused DenseMap
DougGregor Jun 24, 2020
6c3a738
[AutoDiff] Remove upstreamed tensorflow branch tests.
ainu-bot Jun 24, 2020
beb75a1
[Test] Disabled remote_run on prespecialized-metadata/struct-multi-co…
nate-chandler Jun 24, 2020
c825d79
Merge pull request #32514 from 3405691582/OpenBSD_CommandLine
CodaFi Jun 24, 2020
d739a6f
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 24, 2020
c4f4ce1
[ConstraintSystem] Record substitutions from opened unbound generic t…
xedin Jun 24, 2020
2a01fc9
[Function builders] Run syntactic diagnostics for function bodies.
DougGregor Jun 24, 2020
bb2bd64
[NFC] Run clang-format over CommandLine.cpp.
3405691582 Jun 24, 2020
570eaf3
[AutoDiff] Fix false `Differentiable` derived conformances warning. (…
dan-zheng Jun 25, 2020
fa259b3
Merge pull request #32535 from DougGregor/garbage-collect-densemap
swift-ci Jun 25, 2020
30e671a
Merge pull request #32528 from rintaro/ide-completion-rdar64699286
rintaro Jun 25, 2020
233ce8e
Make numThreads variable unsigned and remove unneeded numThreads para…
Jun 24, 2020
d96d2db
Merge pull request #32536 from nate-chandler/test/disable-remote-run-…
swift-ci Jun 25, 2020
f8f2e56
[build-presets] Enable stdlib assertions on Linux installations (#32511)
vedantk Jun 25, 2020
0a53c62
Merge pull request #32529 from nkcsgexi/64538537
nkcsgexi Jun 25, 2020
e38d103
Merge pull request #32539 from 3405691582/ClangFormat_CommandLine
swift-ci Jun 25, 2020
46f9f21
[Frontend] Add --version as a frontend flag.
DougGregor Jun 25, 2020
b9d1d6a
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
6a44443
[Diag] Refactor DiagnosticEngine to use `YAML` files - Reopen (#32483)
HassanElDesouky Jun 25, 2020
a69a47e
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
c312143
Merge pull request #32543 from DougGregor/frontend-version-flag
swift-ci Jun 25, 2020
326cb6a
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
f5cf881
Merge pull request #32538 from DougGregor/function-builder-syntactic-…
DougGregor Jun 25, 2020
a509895
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
ee5abde
Merge pull request #32541 from CodaFi/signum-chi
CodaFi Jun 25, 2020
24ed94b
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
c106b2d
Merge pull request #32525 from compnerd/cant-read-this
compnerd Jun 25, 2020
4f8fda7
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
46c2073
[AutoDiff] Start supporting loadable types with address-only tangents…
dan-zheng Jun 25, 2020
62389c3
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
9855496
Add benchmarks for Substring.dropFirst(_:) and dropLast(_:) (#32473)
natecook1000 Jun 25, 2020
411c6ec
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
5dad41f
[NFC] Modernize Casts
CodaFi Jun 23, 2020
18acadb
test: unixise the paths on the test (NFC)
compnerd Jun 24, 2020
87d2cdc
Sema: silence some uncovered warnings on MSVC (NFC)
compnerd Jun 25, 2020
12db528
test: remove stray comment markers (NFC)
compnerd Jun 24, 2020
e49a5b7
Switch to benchmark remove* instead of drop*
natecook1000 Jun 25, 2020
19afe00
update-checkout-config.json: adjust for tensorflow merge
dan-zheng Jun 25, 2020
0ea0b8e
[ConstraintSystem] Adjust recording of "fixed" requirements to avoid …
xedin Jun 25, 2020
6aeca31
Merge pull request #32547 from compnerd/slash-and-test
compnerd Jun 25, 2020
01737f2
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
af853fd
Correct WASI Command Line Parsing Error Handling Paths
CodaFi Jun 23, 2020
f8ac4ce
Merge remote-tracking branch 'github/tensorflow' into HEAD
dan-zheng Jun 25, 2020
3faad6a
Correct Windows Command Line Parsing Error Handling Paths
CodaFi Jun 23, 2020
f7ef6d4
[Diagnostics] Augment conformance failure to with a note about enum w…
xedin Jun 25, 2020
866835d
[Diagnostics] NFC: Add a TODO as a reminder about current diagnostic …
xedin Jun 25, 2020
9044aa0
[AST] ParamDecl::isNonEphemeral() not to evaluate InterfaceTypeRequest
rintaro Jun 25, 2020
87e9349
[Test] Add a test case for https://bugs.swift.org/browse/SR-12728
rintaro Jun 25, 2020
43fd786
[SR-5688] [Sema] Handle key path component base type on MemberAccessO…
LucianoPAlmeida Jun 25, 2020
4423139
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 25, 2020
6bdfa09
Sema: Replace getAccessor() calls in SPI attribute checking
slavapestov Jun 25, 2020
496ff68
AutoDiff: Replace calls of AbstractStorageDecl::getAccessor()
slavapestov Jun 25, 2020
6e5958f
AutoDiff: Simplify closure discriminator assignment
slavapestov Jun 25, 2020
3aa3325
Sema: Sink DiscriminatorFinder down into DebuggerTestingTransform
slavapestov Jun 25, 2020
0b02d61
Sema: Simplify applyTypeToClosureExpr()
slavapestov Jun 25, 2020
34cebb4
Sema: SanitizeExpr doesn't need a ConstraintSystem
slavapestov Jun 25, 2020
b7cea44
Sema: Move code completion entry points to TypeCheckCodeCompletion.cpp
slavapestov Jun 25, 2020
bbfcc62
Merge pull request #32127 from compnerd/python-is-dead-long-live-python
shahmishal Jun 26, 2020
13a8a48
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 26, 2020
568cd85
test: xfail Driver/sanitize_recover.swift
nkcsgexi Jun 26, 2020
5be1fb0
Merge pull request #32563 from nkcsgexi/64784401
nkcsgexi Jun 26, 2020
68def6e
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 26, 2020
1d20ddc
Merge pull request #32553 from rintaro/ast-isnonephemeral-interfacetype
rintaro Jun 26, 2020
672dd69
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 26, 2020
34292da
Merge pull request #32559 from slavapestov/remove-get-accessors-calls
slavapestov Jun 26, 2020
7f8c679
Merge pull request #32560 from slavapestov/clean-up-closure-discrimin…
slavapestov Jun 26, 2020
4887350
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 26, 2020
bd7d5ec
CMake: Remove workaround fixed in CMake 2.8.4
AndrewSB Jun 26, 2020
b663c9b
Merge pull request #32561 from slavapestov/code-completion-entry-points
slavapestov Jun 26, 2020
b507894
Sema: Fix a few places where we built AST that had to go through Sani…
slavapestov Jun 26, 2020
0232cd0
Sema: Sink SanitizeExpr down into TypeCheckCodeCompletion.cpp
slavapestov Jun 25, 2020
3ffff1a
Merge pull request #32549 from compnerd/comments-not-welcome
compnerd Jun 26, 2020
0a48a39
Merge pull request #32462 from kateinoigakukun/revert-32454
compnerd Jun 26, 2020
7976162
Merge pull request #32567 from slavapestov/sink-sanitize-expr
slavapestov Jun 26, 2020
bf1b1b5
Merge remote-tracking branch 'github/master' into HEAD
dan-zheng Jun 26, 2020
87df996
Add fast string interpolation for metatypes (#32113)
airspeedswift Jun 26, 2020
eade392
test: xfail validation-test/StdlibUnittest/RaceTest.swift
nkcsgexi Jun 26, 2020
5edaae3
test: xfail validation-test/Sanitizers/tsan-type-metadata.swift
nkcsgexi Jun 26, 2020
fa53ba8
test: xfail validation-test/Sanitizers/witness_table_lookup.swift
nkcsgexi Jun 26, 2020
6d27611
Merge pull request #32569 from nkcsgexi/64809498
nkcsgexi Jun 26, 2020
af52886
Merge pull request #32516 from CodaFi/NPE-NBD
CodaFi Jun 26, 2020
a1f0155
[SourceKit/CursorInfo] Still print implicit decls in cursorinfo to ha…
Jun 26, 2020
a3a20d9
Use a shorter example string. (#32557)
amartini51 Jun 26, 2020
336d63f
Merge pull request #32551 from natecook1000/nate/substring_removefirst
swift-ci Jun 26, 2020
bbec1eb
[SourceKit] Enable ASTContext caching in other completion-like requests
rintaro Jun 26, 2020
ba2e04b
[ownership] Move the stdlib ome point to before global opt.
gottesmm Jun 26, 2020
fb99e84
ExplicitModuleLoader: use a temporary source manager for loading the …
nkcsgexi Jun 26, 2020
a536947
ModuleLoader: refactor computePrebuiltModulePath to facilitate depend…
nkcsgexi Jun 26, 2020
ebccb92
Merge pull request #32548 from compnerd/covering
compnerd Jun 26, 2020
a8d44bc
Merge pull request #32558 from xedin/fix-req-conformace-assessment
xedin Jun 26, 2020
5300dc2
Merge pull request #32534 from zoecarver/fix/cxx/constructor-return-stmt
swift-ci Jun 26, 2020
6a24820
AutoDiff: Don't synthesize TangentVector typealias alongside the Tang…
slavapestov Jun 26, 2020
61640fe
Sema: Remove allowDerived parameter of computeAbstractTypeWitness(), …
slavapestov Jun 26, 2020
dfbb958
Sema: Try to derive type witnesses before running inference
slavapestov Jun 26, 2020
c4b3727
Merge pull request #32577 from nkcsgexi/new-source-manager-for-module…
nkcsgexi Jun 27, 2020
0816167
Merge pull request #32564 from nkcsgexi/scanner-report-prebuilt-module
nkcsgexi Jun 27, 2020
86cffd7
Merge pull request #32578 from slavapestov/derive-type-witness-before…
slavapestov Jun 27, 2020
f245717
[SourceKit/CodeFormat] Fix multi-line array literal elements not inde…
Jun 27, 2020
2e6609c
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 27, 2020
65af826
test: xfail Constraints/operator.swift
nkcsgexi Jun 27, 2020
4ef82a8
Merge pull request #32586 from nkcsgexi/64844584
nkcsgexi Jun 27, 2020
1715021
[TypeChecker] NFC: Clarify flaky diagnostic XFAIL
xedin Jun 27, 2020
713c836
Merge pull request #32587 from xedin/rdar-64844584
xedin Jun 28, 2020
e25934f
Merge pull request #32451 from stephencelis/patch-1
swift-ci Jun 28, 2020
8a39f82
Merge pull request #32565 from AndrewSB/fixed-in-cmake-2.8.4
compnerd Jun 28, 2020
2a200b2
SourceKit: silence as `-Wmisleading-indent` warning (NFCI)
compnerd Jun 26, 2020
02c3973
[TF] Fix derived conformances.
ainu-bot Jun 29, 2020
bbbe67e
Merge pull request #32576 from compnerd/brace-yourself
compnerd Jun 29, 2020
364981f
SwiftPrivateThreadExtras: correct misuse of API
compnerd Jun 22, 2020
34cbb30
test: unixise some paths in diagnostics tests (NFCI)
compnerd Jun 29, 2020
7895a4e
test: unixise path for Parse.source_locs (NFCI)
compnerd Jun 29, 2020
ebf01c9
Merge pull request #32593 from compnerd/dangling
compnerd Jun 29, 2020
a817409
test: make stdlib.NumericParsing Python 3 friendly
compnerd Jun 25, 2020
0893f08
Merge pull request #32574 from gottesmm/pr-0a4cbd7fcfed51ea527c5cce60…
gottesmm Jun 29, 2020
8307c6a
[SourceKit] Report 'key.reusingastcontext' in completion like requests
rintaro Jun 29, 2020
3d6bc24
Merge pull request #32595 from compnerd/path-parsing
compnerd Jun 29, 2020
d2b68c7
Merge pull request #32594 from compnerd/diagnostic-medicine
compnerd Jun 29, 2020
6d63d95
test: attempt to quote python interpreter path
compnerd Jun 29, 2020
63d9acd
[Sema] Report public use of local SPIs by the exportability checker
xymus May 14, 2020
c2452b7
Merge pull request #32598 from compnerd/numerically-correct
compnerd Jun 29, 2020
1c58abf
Merge pull request #32575 from nathawes/fix-no-quickhelp-for-shorthan…
Jun 29, 2020
79bdd43
Merge pull request #32493 from augusto2112/elf-shim-metadata-sections
compnerd Jun 29, 2020
caab4f4
[CSGen] Handle incorrect patterns (e.g. referencing unknown types)
xedin Jun 29, 2020
bf9347d
[TF] Fix derived conformances.
dan-zheng Jun 29, 2020
9adea2a
[TF] Garden derived conformances.
dan-zheng Jun 29, 2020
c90a369
[TF] Fix derived conformances.
dan-zheng Jun 29, 2020
637bac6
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 29, 2020
9ee4ebf
[Dependency Scanner] Use `pragma clang module import` in the hack fil…
artemcm Jun 28, 2020
4d3bd22
Merge pull request #32436 from kastiglione/dl/build-script-prioritize…
JDevlieghere Jun 29, 2020
6d0a7be
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 29, 2020
33336df
[SouceKit] Make "ASTContext reusing" optional
rintaro Jun 29, 2020
ff99d65
Merge pull request #32582 from nathawes/array-literal-sub-expr-indent…
Jun 29, 2020
859f430
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 29, 2020
ea5a31d
[NFC] Add a test for constraint generation failures in a pattern binding
hborla Jun 29, 2020
ff2cc35
ASTMangler: Tiny cleanup
slavapestov Jun 27, 2020
bddcda6
[Frontend] Factor out setupDependencyTrackerIfNeeded
hamishknight Jun 29, 2020
7bc5440
[Frontend] Internalize createDependencyTracker
hamishknight Jun 29, 2020
12ae72c
[Frontend] Move mangling stats to end of pipeline
hamishknight Jun 29, 2020
958bf8e
[Frontend] Move dependency verifier to end of pipeline
hamishknight Jun 29, 2020
4ca6732
[Frontend] NFC: Move dumpAPI up a bit
hamishknight Jun 29, 2020
553dadd
[Frontend] dumpAPI at the end of the pipeline
hamishknight Jun 29, 2020
440cd0b
[docs] Add documentation describing external resources. (#32584)
varungandhi-apple Jun 29, 2020
20990f4
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 29, 2020
7c87e1a
Merge pull request #32085 from xymus/spi-isnt-internal-for-real
xymus Jun 29, 2020
de3390f
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 29, 2020
73c99ac
[test] Reinstate CoreGraphics↔︎NSValue bridging tests on iOS/watchOS/…
lorentey Jun 23, 2020
65da7f6
Merge pull request #32602 from xedin/rdar-64844584
xedin Jun 30, 2020
a6e8066
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 30, 2020
b3fb762
[test] Don’t import UIKit on iOS 10.3
lorentey Jun 30, 2020
6fcfbaa
Merge pull request #32523 from buttaface/linker
CodaFi Jun 30, 2020
e50ad67
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 30, 2020
c579759
[stdlib] Use a direct initializer for typed to raw pointer conversion
lorentey Jun 30, 2020
31a7859
ASTMangler: Fix assertion when mangling invalid identifiers
slavapestov Jun 29, 2020
f8720d5
Sema: Force synthesized conformance to Differentiable in EmittedMembe…
slavapestov Jun 25, 2020
c1b0c93
Sema: Use request evaluator caching for EmittedMembersRequest
slavapestov Jun 25, 2020
055b3a8
Sema: Deterministically order declarations in EmittedMemberRequest
slavapestov Jun 27, 2020
89b2f27
AST: Mark implicit destructor as synthesized to fix non-deterministic…
slavapestov Jun 27, 2020
63bf06d
Add regression test for https://bugs.swift.org/browse/SR-11030 / rdar…
slavapestov Jun 30, 2020
422fd41
Sema: Fix assertion when synthesizing Codable with an IUO stored prop…
slavapestov Jun 29, 2020
9964215
Update status to indicate feature gate
rxwei Jun 30, 2020
4b2fecf
Merge pull request #32611 from slavapestov/codable-iuo-assert
slavapestov Jun 30, 2020
bc29e53
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 30, 2020
faa06bf
Merge pull request #32581 from slavapestov/cached-emitted-members-req…
slavapestov Jun 30, 2020
ffb59e7
Merge pull request #32610 from slavapestov/regression-test-sr11030
slavapestov Jun 30, 2020
e75562e
Merge pull request #32613 from apple/rxwei-patch-2
swift-ci Jun 30, 2020
ad69927
Merge pull request #32612 from lorentey/unsightlyBitCast
lorentey Jun 30, 2020
4cf4515
Merge pull request #32515 from lorentey/UIKit-NSValueBridging-tests
lorentey Jun 30, 2020
621b3b4
[Diag] Create frontend flags for localization and write tests (#32568)
HassanElDesouky Jun 30, 2020
621cecb
Revert "[Diag] Create frontend flags for localization and write tests…
davezarzycki Jun 30, 2020
6bc0385
Merge pull request #32590 from artemcm/HackingWithCModules
artemcm Jun 30, 2020
c213f19
Merge pull request #32607 from hborla/function-builder-csgen-failure
hborla Jun 30, 2020
1d09970
Merge pull request #32573 from compnerd/aspirational-quotes
compnerd Jun 30, 2020
4f27eee
Merge pull request #32615 from davezarzycki/pr32615
swift-ci Jun 30, 2020
a69ebc5
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 30, 2020
5c27465
Merge pull request #32601 from hamishknight/not-yet-over-and-out
hamishknight Jun 30, 2020
30ccb52
Merge pull request #32572 from rintaro/sourcekit-fast-completionliker…
rintaro Jun 30, 2020
e41c6e6
[TF] Fix `EuclideanDifferentiable` derived conformances.
dan-zheng Jun 30, 2020
377f9d0
Merge remote-tracking branch 'github/master' into HEAD
ainu-bot Jun 30, 2020
8cced04
update-checkout-config.json: adjust for tensorflow merge
texasmichelle Jun 30, 2020
2b8c2cf
[AutoDiff] Fix unexpected non-differentiable property access error. (…
dan-zheng Jul 1, 2020
c2cb48d
[TF] Fix `TensorArrayProtocol` and `TensorGroup` derived conformances.
dan-zheng Jul 2, 2020
2a45cd2
[AutoDiff] Fix unexpected non-differentiable property access error.
dan-zheng Jul 2, 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
  •  
  •  
  •  
10 changes: 0 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -506,16 +506,6 @@ if(NOT SWIFT_LIPO)
find_toolchain_tool(SWIFT_LIPO "${SWIFT_DARWIN_XCRUN_TOOLCHAIN}" lipo)
endif()

# Reset CMAKE_SYSTEM_PROCESSOR if not cross-compiling.
# CMake refuses to use `uname -m` on OS X
# http://public.kitware.com/Bug/view.php?id=10326
if(NOT CMAKE_CROSSCOMPILING AND CMAKE_SYSTEM_PROCESSOR STREQUAL "i386")
execute_process(
COMMAND "uname" "-m"
OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()

get_filename_component(SWIFT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} REALPATH)
set(SWIFT_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
set(SWIFT_CMAKE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Please make sure you use Python 2.x. Python 3.x is not supported currently.

#### macOS

To build for macOS, you need [Xcode 11.4](https://developer.apple.com/xcode/resources/).
To build for macOS, you need [Xcode 12 beta](https://developer.apple.com/xcode/resources/).
The required version of Xcode changes frequently, and is often a beta release.
Check this document for the current required version.

Expand Down
5 changes: 4 additions & 1 deletion benchmark/cmake/modules/AddSwiftBenchmarkSuite.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,11 @@ function (swift_benchmark_compile_archopts)
"-m${triple_platform}-version-min=${ver}"
"-lobjc"
"-L${SWIFT_LIBRARY_PATH}/${BENCH_COMPILE_ARCHOPTS_PLATFORM}"
"-L${sdk}/usr/lib/swift"
"-Xlinker" "-rpath"
"-Xlinker" "${SWIFT_LINK_RPATH}"
"-Xlinker" "-rpath"
"-Xlinker" "/usr/lib/swift"
${bench_library_objects}
${bench_driver_objects}
${ld64_add_ast_path_opts}
Expand Down Expand Up @@ -694,7 +697,7 @@ function(swift_benchmark_compile)
cmake_parse_arguments(SWIFT_BENCHMARK_COMPILE "" "PLATFORM" "" ${ARGN})

if(NOT SWIFT_BENCHMARK_BUILT_STANDALONE)
set(stdlib_dependencies "swift")
set(stdlib_dependencies "swift-frontend")
foreach(stdlib_dependency ${UNIVERSAL_LIBRARY_NAMES_${SWIFT_BENCHMARK_COMPILE_PLATFORM}})
string(FIND "${stdlib_dependency}" "Unittest" find_output)
if("${find_output}" STREQUAL "-1")
Expand Down
22 changes: 22 additions & 0 deletions benchmark/single-source/Substring.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public let SubstringTest = [
BenchmarkInfo(name: "EqualSubstringString", runFunction: run_EqualSubstringString, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "EqualSubstringSubstring", runFunction: run_EqualSubstringSubstring, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "EqualSubstringSubstringGenericEquatable", runFunction: run_EqualSubstringSubstringGenericEquatable, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "SubstringRemoveFirst1", runFunction: run_SubstringRemoveFirst1, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "SubstringRemoveLast1", runFunction: run_SubstringRemoveLast1, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "LessSubstringSubstring", runFunction: run_LessSubstringSubstring, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "LessSubstringSubstringGenericComparable", runFunction: run_LessSubstringSubstringGenericComparable, tags: [.validation, .api, .String]),
BenchmarkInfo(name: "StringFromLongWholeSubstring", runFunction: run_StringFromLongWholeSubstring, tags: [.validation, .api, .String]),
Expand All @@ -34,6 +36,8 @@ let longWide = "fὢasὢodὢijὢadὢolὢsjὢalὢsdὢjlὢasὢdfὢijὢ
let (s1, ss1) = equivalentWithDistinctBuffers()
let (s2, ss2) = equivalentWithDistinctBuffers()

let quiteLong = String(repeating: "0", count: 10_000)[...]

@inline(never)
public func run_SubstringFromLongString(_ N: Int) {
var s = longWide
Expand Down Expand Up @@ -126,6 +130,24 @@ public func run_EqualSubstringSubstringGenericEquatable(_ N: Int) {
}
}

@inline(never)
public func run_SubstringRemoveFirst1(_ N: Int) {
for _ in 1...N {
var s = quiteLong
s.removeFirst(1)
blackHole(s.first == "0")
}
}

@inline(never)
public func run_SubstringRemoveLast1(_ N: Int) {
for _ in 1...N {
var s = quiteLong
s.removeLast(1)
blackHole(s.first == "0")
}
}

/*
func checkEqual<T, U>(_ x: T, _ y: U)
where T : StringProtocol, U : StringProtocol {
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function(_swift_gyb_target_sources target scope)

add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${generated}
COMMAND
$<TARGET_FILE:Python2::Interpreter> ${SWIFT_SOURCE_DIR}/utils/gyb -D CMAKE_SIZEOF_VOID_P=${CMAKE_SIZEOF_VOID_P} ${SWIFT_GYB_FLAGS} -o ${CMAKE_CURRENT_BINARY_DIR}/${generated}.tmp ${absolute}
$<TARGET_FILE:Python3::Interpreter> ${SWIFT_SOURCE_DIR}/utils/gyb -D CMAKE_SIZEOF_VOID_P=${CMAKE_SIZEOF_VOID_P} ${SWIFT_GYB_FLAGS} -o ${CMAKE_CURRENT_BINARY_DIR}/${generated}.tmp ${absolute}
COMMAND
${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/${generated}.tmp ${CMAKE_CURRENT_BINARY_DIR}/${generated}
COMMAND
Expand Down
8 changes: 5 additions & 3 deletions cmake/modules/AddSwiftUnittests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ function(add_swift_unittest test_dirname)
_ENABLE_EXTENDED_ALIGNED_STORAGE)
endif()

if(SWIFT_USE_LINKER)
set_property(TARGET "${test_dirname}" APPEND_STRING PROPERTY
LINK_FLAGS " -fuse-ld=${SWIFT_USE_LINKER}")
if(NOT SWIFT_COMPILER_IS_MSVC_LIKE)
if(SWIFT_USE_LINKER)
target_link_options(${test_dirname} PRIVATE
-fuse-ld=${SWIFT_USE_LINKER}$<$<STREQUAL:${CMAKE_HOST_SYSTEM_NAME},Windows>:.exe>)
endif()
endif()

if(SWIFT_ANALYZE_CODE_COVERAGE)
Expand Down
4 changes: 1 addition & 3 deletions cmake/modules/SwiftHandleGybSources.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
include(SwiftAddCustomCommandTarget)
include(SwiftSetIfArchBitness)

find_package(Python2 COMPONENTS Interpreter REQUIRED)

# Create a target to process single gyb source with the 'gyb' tool.
#
# handle_gyb_source_single(
Expand Down Expand Up @@ -60,7 +58,7 @@ function(handle_gyb_source_single dependency_out_var_name)
COMMAND
"${CMAKE_COMMAND}" -E make_directory "${dir}"
COMMAND
"$<TARGET_FILE:Python2::Interpreter>" "${gyb_tool}" ${SWIFT_GYB_FLAGS} ${GYB_SINGLE_FLAGS} -o "${GYB_SINGLE_OUTPUT}.tmp" "${GYB_SINGLE_SOURCE}"
"$<TARGET_FILE:Python3::Interpreter>" "${gyb_tool}" ${SWIFT_GYB_FLAGS} ${GYB_SINGLE_FLAGS} -o "${GYB_SINGLE_OUTPUT}.tmp" "${GYB_SINGLE_SOURCE}"
COMMAND
"${CMAKE_COMMAND}" -E copy_if_different "${GYB_SINGLE_OUTPUT}.tmp" "${GYB_SINGLE_OUTPUT}"
COMMAND
Expand Down
5 changes: 2 additions & 3 deletions docs/Android.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,9 @@ $ NDK_PATH="path/to/android-ndk21"
$ build/Ninja-ReleaseAssert/swift-linux-x86_64/bin/swiftc \ # The Swift compiler built in the previous step.
# The location of the tools used to build Android binaries
-tools-directory ${NDK_PATH}/toolchains/llvm/prebuilt/linux-x86_64/bin/ \
-target armv7a-none-linux-androideabi \ # Targeting android-armv7.
-sdk ${NDK_PATH}/platforms/android-21/arch-arm \ # Use the same architecture and API version as you used to build the stdlib in the previous step.
-Xclang-linker -nostdlib++ \ # Don't link libc++, and supply the path to libgcc.
-target armv7a-none-linux-androideabi \ # Targeting android-armv7, and supply the path to libgcc.
-L ${NDK_PATH}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/armv7-a \
-sdk ${NDK_PATH}/platforms/android-21/arch-arm \ # Use the same architecture and API version as you used to build the stdlib in the previous step.
hello.swift
```

Expand Down
2 changes: 1 addition & 1 deletion docs/DifferentiableProgramming.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Differentiable Programming Manifesto

* Authors: [Richard Wei], [Dan Zheng], [Marc Rasi], [Bart Chrzaszcz]
* Status: Partially implemented
* Status: Partially implemented on master, feature gated under `import _Differentiation`

## Table of contents

Expand Down
176 changes: 176 additions & 0 deletions docs/ExternalResources.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
# External Resources

The official [Swift blog](https://swift.org/blog/) has a lot of useful
information, such as [how runtime reflection works][mirror-post] and how the
compiler's [new diagnostic architecture][diagnostic-arch-post] is structured.

[mirror-post]: https://swift.org/blog/how-mirror-works/
[diagnostic-arch-post]: https://swift.org/blog/new-diagnostic-arch-overview/

This page lists some external resources apart from the Swift blog which may be
helpful for people interested in contributing to Swift. The resources are listed
in reverse-chronological order and organized by topic.

<!--
Some resources don't fall cleanly into one topic bucket or another; in such a
case we break the tie arbitrarily.
-->

<!--
The textual descriptions should be written in a way that makes it clear
which topics are discussed, and what a potential contributor to Swift
will gain from it. This is usually different from the talk's abstract.
-->

## Contributing Guides and Tips

- [Steps for first PR and asking questions][] by Varun Gandhi (Swift forum
comment, Dec 2019).
- [Contributing to Swift for the First Time][] by Robert Pieta (talk, Jun 2019):
This talk describes Robert's experience contributing to
`swift-corelibs-foundation` and later `swift`, providing a step-by-step guide
for new contributors to get their feet wet.
- [Contributing to Swift compiler][] by Yusuke Kita (lightning talk, Apr 2019).
- Contributing to Swift ([Part 1][Contributing to Swift - Part 1],
[Part 2][Contributing to Swift - Part 2]) by Suyash Srijan (blog post series,
Dec 2018).
- [Setting up a compile-edit-test cycle][] by Robert Widmann (Swift forum
comment, May 2018)
- [Becoming an Effective Contributor to Swift][] by Harlan Haskins and Robert
Widmann (talk, Apr 2018): Covers the following topics:
- The organization of different projects part of the Swift monorepo.
- How to set up an environment for building Swift.
- Common utilities and compiler flags for debugging different stages.
- Common build configurations.
- Tips and tricks for testing: early exiting, filtering tests,
testing Swift and Objective-C together, using `PrettyStackTrace`.
- A live demo fixing a crash:
- Copying program arguments into Xcode for debugging.
- Using `dump()` for print debugging.
- [Getting Started with Swift Compiler Development][] by Brian Gesiak (blog post
series, Aug 2017 - Jun 2018)
- [Contributing to Open Source Swift][] by Jesse Squires (talk, Mar 2016):
Covers the following topics:
- The overall compiler pipeline.
- The organization of different projects part of the Swift monorepo,
including some "difficulty levels" for different projects.
- Tips for contributing effectively.

[Steps for first PR and asking questions]:
https://forums.swift.org/t/getting-started-with-swift-compiler-development/31502/2
[Contributing to Swift for the First Time]: https://youtu.be/51j7TrFNKiA
[Contributing to Swift compiler]: https://youtu.be/HAXJsgYniqE
[Contributing to Swift - Part 1]: https://medium.com/kinandcartacreated/contributing-to-swift-part-1-ea19108a2a54
[Contributing to Swift - Part 2]:
https://medium.com/kinandcartacreated/contributing-to-swift-part-2-efebcf7b6c93
[Setting up a compile-edit-test cycle]: https://forums.swift.org/t/need-a-workflow-advice/12536/14
[Becoming an Effective Contributor to Swift]: https://youtu.be/oGJKsp-pZPk
[Getting Started with Swift Compiler Development]: https://modocache.io/getting-started-with-swift-development
[Contributing to Open Source Swift]: https://youtu.be/Ysa2n8ZX-YY

## AST

- [The secret life of types in Swift][] by Slava Pestov (blog post, Jul 2016):
This blog post describes the representation of Swift types inside the compiler.
It covers many important concepts: `TypeLoc` vs `TypeRepr` vs `Type`, the
representation of generic types, substitutions and more.
<!-- TODO: It would be great to integrate some of the descriptions
in this blog post into the compiler's own doc comments. -->

[The secret life of types in Swift]: https://medium.com/@slavapestov/the-secret-life-of-types-in-swift-ff83c3c000a5

### libSyntax and SwiftSyntax

- [An overview of SwiftSyntax][] by Luciano Almeida (blog post, Apr 2019):
This post provides a quick tour of libSyntax and SwiftSyntax.
- [Improving Swift Tools with libSyntax][] by Harlan Haskins (talk, Sep 2017):
This talk describes the design of libSyntax/SwiftSyntax and discusses some
useful APIs. It also describes how to write a simple Swift formatter using the
library.

[An overview of SwiftSyntax]: https://medium.com/@lucianoalmeida1/an-overview-of-swiftsyntax-cf1ae6d53494
[Improving Swift Tools with libSyntax]: https://youtu.be/5ivuYGxW_3M

## Type checking and inference

- [Implementing Swift Generics][] by Slava Pestov and John McCall (talk, Oct 2017):
This talk dives into how Swift's compilation scheme for generics balances
(a) modularity and separate compilation with (b) the ability to pass unboxed
values and (c) the flexibility to optionally generate fully specialized code.
It covers the following type-checking related topics: type-checking generic
contexts, requirement paths and canonicalized generic signatures.
- [A Type System from Scratch][] by Robert Widmann (talk, Apr 2017):
This talk covers several topics related to type-checking and inference in Swift:
- Understanding sequent notation which can be used to represent typing judgments.
- An overview of how bidirectional type-checking works.
- Examples of checking and inferring types for some Swift expressions.
- Interaction complexity of different type system features with type inference.
- Type variables and constraint graphs.

[Implementing Swift Generics]: https://youtu.be/ctS8FzqcRug
[A Type System from Scratch]: https://youtu.be/IbjoA5xVUq0

## SIL

- [Ownership SSA][] by Michael Gottesman (talk, Oct 2019): This talk describes
efficiency and correctness challenges with automatic reference counting and
how including ownership semantics in the compiler's intermediate representation
helps tackles those challenges.
- [How to talk to your kids about SIL type use][] by Slava Pestov (blog post,
Jul 2016): This blog post describes several important SIL concepts: object
vs address types, AST -> SIL type lowering, trivial vs loadable vs
address-only SIL types, abstraction patterns and more.
- [Swift's High-Level IR][] by Joe Groff and Chris Lattner (talk, Oct 2015):
This talk describes the goals and design of SIL. It covers the following:
- Some commonly used SIL instructions and how they are motivated by language
features.
- Some early passes in SIL processing, such as mandatory inlining,
box-to-stack promotion and definite initialization.
- Why SIL is useful as an intermediate representation between the AST and
LLVM IR.

[Ownership SSA]: https://youtu.be/qy3iZPHZ88o
[How to talk to your kids about SIL type use]: https://medium.com/@slavapestov/how-to-talk-to-your-kids-about-sil-type-use-6b45f7595f43
[Swift's High-Level IR]: https://youtu.be/Ntj8ab-5cvE

## Code generation, runtime and ABI

- [How Swift Achieved Dynamic Linking Where Rust Couldn't][] by Alexis
Beingessner (blog post, Nov 2019): This blog post describes Swift's approach
for compiling polymorphic functions, contrasting it with the strategy used by
Rust and C++ (monomorphization). It covers the following topics: ABI stability,
library evolution, resilient type layout, reabstraction, materialization,
ownership and calling conventions.
- [arm64e: An ABI for Pointer Authentication][] by Ahmed Bougacha and John McCall
(talk, Oct 2019): This talk does not mention Swift specifically, but provides a
good background on the arm64e ABI and pointer authentication. The ABI affects
parts of IR generation, the Swift runtime, and small parts of the standard
library using unsafe code.
- [Exploiting The Swift ABI][] by Robert Widmann (talk, July 2019):
This talk is a whirlwind tour of different aspects of the Swift ABI and runtime
touching the following topics: reflection, type layout, ABI entrypoints,
Swift's compilation model for generics and archetypes, witness tables,
relative references, context descriptors and more.
- [Efficiently Implementing Runtime Metadata][] by Joe Groff and Doug Gregor
(talk, Oct 2018): This talk covers the use of relative references in Swift's
runtime metadata structures. After describing some important metrics impacted
by the use of dynamic libraries, it goes through the different kinds of
relative references used in the Swift runtime and the resulting tooling and
performance benefits.
- [Coroutine Representations and ABIs in LLVM][] by John McCall (talk, Oct 2018):
This talk describes several points in the design space for coroutines, diving
into important implementation tradeoffs. It explains how different language
features can be built on top of coroutines and how they impose different
design requirements. It also contrasts C++20's coroutines feature with
Swift's accessors, describing the differences between the two as implemented
in LLVM.
- [Implementing Swift Generics][]: This talk is mentioned in the type-checking
section. It also covers the following code generation and runtime topics:
value witness tables, type metadata, abstraction patterns, reabstraction,
reabstraction thunks and protocol witness tables.

[How Swift Achieved Dynamic Linking Where Rust Couldn't]: https://gankra.github.io/blah/swift-abi/
[arm64e: An ABI for Pointer Authentication]: https://youtu.be/C1nZvpEBfYA
[Exploiting The Swift ABI]: https://youtu.be/0rHG_Pa86oA
[Efficiently Implementing Runtime Metadata]: https://youtu.be/G3bpj-4tWVU
[Coroutine Representations and ABIs in LLVM]: https://youtu.be/wyAbV8AM9PM
10 changes: 4 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,10 @@ They are preserved mostly for historical interest.

## External Resources

The official [Swift blog](https://swift.org/blog/) contains a lot of useful
information, such as how library evolution works and how the compiler's new
diagnostic architecture is structured, helping us provide more precise
diagnostics.

TODO: Add a new document ExternalResources.md.
External resources are listed in [docs/ExternalResources.md](ExternalResources.md).
These cover a variety of topics,
such as the design of different aspects of the Swift compiler and runtime
and contributing to the project more effectively.

## Uncategorized

Expand Down
5 changes: 5 additions & 0 deletions include/swift/AST/ASTContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,11 @@ class ASTContext final {
/// for the target platform.
AvailabilityContext getCompareTypeContextDescriptorsAvailability();

/// Get the runtime availability of the
/// swift_compareProtocolConformanceDescriptors entry point for the target
/// platform.
AvailabilityContext getCompareProtocolConformanceDescriptorsAvailability();

/// Get the runtime availability of features introduced in the Swift 5.2
/// compiler for the target platform.
AvailabilityContext getSwift52Availability();
Expand Down
3 changes: 3 additions & 0 deletions include/swift/AST/ASTDemangler.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@
#include "llvm/ADT/StringRef.h"
#include "swift/AST/Types.h"
#include "swift/Demangling/Demangler.h"
#include "swift/Demangling/NamespaceMacros.h"
#include "swift/Demangling/TypeDecoder.h"

namespace swift {

class TypeDecl;

namespace Demangle {
SWIFT_BEGIN_INLINE_NAMESPACE

Type getTypeForMangling(ASTContext &ctx,
llvm::StringRef mangling);
Expand Down Expand Up @@ -178,6 +180,7 @@ class ASTBuilder {
Demangle::Node::Kind kind);
};

SWIFT_END_INLINE_NAMESPACE
} // namespace Demangle

} // namespace swift
Expand Down
Loading