Skip to content

Manual merge 2020/10/08 #1959

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 102 commits into from
Oct 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
4cfadfa
[NFC] Documented IRGenFunction::IndirectReturn.
nate-chandler Sep 29, 2020
607772a
[Runtime] Stubbed entry points for task de/alloc.
nate-chandler Sep 25, 2020
59bb1fc
[Concurrency] Pass "async" into SILFunctionTypes.
nate-chandler Oct 1, 2020
e36011d
[Type checker] Delay the diagnosis of missing witnesses further.
DougGregor Oct 1, 2020
fe4a8bb
[Clang importer] Allow both sync and async imports with the same name.
DougGregor Oct 3, 2020
50f8705
Handle conformance with multiple protocol requirements with the same …
DougGregor Oct 3, 2020
591e6e8
[Concurrency] Only infer @asyncHandler for witnesses within actor cla…
DougGregor Oct 3, 2020
bb066b6
[Concurrency] Make actor-isolated protocol witnesses an error.
DougGregor Oct 3, 2020
6ab3572
Fixed docs link to Rust's demand-driven compilation guide
regexident Oct 5, 2020
8ffaf79
[build] Support installing swift-driver without swiftpm
porglezomp Oct 5, 2020
e7761cf
[DebuggingTheCompiler] Document a few flags for dumping llvm-ir.
gottesmm Oct 5, 2020
7372705
[AST] Fix linker errors with the parser-only build
akyrtzi Oct 5, 2020
00eb2e9
Frontend: add a frontend flag to disable building module from textual…
nkcsgexi Oct 5, 2020
20995ae
[build] Add FILES_MATCHING to CMakeLists.txt
porglezomp Oct 5, 2020
82e9935
Correct the Serialization of Embedded Swift Dependencies
CodaFi Oct 6, 2020
d7cd605
Adjust the Registration of the Pseudo-Job for External Incremental De…
CodaFi Oct 6, 2020
a77f059
Turn on Cross-Module Incremental Dependencies!
CodaFi Oct 6, 2020
ee88152
[Concurrency] First steps towards async CC.
nate-chandler Oct 2, 2020
147f9e6
Generalize test
DougGregor Oct 6, 2020
f26bce3
[Sema] NFC: Move `ContextualTypePurpose` to constraint system header
xedin Oct 6, 2020
588d42c
[Sema] NFC: Move `FreeTypeVariableBinding` to constraint system header
xedin Oct 6, 2020
515f0db
Merge pull request #34141 from nate-chandler/concurrency/irgen/signature
nate-chandler Oct 6, 2020
56bab66
Merge pull request #34187 from akyrtzi/parser-lib-build-fix-link-errors
akyrtzi Oct 6, 2020
2d09bc3
Merge pull request #34181 from regexident/fix-docs-link-to-rust
CodaFi Oct 6, 2020
141b032
Enable --build-sil-debugging-stdlib for all of swift/stdlib/public (#…
meg-gupta Oct 6, 2020
6651f6e
Merge pull request #34190 from porglezomp-misc/only-files-matching-pa…
shahmishal Oct 6, 2020
d695acf
Document 'standalone' Parameters
CodaFi Oct 6, 2020
d2fc2c1
[IRGen] Silenced unused variable warning.
nate-chandler Oct 5, 2020
15d90d8
[IRGen] Pull async polymorphic params from explosion.
nate-chandler Oct 5, 2020
1a106d3
[NFC] Tweaked name of NecessaryBindings factory method.
nate-chandler Oct 5, 2020
72051ef
[Concurrency] Async CC for protocol extension methods.
nate-chandler Oct 5, 2020
b6fb435
Invert an error return to match the documentation
CodaFi Oct 6, 2020
b90cab6
[NFC] Made indexing on AsyncContextLayout private.
nate-chandler Oct 6, 2020
f6bfd41
[NFC] Use TypeInfo for indirect return storage.
nate-chandler Oct 6, 2020
d5d65b0
[NFC] Removed unused method.
nate-chandler Oct 6, 2020
05b223a
[Sema] Switch `typeCheckExpression` to use `ContextualTypeInfo`
xedin Oct 6, 2020
d5652fa
[test] Don’t check for new behavior on older systems that don’t inclu…
lorentey Oct 6, 2020
d01e1dd
Sema: Fix type of MemberRefExpr for a VarDecl with DynamicSelfType
slavapestov Oct 5, 2020
750735b
ASTDumper: Add a couple of hacks to avoid crashes in -dump-parse
slavapestov Oct 6, 2020
0e27645
AST: The body of a GuardStmt is always a BraceStmt
slavapestov Oct 6, 2020
faae25a
AST: The body of a CaseStmt is always a BraceStmt
slavapestov Oct 6, 2020
da1c5c9
Parse: Fix repeat/while error recovery path
slavapestov Oct 6, 2020
6d599ea
Merge pull request #34185 from gottesmm/pr-2fab41ee8cd610aa53f2b2f7af…
gottesmm Oct 6, 2020
68d7278
[ConstraintSystem] NFC: Move implementation of `isReadOnlyKeyPathComp…
xedin Oct 6, 2020
00d8e3c
XFAIL Cross-Module Build Tests On Windows
CodaFi Oct 6, 2020
f94be56
[Sema] Decouple ConstraintSystem and TypeChecker headers
xedin Oct 6, 2020
0a21c4d
Fix another use-after-free in SILCombine (#34168)
meg-gupta Oct 6, 2020
e60a68e
Generalize test harder
DougGregor Oct 6, 2020
5c3814e
[OSSignpost] Update apinotes to allow usage of os_signpost ABI entryp…
Oct 6, 2020
e5b6333
Merge pull request #34186 from porglezomp-misc/only-install-swift-driver
nkcsgexi Oct 6, 2020
0b648fb
[TypeChecker] NFC: Include constraint system into TypeChecker header
xedin Oct 6, 2020
eba39cf
[Concurrency] Corrected ordering of indirect results.
nate-chandler Oct 6, 2020
7d74a86
[Concurrency] Async CC supports witness methods.
nate-chandler Oct 5, 2020
0a5df67
[NFC] Deduped async entry point emission code.
nate-chandler Oct 6, 2020
6e0d894
[NFC] Deduped async call emission code.
nate-chandler Oct 6, 2020
4c298db
[NFC] Extracted async call emission loading.
nate-chandler Oct 6, 2020
d21ff5c
Merge pull request #34171 from DougGregor/concurrency-objc-compatibility
DougGregor Oct 7, 2020
2546c2d
Fetch associated types abstractly when fetching an associated conform…
rjmccall Oct 7, 2020
1af9977
Merge pull request #34200 from nate-chandler/concurrency/irgen/protoc…
nate-chandler Oct 7, 2020
b22458e
Merge pull request #34189 from nkcsgexi/disable-building-interface
nkcsgexi Oct 7, 2020
8ebfd9a
Merge pull request #34204 from slavapestov/astscope-related-refactorings
slavapestov Oct 7, 2020
245ace3
Merge pull request #34196 from CodaFi/crossbeam
CodaFi Oct 7, 2020
840f1a4
Merge pull request #34203 from apple/data-test-availability
eeckstein Oct 7, 2020
4b6bc60
NFC: fix typo in build_swift/versions.py
MaxDesiatov Oct 5, 2020
3708e7b
WinSDK: extract Security submodule with winscard.h
egorzhdan Oct 7, 2020
6918525
Merge pull request #34184 from apple/maxd/versions-typo
swift-ci Oct 7, 2020
15bf047
Merge pull request #34195 from slavapestov/dynamic-self-var-csapply
slavapestov Oct 7, 2020
171e0e2
Merge pull request #34213 from rjmccall/abstract-assoc-type-for-confo…
rjmccall Oct 7, 2020
824ecdd
ASTScope: Fix AttachedPropertyWrapperScope source range
slavapestov Oct 6, 2020
66873b9
ASTScope: Fix SubscriptDeclScope source range
slavapestov Oct 6, 2020
2e67c13
ASTScope: Rework ConditionalClauseScopes
slavapestov Oct 2, 2020
dac68ca
ASTScope: Fix TopLevelCodeScope source range
slavapestov Oct 2, 2020
4252659
ASTScope: Add a getCharSourceRangeOfScope() method to ASTScopeImpl
slavapestov Oct 2, 2020
b8cccb1
ASTScope: Fix SourceFileScope source range
slavapestov Oct 6, 2020
771fd6e
ASTScope: Redo assertions to look at CharSourceRanges
slavapestov Oct 2, 2020
e52413f
ASTScope: Use CharSourceRanges for lookup
slavapestov Oct 2, 2020
996100c
ASTScope: Remove old SourceRange machinery
slavapestov Oct 6, 2020
fbb97b9
AST: Fix an assertion in UnqualifiedLookup to use CharSourceRanges
slavapestov Oct 6, 2020
e59069f
Add a couple of crashers that are now fixed
slavapestov Oct 6, 2020
38b1da3
Patch Out Use-Of-Stack-After-Free In Cross Module Dependencies
CodaFi Oct 7, 2020
d70f35d
Merge pull request #34218 from CodaFi/pseudo-lithis
eeckstein Oct 7, 2020
b0f0587
Keep a Cache of Externally-Dependent Jobs
CodaFi Oct 7, 2020
2e0fb76
ModuleInterface: rephrase remark message when acquiring lock file failed
nkcsgexi Oct 7, 2020
b33b4f0
[Test] Ensure linked dylib is copied to devices.
nate-chandler Oct 7, 2020
4175a01
Merge pull request #34206 from xedin/decouple-cs-tc-headers
xedin Oct 7, 2020
e5737bc
[NFC] Insert IncrementalJobAction into the Action Hierarchy
CodaFi Oct 7, 2020
8fbcdf3
[NFC] Use IncrementalJobAction to Supersede getFirstSwiftPrimaryInput()
CodaFi Oct 7, 2020
112e45d
Merge pull request #34205 from slavapestov/astscope-source-range-fixes
slavapestov Oct 7, 2020
1e6ea76
Merge pull request #34208 from guitard0g/sp_entrypoint
Oct 7, 2020
d32b935
Merge pull request #34211 from nate-chandler/concurrency/irgen/protoc…
nate-chandler Oct 7, 2020
7b64c07
Merge pull request #34221 from nate-chandler/concurrency/irgen/test-c…
nate-chandler Oct 7, 2020
ee280e6
Merge pull request #34224 from CodaFi/radical-incrementalism
swift-ci Oct 7, 2020
b51e212
Merge pull request #34215 from egorzhdan/winsdk-security
compnerd Oct 7, 2020
d3c6d36
Fixup Use-of-Temporary
CodaFi Oct 7, 2020
ca4ce56
Merge pull request #34220 from nkcsgexi/70055223
nkcsgexi Oct 8, 2020
164bd08
Merge pull request #34219 from CodaFi/negative-externalities
CodaFi Oct 8, 2020
7df8b70
Merge pull request #34207 from slavapestov/astscope-char-source-ranges
slavapestov Oct 8, 2020
d748879
Merge remote-tracking branch 'apple/main' into katei/manual-merge-202…
kateinoigakukun Oct 10, 2020
9f40f22
[WASM] Remove lib/swift/clang symlink workaround
kateinoigakukun Oct 10, 2020
6d1b42e
[WASM] Use clang-resource-dir-symlink instead of clang-builtin-headers
kateinoigakukun Oct 10, 2020
ad055a4
Attempt to fix Ubuntu builds
MaxDesiatov Oct 10, 2020
63a7ae3
[WASM} Install llvm-10 toolchain instead of llvm-6
kateinoigakukun Oct 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Free disk space
run: |
df -h
sudo apt-get purge libgcc-9-dev gcc-9 libstdc++-9-dev
sudo apt-get purge libgcc-9-dev gcc-9 libstdc++-9-dev clang-6.0 llvm-6.0
sudo swapoff -a
sudo rm -f /swapfile
sudo rm -rf /opt/hostedtoolcache
Expand Down
4 changes: 2 additions & 2 deletions apinotes/os.apinotes
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ Functions:
SwiftPrivate: true
NullabilityOfRet: O
- Name: _os_signpost_emit_with_name_impl
Availability: nonswift
AvailabilityMsg: 'Use os_signpost'
SwiftPrivate: true
NullabilityOfRet: O
16 changes: 16 additions & 0 deletions docs/DebuggingTheCompiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ benefit of all Swift developers.
- [Debugging the Compiler using advanced LLDB Breakpoints](#debugging-the-compiler-using-advanced-lldb-breakpoints)
- [Debugging the Compiler using LLDB Scripts](#debugging-the-compiler-using-lldb-scripts)
- [Custom LLDB Commands](#custom-lldb-commands)
- [Debugging at LLVM Level](#debugging-at-llvm-level)
- [Options for Dumping LLVM IR](#options-for-dumping-llvm-ir)
- [Bisecting Compiler Errors](#bisecting-compiler-errors)
- [Bisecting on SIL optimizer pass counts to identify optimizer bugs](#bisecting-on-sil-optimizer-pass-counts-to-identify-optimizer-bugs)
- [Using git-bisect in the presence of branch forwarding/feature branches](#using-git-bisect-in-the-presence-of-branch-forwardingfeature-branches)
Expand Down Expand Up @@ -537,6 +539,20 @@ to define custom commands using just other lldb commands. For example,

(lldb) command alias cs sequence p/x $rax; stepi

## Debugging at LLVM Level

### Options for Dumping LLVM IR

Similar to SIL, one can configure LLVM to dump the llvm-ir at various points in
the pipeline. Here is a quick summary of the various options:

* ``-Xllvm -print-before=$PASS_ID``: Print the LLVM IR before a specified LLVM pass runs.
* ``-Xllvm -print-before-all``: Print the LLVM IR before each pass runs.
* ``-Xllvm -print-after-all``: Print the LLVM IR after each pass runs.
* ``-Xllvm -filter-print-funcs=$FUNC_NAME_1,$FUNC_NAME_2,...,$FUNC_NAME_N``:
When printing IR for functions for print-[before|after]-all options, Only
print the IR for functions whose name is in this comma separated list.

## Bisecting Compiler Errors

### Bisecting on SIL optimizer pass counts to identify optimizer bugs
Expand Down
2 changes: 1 addition & 1 deletion docs/RequestEvaluator.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ The request-evaluator is relatively new to the Swift compiler, having been intro
* Port higher-level queries (e.g., those that come from SourceKit) over to the request-evaluator, so we can see the dependencies of a given SourceKit request for testing and performance tuning.

## Prior art
Rust's compiler went through a similar transformation to support [demand-driven compilation](https://rust-lang-nursery.github.io/rustc-guide/query.html). We should learn from their experience!
Rust's compiler went through a similar transformation to support [demand-driven compilation](https://rustc-dev-guide.rust-lang.org/query.html). We should learn from their experience!
3 changes: 3 additions & 0 deletions include/swift/AST/ASTContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,9 @@ class ASTContext final {
/// generic metadata.
AvailabilityContext getIntermodulePrespecializedGenericMetadataAvailability();

/// Get the runtime availability of support for concurrency.
AvailabilityContext getConcurrencyAvailability();

/// Get the runtime availability of features introduced in the Swift 5.2
/// compiler for the target platform.
AvailabilityContext getSwift52Availability();
Expand Down
Loading