Skip to content

Resolve conflicts with master #1582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1,499 commits into from
Sep 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1499 commits
Select commit Hold shift + click to select a range
ecc5b90
[CodeCompletion] Do not erase dot for code completion key path option…
LucianoPAlmeida Sep 1, 2020
ab2152b
Merge pull request #33734 from slavapestov/conditional-destroy-root-c…
slavapestov Sep 1, 2020
22d1090
Merge remote-tracking branch 'origin/master' into master-rebranch
swift-ci Sep 1, 2020
b7d5ea8
Merge pull request #33740 from xedin/rdar-68094328
xedin Sep 1, 2020
643d81f
Merge remote-tracking branch 'origin/master' into master-rebranch
swift-ci Sep 1, 2020
aee9578
[Sema] Make getDisallowedOriginKind usable to other source files
xymus Aug 27, 2020
3acbd09
[Sema] Type-check exportability of SPI conformances
xymus Aug 18, 2020
679aaca
Merge pull request #33601 from LucianoPAlmeida/SR-13426-code-completi…
rintaro Sep 1, 2020
413eba8
Merge pull request #33662 from kateinoigakukun/katei/serialize-has-cref
xymus Sep 1, 2020
152ac7f
Merge remote-tracking branch 'origin/master' into master-rebranch
swift-ci Sep 1, 2020
1bfb0b0
[ConstraintSystem] Extend invalid function body fix to cover constrai…
xedin Sep 1, 2020
04da864
[semantic-arc] Split out owned -> guaranteed phi opt into its own file.
gottesmm Aug 30, 2020
dd726a0
[NFC] Avoid repeatedly instantiating std::function
beccadax Sep 1, 2020
ae4fbb6
[AST] Generalize and rename ClassDecl::getEmittedMembers()
DougGregor Sep 1, 2020
650a8b2
[AST] Rename EmittedMembersRequest -> SemanticMembersRequest.
DougGregor Sep 1, 2020
6cad1c2
Merge pull request #33742 from eeckstein/fix-existential-propagation
eeckstein Sep 1, 2020
27f453c
Merge remote-tracking branch 'origin/master' into master-rebranch
swift-ci Sep 1, 2020
c17bdaf
[AST] Adjust Diagnostic transaction to only track pending errors
xedin Sep 1, 2020
ccca4fd
[AST] Add IterableDeclContext::getParsedMembers().
DougGregor Sep 1, 2020
c403b14
ClangImporter: refactor ClangImporterOptions to be ASTContext-owned. NFC
nkcsgexi Aug 28, 2020
3e7f339
[ModuleTrace] Handle cycle detection edge case in module trace emissi…
varungandhi-apple Aug 26, 2020
ab83d90
Sema: Fix cycle between closure type computation and EmittedMembersRe…
slavapestov Sep 1, 2020
853586f
[build] Reinstate CMAKE_CXX_FLAGS_${CFLAGS_BUILD_TYPE} for LLVM (#33745)
edymtt Sep 1, 2020
0bc48de
[stdlib] NFC: Fix typo in comment.
barnard-b Sep 1, 2020
c3d4560
Merge pull request #33738 from gottesmm/pr-9efce4c76360c760712e757a05…
gottesmm Sep 1, 2020
69eb6ce
[opt-remark] Add a new SIL testing option that works around not havin…
gottesmm Aug 24, 2020
5665985
Merge pull request #33747 from DougGregor/generalize-get-emitted-members
DougGregor Sep 2, 2020
9f2db6c
Merge pull request #33706 from owenv/prefix-map-diags
owenv Sep 2, 2020
5bf15f8
Add a -ignore-always-inline frontend flag which ignores @inline(__alw…
kubamracek Sep 2, 2020
c2eae53
Merge pull request #33752 from gottesmm/pr-2ccb699f5b58f532d5c793ae1e…
gottesmm Sep 2, 2020
38dd7d8
[IRGen] Fix asserting local extern declarations.
3405691582 Aug 4, 2020
a12963a
Merge pull request #33750 from slavapestov/fix-emitted-members-reques…
DougGregor Sep 2, 2020
2daf1d2
[opt-remark] When looking for debug_value users, look modulo RC Ident…
gottesmm Aug 23, 2020
2330e61
Merge pull request #33712 from aschwaighofer/irgen_ignore_metadata_fi…
aschwaighofer Sep 2, 2020
773eec1
Merge pull request #33683 from nkcsgexi/clang-importer-options-refactor
nkcsgexi Sep 2, 2020
bf7c03b
Support cross compile Xcode toolchain for Apple Silicon
shahmishal Sep 2, 2020
dadf2b4
[ConstraintSystem] Track invalid function builder bodies to avoid dup…
xedin Sep 2, 2020
d2f5e63
[TypeChecker] NFC: Add test-case for rdar://problem/65983237
xedin Sep 2, 2020
4350a96
Merge pull request #33640 from varungandhi-apple/vg-fix-module-trace-…
varungandhi-apple Sep 2, 2020
aa48494
[Serialization] Local allocate ModuleFileSharedCore.ModuleInterfacePath
rintaro Sep 2, 2020
43d91ac
Merge pull request #33751 from barnard-b/fix-string-object-comment-typo
CodaFi Sep 2, 2020
bfc9b54
Add llvm-nm to list of LLVM tools built with stdlib standalone mode (…
kubamracek Sep 2, 2020
ac6dffd
[Sanitizer] Disable inlining to improve robustness of test (#33753)
yln Sep 2, 2020
7462c83
Change `getAdjointBuffer` to return `SILValue` instead of `SILValue &`.
dan-zheng Sep 2, 2020
a4d731e
ModuleLoader: remove several walk-arounds for not having a persistent…
nkcsgexi Sep 2, 2020
ed7e03b
[CSDiagnostics] Ensure fix-it inserts uses correct location in infere…
LucianoPAlmeida Sep 2, 2020
33bb483
[test][IRGen] Loosen check in test unused.sil.
3405691582 Sep 2, 2020
66059a4
utils: add a timeout to the integration tests
compnerd Sep 2, 2020
8125f77
Update build-script-impl
compnerd Sep 2, 2020
5dd962c
AutoDiff: Remove some unnecessary calls to getInterfaceType()
slavapestov Sep 2, 2020
bd99a10
Merge pull request #33768 from rintaro/serialization-modulecore-inter…
rintaro Sep 2, 2020
3fd882c
[NFC] Rename "storage wrapper var" to "projection var" or "projected …
hborla Sep 3, 2020
ed5edb8
Merge pull request #33756 from nkcsgexi/module-loader-opts
nkcsgexi Sep 3, 2020
e107182
Merge remote-tracking branch 'apple/master' into master-rebranch
nkcsgexi Sep 3, 2020
9bd3ed3
Merge pull request #33731 from apple/master-rebranch
shahmishal Sep 3, 2020
789659e
Merge pull request #33775 from slavapestov/auto-diff-interface-type-c…
slavapestov Sep 3, 2020
ac63abc
[SILGen] Consolidate emission of SILDeclRef definitions
hamishknight Sep 3, 2020
cc8344a
[SILGen] Remove astNode param from preEmitFunction
hamishknight Sep 3, 2020
0f40089
[SILGen] Move closure emission to emitFunctionDefinition
hamishknight Sep 3, 2020
da65826
[SILGen] Remove an obsolete linking hack
hamishknight Sep 3, 2020
c4c14ba
[SILGen] Cleanup isForeignToNativeThunk slightly
hamishknight Sep 3, 2020
ae5b385
[SILGen] Expand isNativeToForeignThunk
hamishknight Sep 3, 2020
ef5335a
[SILGen] Move thunk emission to emitFunctionDefinition
hamishknight Sep 3, 2020
fe6d456
ARCSequenceOpts: Improve debug print
meg-gupta Aug 27, 2020
ce669ca
ARCSequenceOpts: Remove unused args in several functions
meg-gupta Aug 29, 2020
132d49f
ARCSequenceOpts: Minor code consolidation
meg-gupta Aug 29, 2020
586de0a
Fix KnownSafety optimization bugs in ARCSequenceOpts
meg-gupta Aug 31, 2020
e524b1c
docs: Add WebAssembly.md describing target implementation details (#3…
MaxDesiatov Sep 3, 2020
2fc39f6
build: merge changes for rebranching
compnerd Sep 3, 2020
9b01139
Merge pull request #33782 from compnerd/rebranch
shahmishal Sep 3, 2020
9f01742
Update build-script-impl
compnerd Sep 3, 2020
b7c1965
[Serialization] Minor ModuleFile/ModuleFileSharedCore improvements
rintaro Sep 1, 2020
5c3cb36
Merge pull request #33611 from dan-zheng/autodiff-fix-tangent-value-c…
dan-zheng Sep 3, 2020
923b1fb
Merge pull request #33762 from xedin/rdar-65983237
xedin Sep 3, 2020
fae8f94
AST: Add 'hoisted' flag to Decl
slavapestov Sep 3, 2020
4923aab
AST: Add hoisted declarations to unqualified name lookup cache
slavapestov Sep 3, 2020
5d602dc
Sema: Visit hoisted ImportDecls in import resolution
slavapestov Sep 3, 2020
5746322
Sema: Visit hoisted ExtensionDecls in extension binding
slavapestov Sep 3, 2020
b9cd6ca
SILGen: Emit hoisted declarations at the top level
slavapestov Sep 3, 2020
0bedd20
IRGen: Emit hoisted declarations at the top level
slavapestov Sep 3, 2020
f3e7963
Parse: Mark declarations as hoisted in DebuggerContextChange
slavapestov Sep 3, 2020
5305c6f
Bring back `swift_once` context workaround in `Once.cpp`
MaxDesiatov Sep 3, 2020
ccdbb0e
Merge pull request #33772 from LucianoPAlmeida/correcting-source-loca…
LucianoPAlmeida Sep 3, 2020
dee1b9b
Merge pull request #33737 from xwu/nominal-edu
xwu Sep 3, 2020
9f2f1d8
Merge pull request #33748 from brentdax/template-toolkit
swift-ci Sep 3, 2020
ca72167
Merge pull request #33686 from xymus/check-spi-conformances
xymus Sep 3, 2020
6a0a448
[Serialization] Remove extInfo param from ModuleFileSharedCore::load()
rintaro Sep 3, 2020
a92e9b3
SILOptimizer: make vtable pruning less aggressive
compnerd Sep 3, 2020
782863c
Merge pull request #33795 from slavapestov/hoisted-decls-for-lldb
slavapestov Sep 3, 2020
b73330b
[DynamicCast] Rework existential casting discussion
tbkka Sep 3, 2020
3544404
[Localization] Create swift-def-to-yaml-converter tool
HassanElDesouky Aug 28, 2020
4a84c0a
[unittests] Add `matchDiagnosticMessagesRandomly`
HassanElDesouky Aug 28, 2020
a0dc80e
[unittests] Use ASSERT_EQ
HassanElDesouky Aug 28, 2020
b17dd27
[tools] Remove swiftAST dependency
HassanElDesouky Aug 28, 2020
3f40812
[tools] [unittests] Add missing include headers
HassanElDesouky Aug 29, 2020
8e860e4
[tools] Handle errors when opening the YAML file
HassanElDesouky Aug 29, 2020
e5c42e4
[Localization] Add .gitkeep in diagnostics folder
HassanElDesouky Aug 29, 2020
d8a16d1
[tools] Improve error message and add `output-filename` as an option
HassanElDesouky Aug 31, 2020
7124d4a
[unittests] Make tests call the converter on temp files
HassanElDesouky Aug 31, 2020
b51b1f1
[Localization] Establish dependency between def-to-yaml converter and…
xedin Sep 2, 2020
5d11fe6
[Localization] Extract def-to-yaml conversion logic into `DefToYAMLCo…
xedin Sep 2, 2020
dbae834
[Localization] Establish a dedicated directory for localization tests
xedin Sep 3, 2020
73a5279
[docs] Add 'critical edge' definition to Lexicon. (#33765)
varungandhi-apple Sep 4, 2020
e97a6ff
swift_build_sdk_interfaces.py: copy SDK build version file into prebu…
nkcsgexi Sep 3, 2020
1372414
Merge pull request #33722 from meg-gupta/asochanges
meg-gupta Sep 4, 2020
3332df6
Merge pull request #33777 from hborla/rename-storage-wrapper
hborla Sep 4, 2020
41f1285
Don't use lookupSymbol when SWIFT_RUNTIME_MACHO_NO_DYLD (#33792)
kubamracek Sep 4, 2020
ea6cae6
Make waiting on condition variables error out on SWIFT_STDLIB_SINGLE_…
kubamracek Sep 4, 2020
bec6a8f
Merge pull request #33789 from rintaro/serialization-modulefile-extinfo
rintaro Sep 4, 2020
77b4f75
[SourceKit] Reorgantize code completion options
rintaro Sep 3, 2020
fab497a
[Localization] Use testing fixture in DefToYAMLConverter
xedin Sep 3, 2020
a54765b
Merge pull request #33781 from hamishknight/is-this-odr
hamishknight Sep 4, 2020
1d72ec9
[AutoDiff] NFC: improve debug logging. (#33793)
dan-zheng Sep 4, 2020
d1a033c
Merge pull request #33796 from nkcsgexi/copy-build-version
nkcsgexi Sep 4, 2020
29f2f77
[docs] Update branching documentation to use new release branch namin…
varungandhi-apple Sep 4, 2020
381d241
Merge branch 'master' of github.com:swiftwasm/swift into maxd/master-…
MaxDesiatov Sep 4, 2020
3cd4258
Merge pull request #33770 from compnerd/pruned-pruning-date
compnerd Sep 4, 2020
9d908ec
[stdlib] Removes redundant buffer zeroing in IndexPath initialiser by…
valeriyvan Sep 4, 2020
115b53f
Punctuation
tbkka Sep 4, 2020
aa20633
[AutoDiff] [Sema] Fix missing access-level mismatch diagnostic in `-e…
rxwei Sep 4, 2020
65a547c
[benchmark] Add new benchmark for floating-point conversion
xwu Sep 4, 2020
004bc07
Fix `push_back` in `autolink_extract_main.cpp`
MaxDesiatov Sep 4, 2020
646fcf6
Merge pull request #33754 from gottesmm/pr-d1a9d022618a039a807ff68c0d…
gottesmm Sep 4, 2020
42f79b0
[stdlib] Make use of protocol requirements to convert from concrete t…
xwu Sep 4, 2020
502258e
Merge pull request #33610 from valeriyvan/Array-snippet
xwu Sep 4, 2020
028a755
ModuleInterface: remark potential version differences between SDK and…
nkcsgexi Sep 4, 2020
309cb93
Merge pull request #33661 from HassanElDesouky/localization-localize-…
xedin Sep 4, 2020
514dce1
Update copyright year on benchmark and its template
xwu Sep 4, 2020
e920b70
[Test] Disable Sanitizers/symbolication.swift for now
hborla Sep 4, 2020
55de91b
Merge pull request #33804 from hborla/disable-symbolication-test
hborla Sep 4, 2020
b8f4e6a
Merge pull request #33773 from 3405691582/LoosenIRGenUnusedTest
rjmccall Sep 4, 2020
ddb43e3
Merge pull request #33306 from 3405691582/FixAssertingLocalExtern
rjmccall Sep 4, 2020
0310a70
AST: Remove EnableASTScope flag and force it to always be on
slavapestov Sep 3, 2020
4a62800
Sema: Remove old pre-ASTScope logic from TypeCheckStmt.cpp
slavapestov Sep 3, 2020
70b68d6
[stdlib] Include Float16 among source types recognized for generic co…
xwu Sep 4, 2020
e4f6041
[ConstraintSystem] Record generic fix if destination of a pointer con…
xedin Sep 4, 2020
6489e1a
[Concurrency] Fix nested await/try parsing and effects checking.
DougGregor Sep 4, 2020
2b67a9d
Merge pull request #33774 from compnerd/timeout
compnerd Sep 4, 2020
903a06f
Merge pull request #33802 from nkcsgexi/remark-sdk-build-versions
nkcsgexi Sep 4, 2020
b604635
🤮
xwu Sep 4, 2020
193cf0d
Code review feedback from @davidungar
slavapestov Sep 4, 2020
6fbbc49
Delete build-windows-rebranch.bat
shahmishal Sep 5, 2020
11154b1
Merge pull request #33807 from DougGregor/concurrency-nested-await-try
DougGregor Sep 5, 2020
3f84fe4
Merge pull request #33801 from xwu/generic-conversion-performance
xwu Sep 5, 2020
a7e8dbf
Merge pull request #33814 from apple/shahmishal/remove-build-windows-…
shahmishal Sep 5, 2020
4fa57ae
[serialization] Refactor from large SILInstruction loop, writeNoOpera…
gottesmm Sep 4, 2020
56f6d9e
Merge pull request #33805 from slavapestov/remove-enable-astscope-loo…
slavapestov Sep 5, 2020
c54fb33
[opt-remark] Infer the source loc retain, release even if they have n…
gottesmm Sep 5, 2020
1acecd1
[test][IRGen] Fix check on local_extern test.
3405691582 Sep 5, 2020
38e724b
Merge pull request #33809 from xedin/rdar-68254165
xedin Sep 5, 2020
26b9e0e
Merge pull request #33815 from gottesmm/pr-0bf456cc2c826eabf3ff3e5543…
swift-ci Sep 5, 2020
60b7c57
[benchmark] Add mock floating-point types for conversion benchmarks
xwu Sep 5, 2020
191a4f8
[Concurrency] Split @objc checking into a separate test file.
DougGregor Sep 4, 2020
fbdd1eb
Platform: improve WinSDK modulemap to repair build
compnerd Sep 5, 2020
713b57b
Frontend: Remove -lazy-astscopes flag
slavapestov Sep 5, 2020
b82c57a
[Sema] Require function builders to have at least one buildBlock method
Jumhyn Sep 4, 2020
c89b5ac
[serialization] Rename ResultVal -> ResultInst.
gottesmm Sep 5, 2020
1757893
Merge pull request #33820 from gottesmm/pr-2022a20c73c213c8d5041a6de0…
gottesmm Sep 5, 2020
cf9be38
Merge pull request #33816 from 3405691582/FixLocalExtern
compnerd Sep 5, 2020
b9d1b98
Merge pull request #33489 from compnerd/additional-paths
compnerd Sep 5, 2020
44a7038
[benchmark] Address review comments on FP conversion benchmarks
xwu Sep 5, 2020
f0a6d6f
Merge pull request #33803 from xwu/fp-init-specialization
xwu Sep 5, 2020
ea5604e
Merge pull request #33823 from compnerd/foundation
compnerd Sep 5, 2020
c6a266e
Merge pull request #29735 from owenv/multiple-varargs
owenv Sep 5, 2020
93d4854
[test][IRGen] Maybe Windows needs dso_local.
3405691582 Sep 5, 2020
cc511c2
Merge pull request #33824 from gottesmm/pr-1f4572f8ac489c51f79eaddae5…
gottesmm Sep 5, 2020
923d6ed
Merge pull request #33827 from 3405691582/LocalExternTestDsoLocal
xedin Sep 5, 2020
b1c4951
[userdocs] Flesh out alternatives/workarounds for protocol type non-c…
xwu Sep 6, 2020
bec3136
Sema: Unqualified lookup either needs a source location or a top-leve…
slavapestov Sep 5, 2020
658d4bf
SourceKit: Refactor walkRelatedDecls() to not use unqualified lookup
slavapestov Sep 5, 2020
83f49b3
AST: Remove old unqualified lookup implementation
slavapestov Sep 5, 2020
14aaa2e
[docs] Minor revision of trailing closure matching edu note
xwu Sep 6, 2020
680682f
[docs] Update educational note for accuracy about `Error` requirements
xwu Sep 6, 2020
87e1a13
Merge pull request #33821 from xwu/more-fp-conversion-benchmarks
swift-ci Sep 6, 2020
765dd47
Merge pull request #33822 from slavapestov/remove-old-unqualified-lookup
slavapestov Sep 6, 2020
3692751
[Benchmark] Fix build failure on armv7 by guarding Float80 availability
theblixguy Sep 7, 2020
4103cb8
[docs] Restore original wording in two places about trailing closure …
xwu Sep 7, 2020
537017a
Merge pull request #33836 from theblixguy/chore/fix-benchmark-float80
xwu Sep 7, 2020
9685179
Merge pull request #33324 from kateinoigakukun/katei/swift-module-sum…
MaxDesiatov Sep 7, 2020
97dde3d
Remove unused MutexWASI.cpp
MaxDesiatov Sep 7, 2020
0237c25
Merge branch 'master' of github.com:swiftwasm/swift into maxd/master-…
MaxDesiatov Sep 7, 2020
df0117e
[docs] Address typo in trailing closure education note
xwu Sep 7, 2020
3c5322d
[docs] Deprecate Python 2 in Windows build instructions (#33819)
stevapple Sep 7, 2020
f8d8005
[Changelog] Add entries for SE-0279 and SE-0286 (#33729)
Jumhyn Sep 7, 2020
8c2e423
Merge pull request #33834 from xwu/trailing-closure-edu
swift-ci Sep 7, 2020
edf8947
Update WindowsBuild.md
compnerd Sep 7, 2020
79a2ab0
[ConstraintSystem] Record `unable to infer base` only if hole origina…
xedin Sep 7, 2020
6aebda5
Merge pull request #33840 from apple/compnerd-windows-build-rules
compnerd Sep 7, 2020
4b3d15d
Update WindowsBuild.md
compnerd Sep 7, 2020
4f464ff
[Localization] Extract testing fixture and diagnostic definitions int…
xedin Sep 8, 2020
0ec6eb2
SimplifyCFG: Handle checked_cast_addr_br with consumption kind copy_o…
eeckstein Sep 7, 2020
0baf844
[Localization] Expose a way to create temporary files through `Locali…
xedin Sep 8, 2020
dbe7995
[Localization] Add localization serialization tests
xedin Sep 8, 2020
8d6541e
Merge branch 'master' of github.com:swiftwasm/swift into maxd/master-…
MaxDesiatov Sep 8, 2020
d84bab0
Merge pull request #33839 from eeckstein/improve-cast-optimizer
eeckstein Sep 8, 2020
6eebf61
Merge pull request #33845 from apple/compnerd-swiftpm-pd-libs
compnerd Sep 8, 2020
db6e3af
[IDE] Fix a typo (#33841)
theblixguy Sep 8, 2020
7f16910
[docs] Drop a word based on reviewer feedback
xwu Sep 8, 2020
4247b60
Merge pull request #33417 from adrian-prantl/55412920
adrian-prantl Sep 8, 2020
295b3d4
Merge pull request #33852 from xedin/localization-tests
xedin Sep 8, 2020
0f18948
[Concurrency] Allow @objc async methods.
DougGregor Sep 7, 2020
daf9e2d
[Concurrency] Print @objc async declarations as Objective-C declarati…
DougGregor Sep 7, 2020
8dc8532
[Concurrency] Ban asynchronous methods returning 'Self' from being @objc
DougGregor Sep 8, 2020
d2b70e4
Merge pull request #33811 from rintaro/sourcekit-completion-globalconfig
rintaro Sep 8, 2020
ed30712
Fixes example snippet in OutputStream.swift (#33844)
valeriyvan Sep 8, 2020
2e03264
Merge pull request #33842 from xedin/rdar-68254165-followup
xedin Sep 8, 2020
03adbe3
Merge pull request #33837 from DougGregor/concurrency-objc-async
DougGregor Sep 8, 2020
cd3440e
Merge pull request #33832 from xwu/existential-edu-part-2
xwu Sep 9, 2020
14e6338
[AutoDiff] Generate transparent ossa reabstraction thunks. (#33854)
dan-zheng Sep 9, 2020
0ceaa58
[AutoDiff] Fix forward-mode crashes related to tangent buffers (#33633)
efremale Sep 9, 2020
7c81f49
Merge pull request #33798 from Jumhyn/function-builder-static-buildblock
DougGregor Sep 9, 2020
56f1a55
Merge pull request #33797 from tbkka/tbkka/dynamicCastRework-Specific…
swift-ci Sep 9, 2020
b099b34
Merge branch 'master' of github.com:swiftwasm/swift into maxd/master-…
MaxDesiatov Sep 9, 2020
5bce813
[WASM] Fix lazy global initializer signature
kateinoigakukun Sep 12, 2020
482b33a
[WASM] Always build lld when building for wasm
kateinoigakukun Sep 12, 2020
6375885
[WASM] Cross build compiler-rt for WebAssembly
kateinoigakukun Sep 12, 2020
b6bcd01
[WASM] Use llvm build directory binary
kateinoigakukun Sep 12, 2020
1248374
[WASM] Install self built llvm components
kateinoigakukun Sep 12, 2020
eb8b336
[WASM] Install llvm components in building target toolchain
kateinoigakukun Sep 13, 2020
e4dfff5
[WASM] Cleanup llvm build directory before building for wasm target
kateinoigakukun Sep 14, 2020
e06c8df
[WASM] Cleanup build directory
kateinoigakukun Sep 16, 2020
075a9eb
[WASM] Install llvm tools in toolchain bin dir
kateinoigakukun Sep 16, 2020
b53d713
[WASM] Keep build directory on macOS CI to run tests
kateinoigakukun Sep 16, 2020
8573f1f
Trigger CI again
kateinoigakukun Sep 16, 2020
d6463fd
[WASM] Install six on macOS
kateinoigakukun Sep 16, 2020
dc91d07
[WASM] Uninstall python2 from macOS VM
kateinoigakukun Sep 16, 2020
7b19834
Cleanup only foundation and swiftpm build dir to run tests
kateinoigakukun Sep 16, 2020
9d8d214
[WASM] Disable test/stdlib/PrintStruct.swift temporarily
kateinoigakukun Sep 16, 2020
29705bc
Update cache mechanism
kateinoigakukun Sep 16, 2020
1e1150e
Reuse LLVM build dir and clear only compiler-rt dir
kateinoigakukun Sep 16, 2020
1d3c8c8
Create cache on Linux
kateinoigakukun Sep 16, 2020
6a629b7
Create cache on Linux again
kateinoigakukun Sep 17, 2020
77b5783
Fix cache key
kateinoigakukun Sep 17, 2020
4ae47a7
Use latest llvm-ar and llvm-ranlib
kateinoigakukun Sep 17, 2020
5c8e6e6
Merge branch 'maxd/master-merge' of github.com:swiftwasm/swift into m…
kateinoigakukun Sep 17, 2020
6c2fe91
Ignore archive uploading temporarily
kateinoigakukun Sep 17, 2020
60487e6
Debug with SSH
kateinoigakukun Sep 17, 2020
fa5edd0
Install LLVM tools for host toolchain to cross build with the tools
kateinoigakukun Sep 17, 2020
fb57947
Disable SSH debug
kateinoigakukun Sep 17, 2020
eecd383
[WASM] Workaround for lld build
kateinoigakukun Sep 17, 2020
a484a6e
Remove temporary code
kateinoigakukun Sep 17, 2020
397156f
[WASM] Disable test/stdlib/PrintStruct.swift temporarily
kateinoigakukun Sep 16, 2020
b04dfae
Debug linux CI
kateinoigakukun Sep 18, 2020
7453696
Cleanup Linux container
kateinoigakukun Sep 18, 2020
ca30c6f
Disable debug step
kateinoigakukun Sep 18, 2020
fa72ced
Re-enable artifact uploading
kateinoigakukun Sep 18, 2020
a74f7b2
Ignore Linux CI test failure at this time
kateinoigakukun Sep 18, 2020
50ec5f6
[WASM] Always install CoreFoundation headers in target dir
kateinoigakukun Sep 19, 2020
93df1b9
Revert "[WASM] Always install CoreFoundation headers in target dir"
kateinoigakukun Sep 19, 2020
a0db7cb
[WASM] Refactoring build script for debuggability
kateinoigakukun Sep 19, 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
  •  
  •  
  •  
26 changes: 21 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,29 @@ jobs:
sudo apt-get purge libgcc-9-dev gcc-9 libstdc++-9-dev
sudo swapoff -a
sudo rm -f /swapfile
sudo rm -rf /opt/hostedtoolcache
sudo rm -rf /usr/share/dotnet
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
- uses: actions/checkout@v1
with:
path: swift
- name: Prepare sccache timestamp
id: cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
with:
path: ../build-cache
key: ${{ runner.os }}-sccache-v9
key: ${{ runner.os }}-sccache-v10-${{ steps.cache_timestamp.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-sccache-v10-
- name: Build Linux installable archive
run: |
./utils/webassembly/ci.sh
echo "Cleanup build directory to free disk space"
rm -rf ../build
- name: Upload Linux installable archive
uses: actions/upload-artifact@v1
with:
Expand All @@ -58,10 +66,18 @@ jobs:
- uses: actions/checkout@v1
with:
path: swift
- name: Prepare sccache timestamp
id: cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- uses: actions/cache@v1
with:
path: ../build-cache
key: ${{ runner.os }}-sccache-v9
key: ${{ runner.os }}-sccache-v10-${{ steps.cache_timestamp.outputs.timestamp }}
restore-keys: |
${{ runner.os }}-sccache-v10-
- name: Build macOS installable archive
run: |
sudo xcode-select --switch /Applications/Xcode_12_beta.app/Contents/Developer/
Expand All @@ -72,7 +88,7 @@ jobs:
name: macos-installable
path: ../swift-wasm-DEVELOPMENT-SNAPSHOT-osx.tar.gz
- name: Pack test results
run: tar cJf swift-test-results.tar.gz ../build/*/swift-macosx-x86_64/swift-test-results
run: tar cJf swift-test-results.tar.gz ../target-build/*/swift-macosx-x86_64/swift-test-results
- name: Upload test results
uses: actions/upload-artifact@v1
with:
Expand Down
108 changes: 91 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,100 @@ CHANGELOG
<details>
<summary>Note: This is in reverse chronological order, so newer entries are added to the top.</summary>

| Version | Released | Toolchain |
| :--------------------- | :--------- | :---------- |
| [Swift 5.3](#swift-53) | | |
| [Swift 5.2](#swift-52) | 2020-03-24 | Xcode 11.4 |
| [Swift 5.1](#swift-51) | 2019-09-20 | Xcode 11.0 |
| [Swift 5.0](#swift-50) | 2019-03-25 | Xcode 10.2 |
| [Swift 4.2](#swift-42) | 2018-09-17 | Xcode 10.0 |
| [Swift 4.1](#swift-41) | 2018-03-29 | Xcode 9.3 |
| [Swift 4.0](#swift-40) | 2017-09-19 | Xcode 9.0 |
| [Swift 3.1](#swift-31) | 2017-03-27 | Xcode 8.3 |
| [Swift 3.0](#swift-30) | 2016-09-13 | Xcode 8.0 |
| [Swift 2.2](#swift-22) | 2016-03-21 | Xcode 7.3 |
| [Swift 2.1](#swift-21) | 2015-10-21 | Xcode 7.1 |
| [Swift 2.0](#swift-20) | 2015-09-17 | Xcode 7.0 |
| [Swift 1.2](#swift-12) | 2015-04-08 | Xcode 6.3 |
| [Swift 1.1](#swift-11) | 2014-12-02 | Xcode 6.1.1 |
| [Swift 1.0](#swift-10) | 2014-09-15 | Xcode 6.0 |
| Version | Released | Toolchain |
| :------------------------ | :--------- | :---------- |
| [Swift Next](#swift-next) |
| [Swift 5.3](#swift-53) | | |
| [Swift 5.2](#swift-52) | 2020-03-24 | Xcode 11.4 |
| [Swift 5.1](#swift-51) | 2019-09-20 | Xcode 11.0 |
| [Swift 5.0](#swift-50) | 2019-03-25 | Xcode 10.2 |
| [Swift 4.2](#swift-42) | 2018-09-17 | Xcode 10.0 |
| [Swift 4.1](#swift-41) | 2018-03-29 | Xcode 9.3 |
| [Swift 4.0](#swift-40) | 2017-09-19 | Xcode 9.0 |
| [Swift 3.1](#swift-31) | 2017-03-27 | Xcode 8.3 |
| [Swift 3.0](#swift-30) | 2016-09-13 | Xcode 8.0 |
| [Swift 2.2](#swift-22) | 2016-03-21 | Xcode 7.3 |
| [Swift 2.1](#swift-21) | 2015-10-21 | Xcode 7.1 |
| [Swift 2.0](#swift-20) | 2015-09-17 | Xcode 7.0 |
| [Swift 1.2](#swift-12) | 2015-04-08 | Xcode 6.3 |
| [Swift 1.1](#swift-11) | 2014-12-02 | Xcode 6.1.1 |
| [Swift 1.0](#swift-10) | 2014-09-15 | Xcode 6.0 |

</details>

Swift Next
----------

* [SE-0287][]:

Implicit member expressions now support chains of member accesses, making the following valid:

```swift
let milky: UIColor = .white.withAlphaComponent(0.5)
let milky2: UIColor = .init(named: "white")!.withAlphaComponent(0.5)
let milkyChance: UIColor? = .init(named: "white")?.withAlphaComponent(0.5)
```

As is the case with the existing implicit member expression syntax, the resulting type of the chain must be the same as the (implicit) base, so it is not well-formed to write:

```swift
let cgMilky: CGColor = .white.withAlphaComponent(0.5).cgColor
```

(Unless, of course, appropriate `white` and `withAlphaComponent` members were defined on `CGColor`.)

Members of a "chain" can be properties, method calls, subscript accesses, force unwraps, or optional chaining question marks. Furthermore, the type of each member along the chain is permitted to differ (again, as long as the base of the chain matches the resulting type) meaning the following successfully typechecks:

```swift
struct Foo {
static var foo = Foo()
static var bar = Bar()

var anotherFoo: Foo { Foo() }
func getFoo() -> Foo { Foo() }
var optionalFoo: Foo? { Foo() }
subscript() -> Foo { Foo() }
}

struct Bar {
var anotherFoo = Foo()
}

let _: Foo? = .bar.anotherFoo.getFoo().optionalFoo?.optionalFoo![]
```

Swift 5.3
---------

* [SE-0279][] & [SE-0286][]:

Trailing closure syntax has been extended to allow additional labeled closures to follow the initial unlabeled closure:

```swift
// Single trailing closure argument
UIView.animate(withDuration: 0.3) {
self.view.alpha = 0
}
// Multiple trailing closure arguments
UIView.animate(withDuration: 0.3) {
self.view.alpha = 0
} completion: { _ in
self.view.removeFromSuperview()
}
```

Additionally, trailing closure arguments now match the appropriate parameter according to a forward-scan rule (as opposed to the previous backward-scan rule):

```swift
func takesClosures(first: () -> Void, second: (Int) -> Void = { _ in }) {}

takesClosures {
print("First")
}
```

In the above example, the trailing closure argument matches parameter `first`, whereas pre-Swift-5.3 it would have matched `second`. In order to ease the transition to this new rule, cases in which the forward-scan and backward-scan match a single trailing closure to different parameters, the backward-scan result is preferred and a warning is emitted. This is expected to be upgraded to an error in the next major version of Swift.

* [SR-7083][]:

Property observers such as `willSet` and `didSet` are now supported on `lazy` properties:
Expand Down Expand Up @@ -8070,7 +8141,10 @@ Swift 1.0
[SE-0268]: <https://github.com/apple/swift-evolution/blob/master/proposals/0268-didset-semantics.md>
[SE-0269]: <https://github.com/apple/swift-evolution/blob/master/proposals/0269-implicit-self-explicit-capture.md>
[SE-0276]: <https://github.com/apple/swift-evolution/blob/master/proposals/0276-multi-pattern-catch-clauses.md>
[SE-0279]: <https://github.com/apple/swift-evolution/blob/master/proposals/0279-multiple-trailing-closures.md>
[SE-0280]: <https://github.com/apple/swift-evolution/blob/master/proposals/0280-enum-cases-as-protocol-witnesses.md>
[SE-0286]: <https://github.com/apple/swift-evolution/blob/master/proposals/0286-forward-scan-trailing-closures.md>
[SE-0287]: <https://github.com/apple/swift-evolution/blob/master/proposals/0287-implicit-member-chains.md>

[SR-75]: <https://bugs.swift.org/browse/SR-75>
[SR-106]: <https://bugs.swift.org/browse/SR-106>
Expand Down
25 changes: 20 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@ option(SWIFT_REPORT_STATISTICS
"Create json files which contain internal compilation statistics"
FALSE)

option(SWIFT_DISABLE_OBJC_INTEROP
"Disable Objective-C interoperability even on platforms what would normally have it"
FALSE)

# FIXME(wasm) Reflection tests are temporalily disabled due to lack of linker features
option(SWIFTWASM_DISABLE_REFLECTION_TEST
"Disable building swift-reflection-test for WebAssembly build"
Expand All @@ -391,10 +395,6 @@ option(SWIFT_RUNTIME_ENABLE_LEAK_CHECKER
"Should the runtime be built with support for non-thread-safe leak detecting entrypoints"
FALSE)

option(SWIFT_STDLIB_USE_NONATOMIC_RC
"Build the standard libraries and overlays with nonatomic reference count operations enabled"
FALSE)

option(SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS
"Enable runtime function counters and expose the API."
FALSE)
Expand Down Expand Up @@ -634,6 +634,22 @@ if("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC" OR "${CMAKE_CXX_SIMULATE_ID}" STREQU
set(SWIFT_COMPILER_IS_MSVC_LIKE TRUE)
endif()

if(NOT SWIFT_COMPILER_IS_MSVC_LIKE)
# CMake's default for CMAKE_CXX_FLAGS_RELEASE is "-O3 -DNDEBUG". Let's avoid "-O3" for consistency
# between Release and RelWithDebInfo. Dropping -DNDEBUG from this setting is blocked by triggering
# a test failure of Swift-Unit :: Syntax/./SwiftSyntaxTests/TypeSyntaxTests.MetatypeTypeWithAPIs
# because unit tests don't currently explicitly set -DNDEBUG/-UNDEBUG.
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")

_compute_lto_flag("${SWIFT_TOOLS_ENABLE_LTO}" _lto_flag_out)
if(_lto_flag_out)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_RELEASE} -gline-tables-only")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -gline-tables-only")
endif()
else()

endif()

#
# Configure SDKs.
#
Expand Down Expand Up @@ -933,7 +949,6 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
endif()
endif()

find_package(Python2 COMPONENTS Interpreter REQUIRED)
find_package(Python3 COMPONENTS Interpreter REQUIRED)

#
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ The required version of Xcode changes frequently, and is often a beta release.
Check this document or the host information on <https://ci.swift.org> for the
current required version.

Swift's build tooling is meant to support spaces in the paths passed to them,
but using spaces sometimes tickles bugs in Swift's build scripts or the tools
they rely on. For example, [SR-13441](https://bugs.swift.org/browse/SR-13441)
is caused by a space in the Xcode path used on macOS. If you see Swift's build
tooling misbehave due to a space in a path, please
[report the bug on the Swift bug tracker](https://swift.org/contributing/#reporting-bugs)
and then change the path to work around it.

You will also need [CMake](https://cmake.org) and [Ninja](https://ninja-build.org),
which can be installed via a package manager:

Expand Down
2 changes: 2 additions & 0 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ set(SWIFT_BENCH_MODULES
single-source/Fibonacci
single-source/FindStringNaive
single-source/FlattenList
single-source/FloatingPointConversion
single-source/FloatingPointParsing
single-source/FloatingPointPrinting
single-source/Hanoi
Expand Down Expand Up @@ -136,6 +137,7 @@ set(SWIFT_BENCH_MODULES
single-source/PrefixWhile
single-source/Prims
single-source/PrimsNonStrongRef
single-source/ProtocolConformance
single-source/ProtocolDispatch
single-source/ProtocolDispatch2
single-source/Queue
Expand Down
4 changes: 2 additions & 2 deletions benchmark/scripts/Template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Copyright (c) 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
Expand All @@ -19,4 +19,4 @@ public let {name} = [
@inline(never)
public func run_{name}(N: Int) {{
// TODO
}}
}}
Loading