Skip to content

Merge master 2020-08-08 #1557

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 853 commits into from
Aug 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
853 commits
Select commit Hold shift + click to select a range
664ad95
Merge pull request #33222 from rintaro/disable-rdar66353882
rintaro Jul 30, 2020
1420a38
Merge pull request #33197 from brentdax/they-buffed-my-main
beccadax Jul 31, 2020
f894131
Do not attempt to parse the PlaceholderSwiftModule map when not present
artemcm Jul 31, 2020
1085746
Merge pull request #33212 from nkcsgexi/pass-down-main-path
nkcsgexi Jul 31, 2020
f6b528e
[Tests] Disable Runtime/linux-fatal-backtrace.swift
rintaro Jul 31, 2020
c3c032b
Merge pull request #33224 from rintaro/disable-rdar66283479
rintaro Jul 31, 2020
315fb44
[Tests] SILOptimizer/opt-remark-generator.swift requires optimzed stdlib
rintaro Jul 30, 2020
ed34973
Special-case catalyst when computing a path for stdlib_dir in lit config
artemcm Jul 29, 2020
aee1151
[NFC] Remove unused parameter to ASTContext::getClangFunctionType.
varungandhi-apple Jul 26, 2020
6c959af
[ASTScope] Model "do" statements in the scope map
DougGregor Jul 31, 2020
9fd37c9
[ASTScope] Remove dead declaration
DougGregor Jul 31, 2020
0d90adf
[ASTScope] Implement lookup for visible labeled statements.
DougGregor Jul 31, 2020
2e03726
Reimplement labeled statement shadowing using ASTScope.
DougGregor Jul 31, 2020
c2db918
CS: Address an outdated OpenUnboundGenericType FIXME
AnthonyLatsis Jul 30, 2020
9462de1
Sema: Make type resolution for EnumElementPattern less eager
AnthonyLatsis Jul 30, 2020
c7cc158
Merge pull request #33221 from rintaro/requires-optimizedstdlib-rdar6…
rintaro Jul 31, 2020
7117966
Merge pull request #33211 from aschwaighofer/type_substitute_objc_gen…
aschwaighofer Jul 31, 2020
9c2a045
Merge pull request #33195 from artemcm/LitPathSweetFix
artemcm Jul 31, 2020
162c5e1
test: explicitly encode arguments for Python 3
compnerd Jul 31, 2020
53d3dda
Merge pull request #33179 from eeckstein/existential-box-elimination
eeckstein Jul 31, 2020
22409d7
Merge pull request #33223 from artemcm/ImplicitActions
artemcm Jul 31, 2020
c6cd4b0
Merge pull request #33217 from rintaro/ide-completion-rdar65802490
rintaro Jul 31, 2020
94c6bff
AST: Replace some calls to getDeclaredType() with getDeclaredInterfac…
slavapestov Jul 31, 2020
45fc0bc
Sema: Replace some calls to getDeclaredType() with getDeclaredInterfa…
slavapestov Jul 31, 2020
0ef12ec
SIL: Replace some calls to getDeclaredType() with getDeclaredInterfac…
slavapestov Jul 31, 2020
38477ad
ClangImporter: Replace some calls to getDeclaredType() with getDeclar…
slavapestov Jul 31, 2020
b4ea644
IDE: Replace some calls to getDeclaredType() with getDeclaredInterfac…
slavapestov Jul 31, 2020
adb7bf5
IRGen: Replace some calls to getDeclaredType() with getDeclaredInterf…
slavapestov Jul 31, 2020
9587d41
Frontend: Replace some calls to getDeclaredType() with getDeclaredInt…
slavapestov Jul 31, 2020
0d7a07c
AST: Add a couple of comments noting that UnboundGenericType is depre…
slavapestov Jul 31, 2020
cd79b54
AST: Remove ProtocolDecl's overload of getDeclaredType()
slavapestov Jul 31, 2020
a0426df
Merge pull request #33220 from xedin/rdar-66234725
xedin Jul 31, 2020
89bbad2
IRGen: Update some straggling tests for #33192
jckarter Jul 31, 2020
fc8f4b7
Update test_util.py
compnerd Jul 31, 2020
702a812
Merge pull request #32496 from compnerd/you-shall-not-pass
compnerd Jul 31, 2020
ecc6403
Merge pull request #33158 from compnerd/overlay-fallback
compnerd Jul 31, 2020
756ef40
[sourcekitd] Fix potential race in semantic highlighting tests
benlangmuir Jul 31, 2020
f219e58
[NFC] Refactor ExtInfo to use a builder-pattern based API.
varungandhi-apple Jul 31, 2020
29188e3
[AST] Update equality for ExtInfo to take Clang types into account.
varungandhi-apple Jul 31, 2020
0ef465f
Merge pull request #33233 from jckarter/internal-objc-test-update
rintaro Jul 31, 2020
09b6b74
Merge pull request #33234 from slavapestov/get-declared-type-cleanup
slavapestov Jul 31, 2020
d376f29
[Property Wrappers] Don't inject the wrapped value placeholder
hborla Jul 31, 2020
3a7b4a2
Merge pull request #33229 from compnerd/cryptic
compnerd Jul 31, 2020
68f6e0a
[Python3] Find the matching Python interpreter for LLDB in its build dir
JDevlieghere Jul 31, 2020
4e003dc
[Tests] Mark two test cases 'UNSUPPORTED: use_os_stdlib'
rintaro Jul 31, 2020
8983fac
Merge pull request #33239 from rintaro/tests-unsupported-os-stdlib
rintaro Jul 31, 2020
0cac079
[TypeChecker] Diagnose empty `switch` statements in function builder …
xedin Jul 31, 2020
1d78fe1
[Sema/Index] Resolve #keyPath components so they can be indexed
Aug 1, 2020
1b6f377
test: restore Windows compatibility
compnerd Aug 1, 2020
e35d2d3
Merge pull request #33238 from hborla/invalid-wrapped-value-placehold…
hborla Aug 1, 2020
ff2a12a
test: convert the output to string
compnerd Aug 1, 2020
6c906b0
[BuilderTransform] Explicitly disallow empty case statements in switch
xedin Aug 1, 2020
79ff5e3
Merge pull request #33241 from xedin/rdar-65983237
xedin Aug 1, 2020
97a8919
`guard` statements aren't really labeled statements
DougGregor Aug 1, 2020
6862809
Reimplement `break` statement target determination using ASTScope.
DougGregor Aug 1, 2020
3612754
Reimplement `continue` statement target determination using ASTScope.
DougGregor Aug 1, 2020
9709af5
[ASTScope] Use labeled statements query to compute switch depth
DougGregor Aug 1, 2020
8ac2abc
[Tests] Guard Float80 usage in AutoDiff test
rintaro Aug 1, 2020
337501e
Merge pull request #33227 from AnthonyLatsis/unbound-thinout-1
AnthonyLatsis Aug 1, 2020
6e99217
Merge pull request #33248 from rintaro/autodiff-rdar66409898
rintaro Aug 1, 2020
03168d7
Merge pull request #33243 from compnerd/compatibility
compnerd Aug 1, 2020
84f44bf
Merge pull request #33244 from compnerd/simulation
compnerd Aug 1, 2020
2cd2be5
Cope with ASTScope being disabled in statement checker.
DougGregor Aug 1, 2020
96587bc
Refactor construction of `ModuleDecl::ImportFilter`s to use new initi…
srinikhil-07 Aug 1, 2020
827ec9d
[ASTScope] Use ASTScope to find fallthrough source/dest cases.
DougGregor Aug 2, 2020
4ab0111
[Statement checker] Eliminate state for defer-at-end-of-block warning.
DougGregor Aug 2, 2020
5dc9b1e
[Statement checker] Localize 'fallthrough' checking of case variable …
DougGregor Aug 2, 2020
cc17aef
[Statement checker] Remove redundant state.
DougGregor Aug 2, 2020
cc01438
Update the Xcode version to Xcode 12 beta 3
shahmishal Aug 2, 2020
0685b28
Merge pull request #33119 from owenv/closure-matching-note
owenv Aug 2, 2020
133554c
Windows: add DWMAPI to modulemap
compnerd Aug 2, 2020
ba7ecfb
SIL: small refactoring of swift::findInitializer
eeckstein Jul 31, 2020
568c156
Mem2Reg: fix a wrong assert
eeckstein Jul 31, 2020
2a03543
SILOptimizer: make a separate SROA pass for high-level SIL, which doe…
eeckstein Jul 31, 2020
4d03eb4
SILOptimizer: Move the StringOptimization a bit earlier in the pipeline.
eeckstein Jul 31, 2020
e3f3b75
StringOptimization: handle static let variables for String constant f…
eeckstein Jul 31, 2020
a31f51d
[NFC] Remove empty check for SingleExpression in Refactoring.cpp find…
LucianoPAlmeida Aug 3, 2020
9bac363
Merge pull request #33232 from eeckstein/string-optimization
eeckstein Aug 3, 2020
1d4009a
Merge pull request #33253 from compnerd/dwm
compnerd Aug 3, 2020
41adee1
test: fix the inverted conversion
compnerd Aug 3, 2020
655b03d
Add isTypeErasedGenericClassType to TypeBase.
aschwaighofer Jul 31, 2020
2680b0c
Merge pull request #33236 from benlangmuir/semantic-highlight-test-ra…
benlangmuir Aug 3, 2020
1a77850
IRGen: Don't drop method descriptors for vtable-elided internal methods.
jckarter Jul 30, 2020
6714cef
Merge pull request #33254 from DougGregor/stmt-checker-astscope
DougGregor Aug 3, 2020
c6ebea4
[sil] Define emitLowered{Load,Store} in type lowering and expose emit…
gottesmm Jul 13, 2020
4c7cd16
Merge pull request #33245 from nathawes/index-key-paths
Aug 3, 2020
270b5dc
Merge pull request #33118 from varungandhi-apple/vg-builder-pattern-E…
varungandhi-apple Aug 3, 2020
c6ea30c
Instead of random file name, use a hash as a deterministic name for S…
kubamracek Aug 3, 2020
ba46bc4
[lower-agg-instrs] Update for ossa.
gottesmm Jul 10, 2020
12d652e
[ownership] Update SROA to support OSSA.
zoecarver Apr 10, 2020
565478c
[NFC] Drop a boolean in favor of clang::Module::NameVisibilityKind
CodaFi Aug 3, 2020
4dde3ac
[NFC] Convert DWARF Module import graph query into assertion
CodaFi Aug 3, 2020
a0af6e5
Always Make The Top-Level Module Visible
CodaFi Aug 3, 2020
1ac9917
Revert "[Apple Silicon] Adjust linking deployment target from 11.0 do…
beccadax Jul 31, 2020
8a820e7
Merge pull request #33258 from compnerd/conversion
compnerd Aug 3, 2020
5936ddb
[CodeCompletion] Disable multi trailing closure completion at newline
rintaro Aug 3, 2020
c7ecce4
Merge pull request #33259 from aschwaighofer/add_to_type_base_isTypeE…
aschwaighofer Aug 3, 2020
f0cf220
DependenciesScanner: add implicitly imported modules to dependencies …
nkcsgexi Aug 3, 2020
2e4d76c
Merge pull request #33257 from LucianoPAlmeida/fixme-remove-check
LucianoPAlmeida Aug 3, 2020
00573dd
[NFC][Sema] Move typeCheckConditionForStatement() to TypeCheckStmt.cpp
rintaro Aug 3, 2020
9a88b4e
Merge pull request #33235 from JDevlieghere/use-lldb-python-interpreter
JDevlieghere Aug 3, 2020
ec8637c
[CodeCompletion] Cleanup typeCheckContextAt()
rintaro Aug 3, 2020
28cc144
[IRGen] Add main() to __swift5_entry.
nate-chandler Aug 1, 2020
ab04345
Merge pull request #33262 from rintaro/ide-completion-rdar66456159
rintaro Aug 3, 2020
d2bff92
IRGen: Don't emit method descriptors for derivative functions.
jckarter Jul 31, 2020
3882beb
[NFC] Use consistent naming scheme for predicate methods. (#33265)
varungandhi-apple Aug 3, 2020
12ffdd3
Merge pull request #32885 from gottesmm/pr-9162e369eb8d716656842a8502…
gottesmm Aug 3, 2020
9f6f93a
Merge pull request #33260 from gottesmm/pr-8fc080f91028cba90df6e39440…
gottesmm Aug 3, 2020
d89c096
[Diagnostics] Do more checking before recording `force downcast` fix
xedin Aug 3, 2020
b47698b
[TypeChecker] NFC: Add debug logging before applying solution in `app…
xedin Aug 3, 2020
a07fce6
SILGen: Lower formal callee type pre-opaque-type-substitution.
jckarter Aug 4, 2020
2840f4f
Merge pull request #33264 from nkcsgexi/onone-import-scanner
nkcsgexi Aug 4, 2020
de4872b
Merge pull request #33246 from nate-chandler/emit-main-into-entry-seg…
nate-chandler Aug 4, 2020
1724deb
[ConstraintSystem] Add a type variable merging heuristic to addJoinCo…
hborla Aug 4, 2020
6ae04f7
[NFC] Remove ModuleDecl::isClangModule in favor of isNonSwiftModule. …
mateioprea Aug 4, 2020
4fb0287
Merge pull request #33261 from CodaFi/truss-theory
CodaFi Aug 4, 2020
50a6666
Merge pull request #33214 from jckarter/prune-vtables-internal-method…
jckarter Aug 4, 2020
0153cff
Merge pull request #33268 from rintaro/sema-condforstmt-localize
rintaro Aug 4, 2020
190aeea
Simplify ASTScopeImpl::lookupFallthroughSourceAndDest.
DougGregor Aug 4, 2020
336160a
[Statement checker] Simplify findBreakOrContinueStmtTarget.
DougGregor Aug 4, 2020
f971b34
[NFC] Refactor manual size calculations in memory allocation (#33256)
mateioprea Aug 4, 2020
f787e1b
[Statement checker] Simplify checkUnknownAttrRestrictions().
DougGregor Aug 4, 2020
8e7dc70
[AutoDiff] NFC: Garden test. (#33263)
dan-zheng Aug 4, 2020
cc5f3ae
Merge pull request #31767 from owenv/dotfile-fix
owenv Aug 4, 2020
0684c62
Merge pull request #33278 from DougGregor/statement-checker-cleanups
swift-ci Aug 4, 2020
63c275c
SILOptimizer: move String concatination optimization from SILCombine/…
eeckstein Aug 4, 2020
3a3d2fd
Merge pull request #33275 from jckarter/opaque-substitution-substitution
jckarter Aug 4, 2020
b26310e
TypeLoc: Offload TypeLoc off the ASTWalker
AnthonyLatsis Aug 4, 2020
6e4e478
[NFC] [cxx-interop] Rename IsCxxNotTriviallyCopyable -> IsCxxNonTrivial.
zoecarver Aug 2, 2020
17f12da
[NFC] AST: Remove TypedPattern:getTypeLoc()
AnthonyLatsis Aug 4, 2020
7bcc4ba
[NFC] TypeLoc: Rid performTypeLocChecking off TypeLoc
AnthonyLatsis Aug 2, 2020
b0b1a9c
test: permit running executable tests on macOS on ASi
compnerd Aug 4, 2020
857dce9
Merge pull request #32966 from xymus/mcpu-flag-for-clang
xymus Aug 4, 2020
9b33ffa
Merge pull request #33272 from xedin/rdar-65254452
xedin Aug 4, 2020
93ff18b
test: macOS on ASi conforms to the stable ABI
compnerd Aug 4, 2020
b2d2cf0
Merge pull request #33252 from zoecarver/cxx/rename-is-cxx-non-trivial
swift-ci Aug 4, 2020
aa6e600
Merge pull request #33282 from eeckstein/string-optimization
eeckstein Aug 4, 2020
b50a2cf
Merge pull request #33251 from AnthonyLatsis/type-locura-1
CodaFi Aug 4, 2020
00e4a76
Revert "[Sema/Index] Resolve #keyPath components so they get handled …
rintaro Aug 4, 2020
7e60a73
Merge pull request #33168 from drexin/wip-fix-resource-folder
drexin Aug 4, 2020
d67d7eb
[Serialization] Look for cross-ref errors inside type errors (#33271)
Aug 4, 2020
154e566
Merge pull request #33285 from compnerd/asi-rev-engines
compnerd Aug 4, 2020
9f8ba0a
Merge pull request #33277 from brentdax/stop-pretending
beccadax Aug 4, 2020
02075d7
ExplicitModule: remove all search paths for command lines to explicit…
nkcsgexi Aug 4, 2020
78f0259
Merge pull request #33283 from AnthonyLatsis/type-locura-2
AnthonyLatsis Aug 4, 2020
6017ef5
[ownership] Begin updating existential specializer.
gottesmm Aug 4, 2020
9800790
[Diagnostics] Detect and diagnose type mismatches related to function…
xedin Aug 4, 2020
f97d68f
Merge pull request #33290 from apple/revert-33245-index-key-paths
rintaro Aug 4, 2020
bfbc3a7
[Test] Run __swift5_entry test on all Apple platforms.
nate-chandler Aug 4, 2020
69d8398
Merge pull request #33270 from rintaro/ide-completion-typecheckcontextat
rintaro Aug 4, 2020
8c5d079
Merge pull request #33287 from compnerd/ASi-ABI
compnerd Aug 4, 2020
1901f81
[NFC] Break TypeResolver Down
CodaFi Aug 5, 2020
d7b005f
[NFC] Drop unused parameter from applyNonEscaping
CodaFi Aug 5, 2020
ccdc91b
[NFC] Ditch SaveAndRestore for Local Resolvers
CodaFi Aug 5, 2020
977196f
Merge pull request #33289 from nkcsgexi/remove-search-path-building-i…
nkcsgexi Aug 5, 2020
8c0ee61
[utils] Add Uxtheme.h to VFS overlay
smeenai Aug 5, 2020
8e46880
Merge pull request #33298 from xedin/rdar-65413640
xedin Aug 5, 2020
28b2f1e
Merge pull request #33295 from gottesmm/pr-b4c03d477d7e5debea73714453…
gottesmm Aug 5, 2020
41176b1
Fix glibc.modulemap generation
drexin Aug 5, 2020
9d8e41a
Merge pull request #33303 from CodaFi/ownership-is-ninety-percent-of-…
CodaFi Aug 5, 2020
3502e07
[Mangling] Add a new mangling for opaque return type to use when mang…
theblixguy Aug 5, 2020
9f25450
[NFC] Rid ourselves of a troublesome test
beccadax Aug 5, 2020
4c4bc92
Merge pull request #33313 from brentdax/depose-the-pretender
rintaro Aug 5, 2020
57d5c4d
Merge pull request #33311 from drexin/wip-fix-glibc-modulemap-generation
rintaro Aug 5, 2020
09fd729
[Statement checker] Factor out 'fallthrough' checking a bit more.
DougGregor Aug 4, 2020
6c3ad10
[Statement checker] Always wire up case vars with bindSwitchCasePatte…
DougGregor Aug 5, 2020
b8485d6
StringOptimization: fix a crash when constant folding the type name o…
eeckstein Aug 5, 2020
a1444ce
[AST] NFC: Fix ForeignErrorConvention constructor
davezarzycki Aug 5, 2020
a577a87
[ExprContextAnalysis] Look into base type of optional as well when co…
theblixguy Aug 5, 2020
5ac3e7c
Merge pull request #33315 from eeckstein/fix-string-optimization
swift-ci Aug 5, 2020
7dabd46
Merge pull request #33314 from DougGregor/bind-case-pattern-vars
DougGregor Aug 5, 2020
e4f5cc2
Merge pull request #33280 from davezarzycki/pr33280
davezarzycki Aug 5, 2020
8d21750
Frontend: support dumping the JIT state
compnerd Aug 4, 2020
849c636
[AutoDiff] Fix differentiation for non-wrt `inout` parameters. (#33304)
dan-zheng Aug 5, 2020
d3f132b
Merge pull request #33302 from nate-chandler/emit-main-into-entry-seg…
nate-chandler Aug 5, 2020
493d102
[Localization] Ignore diagnostic IDs that are available in YAML and n…
HassanElDesouky Aug 5, 2020
d2cb1ca
[Diagnostics] NFC: Adjust `en.yaml` to mirror diagnostics in `.def` f…
xedin Aug 5, 2020
c64ca9a
Merge pull request #33301 from compnerd/jit-state-of-mind
CodaFi Aug 5, 2020
55c2e01
[Localization] Add comments
HassanElDesouky Aug 5, 2020
9b2fd2d
Merge pull request #33307 from smeenai/master
compnerd Aug 5, 2020
8362643
Merge pull request #33317 from xedin/adjust-yaml-diags
xedin Aug 5, 2020
ef6c374
[Sema/Index] Resolve #keyPath components so they can be indexed
Aug 1, 2020
b647245
Merge pull request #33316 from HassanElDesouky/localization-ignoreIDs
xedin Aug 5, 2020
a84cf7f
[Locale] Serialize YAML to an OnDiskHashTable format and create a too…
HassanElDesouky Jul 27, 2020
8ee4e93
[Localization] Simplify implementation of iterator over YAML
xedin Jul 29, 2020
8a1b620
[Localization] Serialization writer should own the inserted data
xedin Jul 29, 2020
8d8da1b
[Localization] Adjust types associated with reader/writer info
xedin Jul 30, 2020
6b28c2f
[SIL] Add flag to SILFunction to indicate async.
nate-chandler Aug 4, 2020
d0c1a45
DependenciesScanner: teach the scanner to diagnose dependency cycles
nkcsgexi Aug 5, 2020
0103b79
[Localization] Adjust cmake to include serialized diagnostics in tool…
xedin Jul 31, 2020
67dbef5
[Localization] NFC: Include all of the headers based on the types used
xedin Aug 5, 2020
3a4d156
[Localization] Switch serialization format to use DiagID as a key
xedin Aug 5, 2020
5e13a53
[Localization] Make return type of the serialization main cross platform
xedin Aug 6, 2020
3ad98a5
[Docs] Fix broken url and filename (#33318)
gabeiglio Aug 6, 2020
1fbdd7c
Merge pull request #33274 from nate-chandler/silfunction-async
nate-chandler Aug 6, 2020
1e95349
Merge pull request #33322 from nkcsgexi/diagnose-cycle-scanner
nkcsgexi Aug 6, 2020
ceeb724
Don't build SwiftUnitTests for cross compile host
shahmishal Aug 6, 2020
bb356d3
Don't run LLDB cross compile host test suite
shahmishal Aug 6, 2020
9adbace
Remove compiler-rt from install targets for cross compile host
shahmishal Aug 6, 2020
2b62570
Merge pull request #33022 from HassanElDesouky/localization-serializa…
xedin Aug 6, 2020
0efb86a
[ConstraintSystem] Add an overload of addJoinConstraint that takes in
hborla Aug 4, 2020
43aafcd
[CSGen] Use addJoinConstraint for joining array literal element types.
hborla Aug 4, 2020
cd44ca8
[ConstraintSystem] Move getAtomicLiteralKind to TypeVariableType::Imp…
hborla Aug 5, 2020
c41dd21
[test] Ensure clang importer sdk uses its own CoreFoundation overlay
edymtt Aug 5, 2020
65327ae
test: repair the prespecialized-metadata tests on ASi
compnerd Aug 6, 2020
48b0802
test: swap parameters in test assertion (NFC)
compnerd Aug 6, 2020
7966ab4
test: disable a couple of IRGen tests on ASi
compnerd Aug 6, 2020
145b8ae
LLVMMergeFunctions: allow more parameters if the function is bigger
eeckstein Aug 6, 2020
755f6aa
AST, SIL: Remove UTF16 encoding from StringLiteralExpr and StringLite…
eeckstein Aug 4, 2020
b265541
[NFC] Document the new type variable merging heuristic in addJoinCons…
hborla Aug 6, 2020
38e2bd9
[Diagnostics] Demote availability errors to warning for decls in ObjC…
Aug 5, 2020
8da019c
[Syntax] Fix grammar and parsing for 'async'.
DougGregor Aug 6, 2020
d82c6cb
[Syntax] Fix syntax tree creation for __await expressions.
DougGregor Aug 6, 2020
6ff46ae
[Concurrency] Add serialization test for `async`
DougGregor Aug 6, 2020
3aa4f74
Add missing include to fix build issues on master-next and master-reb…
Aug 6, 2020
0e03628
Merge pull request #33327 from compnerd/metaconfiguration
compnerd Aug 6, 2020
9b790d0
Merge pull request #33323 from apple/shahmishal/support-cross-compile…
shahmishal Aug 6, 2020
989a432
[NFC] Update array literal type checking performance validation tests.
hborla Aug 6, 2020
f78a87a
Merge pull request #33329 from compnerd/labelling
compnerd Aug 6, 2020
e26aeca
[Runtime] Fix the isa mask assert for ARM64e.
mikeash Aug 6, 2020
6a5522f
[Syntax] Fix type syntax tests for 'async'.
DougGregor Aug 6, 2020
094aa8f
Fix build error due to missing include of llvm/Support/FileSystem.h
plotfi Aug 6, 2020
aa229c2
[Localization] Fully qualify `swift-serialize-diagnostics` tool
xedin Aug 6, 2020
672f238
Merge pull request #33335 from nathawes/add-missing-include
Aug 6, 2020
69abfc1
Merge pull request #33320 from nathawes/index-key-paths
Aug 6, 2020
d3f0de8
[SE-0163] Migrate from deprecated Unicode APIs (part 3) (#33175)
benrimmington Aug 6, 2020
ad83b21
Add another test case to test/Constraints/sr12365.swift
slavapestov Aug 6, 2020
34650e8
Merge pull request #32799 from AnthonyLatsis/sself-is-fixed
slavapestov Aug 6, 2020
19fce32
[Diagnostics] For array element conversion failures, emit an error me…
hborla Aug 7, 2020
d71a406
Merge pull request #33344 from plotfi/master
swift-ci Aug 7, 2020
9c9c1af
Merge pull request #33348 from slavapestov/testcase-rdar66492626
slavapestov Aug 7, 2020
b981d83
Merge pull request #33326 from edymtt/seal-clang-importer-sdk
CodaFi Aug 7, 2020
b98085d
[Doc] Update CI trigger for CentOS and Ubuntu
shahmishal Aug 7, 2020
f9e54e1
Merge pull request #33353 from apple/shahmishal/doc/trigger-update
shahmishal Aug 7, 2020
003ca97
Merge pull request #33333 from DougGregor/concurrency-syntax-fixes
DougGregor Aug 7, 2020
20e25e4
Merge pull request #33346 from xedin/quality-diag-serialization-tool
xedin Aug 7, 2020
faf7994
Merge pull request #33331 from eeckstein/merge-functions
eeckstein Aug 7, 2020
ea30413
Merge pull request #33288 from eeckstein/string-optimization
eeckstein Aug 7, 2020
2ee68b9
Merge pull request #33341 from mikeash/fix-isa-mask-assert2
mikeash Aug 7, 2020
a422bfb
Merge pull request #33330 from compnerd/ASi-resilience
compnerd Aug 7, 2020
bea0238
test: format configuration to be more pythonic
compnerd Aug 4, 2020
9e81823
Merge pull request #33296 from hborla/merge-joined-literal-typevars
hborla Aug 7, 2020
84ea2a9
SR-13362: no baseline is available for the standard library on ASi
compnerd Aug 7, 2020
88a8498
Merge pull request #33357 from compnerd/pythonista
compnerd Aug 7, 2020
13f2d3b
Merge pull request #33359 from compnerd/baseline
lorentey Aug 7, 2020
8762cfe
Merge remote-tracking branch 'apple/master' into katei/merge-master-2…
kateinoigakukun Aug 7, 2020
ce5f7e4
[WASM] Add AAarch64 target to cross-compile for arm64
kateinoigakukun Aug 7, 2020
51c92f5
[WASM] Add SWIFTWASM_DISABLE_REFLECTION_TEST to disable building swif…
kateinoigakukun Aug 8, 2020
36d89a2
[WASM] Add SWIFT_CC(swift) annotation for swift_COWSanityChecksEnable…
kateinoigakukun Aug 8, 2020
575710d
[WASM] Define and declare swift_isClassType as swiftcc because it got…
kateinoigakukun Aug 9, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ docs/_build
.vs

# clangd
.cache
.clangd

#==============================================================================#
Expand Down
31 changes: 24 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ include(CheckSymbolExists)
# This is primarily to support building smaller or faster project files.
#

option(SWIFT_APPEND_VC_REV
"Embed the version control system revision in Swift"
TRUE)

option(SWIFT_INCLUDE_TOOLS
"Generate build targets for swift tools"
TRUE)
Expand Down Expand Up @@ -365,6 +369,11 @@ option(SWIFT_REPORT_STATISTICS
"Create json files which contain internal compilation statistics"
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"
FALSE)

#
# User-configurable experimental options. Do not use in production builds.
#
Expand Down Expand Up @@ -398,6 +407,10 @@ option(SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING
"Enable experimental Swift differentiable programming features"
FALSE)

option(SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY
"Enable experimental Swift concurrency model"
FALSE)

#
# End of user-configurable options.
#
Expand Down Expand Up @@ -848,6 +861,7 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
message(STATUS "")

message(STATUS "Differentiable Programming Support: ${SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING}")
message(STATUS "Concurrency Support: ${SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY}")
message(STATUS "")
else()
message(STATUS "Not building Swift standard library, SDK overlays, and runtime")
Expand Down Expand Up @@ -920,13 +934,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
endif()

find_package(Python2 COMPONENTS Interpreter REQUIRED)
find_package(Python3 COMPONENTS Interpreter)
if(NOT Python3_Interpreter_FOUND)
message(WARNING "Python3 not found, using python2 as a fallback")
add_executable(Python3::Interpreter IMPORTED)
set_target_properties(Python3::Interpreter PROPERTIES
IMPORTED_LOCATION ${Python2_EXECUTABLE})
endif()
find_package(Python3 COMPONENTS Interpreter REQUIRED)

#
# Find optional dependencies.
Expand Down Expand Up @@ -1137,6 +1145,15 @@ if(SWIFT_INCLUDE_TOOLS)
# Refer to the large comment above the add_subdirectory(stdlib) call.
# https://bugs.swift.org/browse/SR-5975
add_subdirectory(tools)

# Localization targets are configured in a way that assume the swift
# frontend is being built, so trying to include them for other builds
# (like stdlib) fail!
#
# Diagnostics information is only useful for the frontend compiler
# anyway, so let's only include it if the compiler is being built,
# which at the moment seems like if SWIFT_INCLUDE_TOOLS is defined.
add_subdirectory(localization)
endif()

add_subdirectory(utils)
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ more links in the SwiftWasm ecosystem.
| **OS** | **Architecture** | **Build** |
|---|:---:|:---:|
|**[Ubuntu 16.04 ](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/ppc64le_ubuntu_16_04.json)** | PPC64LE |[![Build Status](https://ci-external.swift.org/job/oss-swift-5.1-RA-linux-ubuntu-16.04-ppc64le/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-5.1-RA-linux-ubuntu-16.04-ppc64le)|
|**[Ubuntu 16.04 ](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/aarch64_ubuntu_16.04.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-aarch64)|
|**[Ubuntu 18.04 ](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/aarch64_ubuntu_18.04.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-18.04-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-18.04-aarch64)|
|**[Ubuntu 18.04](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/aarch64_ubuntu_18.04_docker.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-ubuntu-18.04-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-ubuntu-18.04-aarch64)|
|**[Ubuntu 20.04](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/aarch64_ubuntu_20.04_docker.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-ubuntu-20.04-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-ubuntu-20.04-aarch64)|
|**[CentOS 8 ](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/aarch64_centos_8_docker.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-centos8-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-centos8-aarch64)|
|**[Amazon Linux 2](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/aarch64_amazon_linux_2_docker.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-amazon-linux-2-aarch64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-amazon-linux-2-aarch64)|
|**[Android](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_LTS_android.json)** | ARMv7 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android)|
|**[Android](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_LTS_android.json)** | AArch64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64)|
|**[Windows 2019 (VS 2017)](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_windows_2019.json)** | x86_64 | [![Build Status](https://ci-external.swift.org/job/oss-swift-windows-x86_64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-windows-x86_64)|
Expand Down Expand Up @@ -108,7 +110,7 @@ Please make sure you use Python 2.x. Python 3.x is not supported currently.

#### macOS

To build for macOS, you need [Xcode 12 beta](https://developer.apple.com/xcode/resources/).
To build for macOS, you need [Xcode 12 beta 3](https://developer.apple.com/xcode/resources/).
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.
Expand Down
9 changes: 8 additions & 1 deletion benchmark/cmake/modules/AddSwiftBenchmarkSuite.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,17 @@ function (swift_benchmark_compile_archopts)
"-F" "${sdk}/../../../Developer/Library/Frameworks"
"-sdk" "${sdk}"
"-no-link-objc-runtime")

# If we are not compiling at -Onone and are performing WMO, always emit
# optimization-records.
if(NOT ${optflag} STREQUAL "Onone" AND "${bench_flags}" MATCHES "-whole-module.*")
list(APPEND common_options "-save-optimization-record=bitstream")
endif()
endif()

set(opt_view_main_dir)
if(SWIFT_BENCHMARK_GENERATE_OPT_VIEW AND LLVM_HAVE_OPT_VIEWER_MODULES)
if(NOT ${optflag} STREQUAL "Onone" AND "${bench_flags}" MATCHES "-whole-module.*")
list(APPEND common_options "-save-optimization-record")
set(opt_view_main_dir "${objdir}/opt-view")
endif()
endif()
Expand Down Expand Up @@ -737,11 +742,13 @@ function(swift_benchmark_compile)
add_custom_target("check-${executable_target}"
COMMAND "${swift-bin-dir}/Benchmark_Driver" "run"
"-o" "O" "--output-dir" "${CMAKE_CURRENT_BINARY_DIR}/logs"
"--architecture" "${arch}"
"--swift-repo" "${SWIFT_SOURCE_DIR}"
"--independent-samples" "${SWIFT_BENCHMARK_NUM_O_ITERATIONS}"
COMMAND "${swift-bin-dir}/Benchmark_Driver" "run"
"-o" "Onone" "--output-dir" "${CMAKE_CURRENT_BINARY_DIR}/logs"
"--swift-repo" "${SWIFT_SOURCE_DIR}"
"--architecture" "${arch}"
"--independent-samples" "${SWIFT_BENCHMARK_NUM_ONONE_ITERATIONS}"
COMMAND "${swift-bin-dir}/Benchmark_Driver" "compare"
"--log-dir" "${CMAKE_CURRENT_BINARY_DIR}/logs"
Expand Down
6 changes: 6 additions & 0 deletions benchmark/scripts/Benchmark_Driver
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,12 @@ def parse_args(args):
help="optimization level to use: {O,Onone,Osize}, (default: O)",
default="O",
)
shared_benchmarks_parser.add_argument(
"--architecture",
metavar="architecture",
help="current architecture (e.g., x86_64, arm64, etc)",
default=None,
)

run_parser = subparsers.add_parser(
"run",
Expand Down
4 changes: 2 additions & 2 deletions benchmark/scripts/compare_perf_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,9 @@ def compare(name):

comparisons = list(map(compare, comparable_tests))

def partition(l, p):
def partition(items, p):
return functools.reduce(
lambda x, y: x[not p(y)].append(y) or x, l, ([], [])
lambda x, y: x[not p(y)].append(y) or x, items, ([], [])
)

decreased, not_decreased = partition(
Expand Down
24 changes: 21 additions & 3 deletions benchmark/scripts/perf_test_driver/perf_test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
from __future__ import print_function

import functools
import glob
import multiprocessing
import os
import platform
import re
import subprocess

Expand Down Expand Up @@ -80,6 +82,22 @@ def _unwrap_self(args):
return type(args[0]).process_input(*args)


def get_benchmark_executable(binary_dir, opt_level):
suffix = opt_level + "-" + platform.machine() + "*"
pattern = os.path.join(binary_dir, "Benchmark_" + suffix)
executables = glob.glob(pattern)
if len(executables) == 0:
raise ValueError(
"No benchmark executable for file name pattern " +
pattern + " found")
if len(executables) > 1:
raise ValueError(
"Multiple benchmark executables for file name pattern " +
pattern + " found\n" +
str(executables))
return executables[0]


BenchmarkDriver_OptLevels = ["Onone", "O", "Osize"]


Expand All @@ -92,7 +110,7 @@ def __init__(
opt_levels=BenchmarkDriver_OptLevels,
):
self.targets = [
(os.path.join(binary_dir, "Benchmark_%s" % o), o) for o in opt_levels
(get_benchmark_executable(binary_dir, o), o) for o in opt_levels
]
self.xfail_list = xfail_list
self.enable_parallel = enable_parallel
Expand All @@ -112,8 +130,8 @@ def run_for_opt_level(self, binary, opt_level, test_filter):
print("testing driver at path: %s" % binary)
names = []
output = subprocess.check_output([binary, "--list"], universal_newlines=True)
for l in output.split("\n")[1:]:
m = BENCHMARK_OUTPUT_RE.match(l)
for line in output.split("\n")[1:]:
m = BENCHMARK_OUTPUT_RE.match(line)
if m is None:
continue
names.append(m.group(1))
Expand Down
Loading