Skip to content

Update swift:main to support llvm-project:stable/20210726 changes (Rebranch merge) #39473

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 2,163 commits into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2163 commits
Select commit Hold shift + click to select a range
ebad328
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 1, 2021
5ef6245
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 1, 2021
171d59a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 1, 2021
284992b
Adapt testcase to upstream LLVM changes in coro::salvageDebugInfo
adrian-prantl Sep 1, 2021
2bcbf0c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 1, 2021
ee3c418
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
2a74582
Update test for llvm change D109119
adrian-prantl Sep 2, 2021
a453469
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
983bdf3
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
e36da0b
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
8708f8d
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
cd7ed01
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
7fd9dd2
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
8e2be88
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
ee8836d
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
0c7778f
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
0fa1de5
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
88d5cce
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 2, 2021
6fb243f
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 3, 2021
b6afd21
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 3, 2021
d11680f
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 3, 2021
00d00b1
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 3, 2021
cd6ba35
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 3, 2021
0769d81
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 3, 2021
790ed98
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 3, 2021
806395d
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 3, 2021
2bbea54
IRGen: Use llvm.compiler.used instead of llvm.used on ELF
aschwaighofer Sep 3, 2021
b9de9a9
Fix elf tests
aschwaighofer Sep 3, 2021
0bee886
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 3, 2021
037fab0
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 3, 2021
ebad7ad
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 3, 2021
05f7c27
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 4, 2021
06c409d
IRGenDebugInfo: Unique DILocalVariables.
adrian-prantl Sep 3, 2021
399a8b4
Fix build for older compilers
adrian-prantl Sep 3, 2021
ea4a568
Simplify code (NFC)
adrian-prantl Sep 3, 2021
97b07f9
Delete unnecessary artificial debug function argument debug info.
adrian-prantl Sep 3, 2021
44f2656
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 4, 2021
8e7ca62
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 4, 2021
f821db3
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 4, 2021
98ceaf0
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 4, 2021
cb32b55
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 4, 2021
9f71597
Merge pull request #39150 from aschwaighofer/elf_compile_used_fix
aschwaighofer Sep 4, 2021
6c99605
Assign variable names for anonymous function arguments in SILGen.
adrian-prantl Sep 3, 2021
2673256
Remove spurious anonymous function arguments introduced by PartialApp…
adrian-prantl Sep 4, 2021
259480a
Update debuginfo tests for slightly shuffled i386 output
adrian-prantl Sep 5, 2021
f76ac1a
Merge pull request #39166 from adrian-prantl/82313550
adrian-prantl Sep 5, 2021
1996fff
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 6, 2021
1c3dd59
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 6, 2021
cf746f0
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 6, 2021
b304370
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 7, 2021
a2e0896
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 7, 2021
2e0f68d
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 7, 2021
62782f1
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 7, 2021
cb41ff7
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 7, 2021
08f1ddb
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 7, 2021
b408eab
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 7, 2021
3e89113
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 7, 2021
37f2574
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 7, 2021
6fe11e3
Fix a buffer overflow when substituting anonymous function arguments …
adrian-prantl Sep 8, 2021
b9ae239
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
4c69ad8
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
8463620
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
87204b4
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
483a25c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
be57b96
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
886daca
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
f6505bc
Remove assertion. The LLDB testsuite on Apple Silicon hits this code …
adrian-prantl Sep 8, 2021
bb766fc
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
b627a0c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
25c0e15
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
656a917
Disabling driver-time-compilation test
etcwilde Sep 8, 2021
a459ff3
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
a34e4eb
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 8, 2021
8260f90
Merge pull request #39215 from etcwilde/ewilde/rebranch/disable-drive…
etcwilde Sep 9, 2021
8c9ce1c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
90ad227
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
59ef57c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
672b3a3
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
f3212c5
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
a8dc9f7
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
1887860
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
0b7d43e
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
ebfc6e6
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
25e00d5
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
ccebcfb
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
fc2f91c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 9, 2021
aad4cc6
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
fff261e
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
9552b4b
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
cfd96a8
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
46f9d68
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
40eafac
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
55a6cee
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
4b82b5e
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
9696035
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
7cd1fd9
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
b56685e
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
6cfc233
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
ece59c4
(Stash) Add in-memory representation, parsing and printing
mshockwave Sep 2, 2021
a9cb668
(Stash) basic IRGen support
mshockwave Sep 2, 2021
b52fdc6
(Stash) Salvaging debug info from deleted `struct` instruction
mshockwave Sep 7, 2021
69ffafe
(Stash) Salvage debug info from deleted `index_addr` instruction
mshockwave Sep 8, 2021
e1ba7f4
(Stash) Add SILVerifier rule to prevent conflicting arg DIVariable
mshockwave Sep 10, 2021
9e5a574
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 10, 2021
ea6dca3
Fix SIL Verifier
adrian-prantl Sep 11, 2021
69f43b3
test: repair IRGen.objc_protocol_vars on Windows
compnerd Sep 11, 2021
54989e1
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 11, 2021
e7965ce
IRGen: remove ELF autolink discard gadget
compnerd Sep 11, 2021
2f17e96
Merge pull request #39262 from compnerd/coff
compnerd Sep 11, 2021
857bcb4
Remove the now obsolete check for the ELF gadget
compnerd Sep 11, 2021
24ba2d1
Update ELF-remove-autolink-section.swift
compnerd Sep 11, 2021
e30941c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 12, 2021
ebc9a3d
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 12, 2021
debf283
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 13, 2021
f993c42
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 13, 2021
37bd8b5
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 13, 2021
9a871a9
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 13, 2021
327b16d
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 13, 2021
e084496
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 13, 2021
0fd4d30
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 13, 2021
1573a0a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 13, 2021
70297e9
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 13, 2021
e3f2803
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 13, 2021
92a602d
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 14, 2021
80eefa7
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 14, 2021
eee24e8
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 14, 2021
1d5a202
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 14, 2021
5c49c67
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 14, 2021
b429191
Merge branch 'main' into rebranch
nate-chandler Sep 15, 2021
0cc70b1
Merge pull request #39322 from nate-chandler/20210915/merge-main-to-r…
nate-chandler Sep 15, 2021
e6c25be
fix SingleCommandCompilationDatabase references
etcwilde Sep 15, 2021
70213c6
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 15, 2021
b5ac11a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
3c25720
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
9e481fa
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
82fd44c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
bbc6618
Merge pull request #39333 from etcwilde/ewilde/rebranch/fix-command-d…
etcwilde Sep 16, 2021
3b53942
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
8be389b
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
e643f11
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
f33ea59
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
b03e896
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
9052855
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
cc4b94b
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
37b847a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
34e1539
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 16, 2021
e3e39cd
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 17, 2021
e48d09c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 17, 2021
945fa60
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 17, 2021
2cd3b7b
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 17, 2021
352533a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 17, 2021
fd19e4b
Distinguish between storage size of a fragment and storage size for t…
adrian-prantl Sep 17, 2021
eb2b7ba
Fix local variable uniquing to take into account tail-allocated varia…
adrian-prantl Sep 17, 2021
3586389
Use a custom diagnostic when parsing SIL DIExpressions
adrian-prantl Sep 17, 2021
dc50c93
Handle missing DIExprOperator kinds in IRGenDebugInfo
adrian-prantl Sep 17, 2021
95162fa
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 18, 2021
3581978
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 18, 2021
4d725b5
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 19, 2021
e5bb894
Merge pull request #39264 from compnerd/82640394
compnerd Sep 19, 2021
e5f7803
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 19, 2021
bc76fc3
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 19, 2021
2548514
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 20, 2021
9998f3e
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 20, 2021
14a95f8
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 20, 2021
7adf077
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 20, 2021
28d0de5
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 20, 2021
2edf098
Disable test on 32-bit CPUs
adrian-prantl Sep 20, 2021
7e7333e
Merge pull request #39341 from adrian-prantl/min-salvage-pr
adrian-prantl Sep 20, 2021
fcc77a6
Merge pull request #39032 from adrian-prantl/79462915-5.5
adrian-prantl Sep 20, 2021
7ed62df
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 20, 2021
5bee1bf
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 21, 2021
296c482
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 21, 2021
8fba532
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 21, 2021
ca1d725
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 21, 2021
6f23069
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 21, 2021
64e7db3
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 21, 2021
d12197f
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 21, 2021
f5ee6fc
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 21, 2021
8d9ef3f
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 21, 2021
0cad48c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 21, 2021
4ec5df9
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 21, 2021
0e76562
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 22, 2021
0e6fed1
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 22, 2021
9070c57
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 22, 2021
f8df0dc
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 22, 2021
5f454ca
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 22, 2021
97ba39f
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 22, 2021
f0def9a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 22, 2021
dfbb12a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 22, 2021
0977c1b
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 22, 2021
102e1ce
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 22, 2021
ed0b1d0
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 22, 2021
54d4ab6
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
bcc95db
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
ca4059e
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
24855ed
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
0595bf4
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
44e014c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
6137e31
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
d11c951
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
0edae5a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
2fce52d
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
55c009d
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
1771f59
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
11c0f35
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
a7839bb
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
53898e3
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
b736faa
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
b55a81d
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 23, 2021
0d93fd6
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
e961252
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
7c4a64d
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
663362c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
401e47c
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
e82a4a6
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
591233f
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
0f56ea5
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
588a179
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
220daa4
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
dbeb676
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
3b702bf
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
0114fca
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
b1bb91a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
0e83389
Wrap assertion code in infndef NDEBUG to fix non-asserts build.
adrian-prantl Sep 24, 2021
f88c495
Merge pull request #39452 from adrian-prantl/ndebug-rebranch
adrian-prantl Sep 24, 2021
bc61e6a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 24, 2021
0d6ac8f
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 25, 2021
b82565a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 25, 2021
4657676
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 25, 2021
4433087
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 25, 2021
fa88fb5
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 25, 2021
4de6375
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 26, 2021
590bedc
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 27, 2021
8997230
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 27, 2021
83b1981
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 27, 2021
ba1b1f2
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 27, 2021
1c8149b
tests: disable Concurrency.throwing
compnerd Sep 27, 2021
ceb4559
Merge pull request #39468 from compnerd/sr-15252
compnerd Sep 27, 2021
d68dc5a
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 27, 2021
72089ec
Disabling ClangImporter/overlay.swift
etcwilde Sep 27, 2021
35891ee
Merge pull request #39472 from etcwilde/ewilde/rebranch/disable-overlay
etcwilde Sep 27, 2021
9d3b759
Update llvm-project branch to stable/20210726
Sep 27, 2021
2b9a9e4
LLVMPasses: adapt to ba664d9
compnerd Sep 28, 2021
79375b7
Merge pull request #39475 from compnerd/ba664d9
shahmishal Sep 28, 2021
6956b7c
Replace /usr/bin/python with /usr/env/python
etcwilde Sep 28, 2021
3f18865
Merge pull request #39486 from etcwilde/ewilde/rebranch/fix-python-paths
etcwilde Sep 29, 2021
c51550f
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Sep 30, 2021
3f8fea8
Merge remote-tracking branch 'origin/main' into rebranch
swift-ci Oct 6, 2021
1988581
Fix DebugInfo/prologue.swift for
etcwilde Oct 8, 2021
adf8ba3
Merge pull request #39660 from etcwilde/ewilde/fix-swift-prologue
etcwilde Oct 8, 2021
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 benchmark/scripts/compare_perf_tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# ===--- compare_perf_tests.py -------------------------------------------===//
Expand Down
2 changes: 1 addition & 1 deletion benchmark/scripts/test_Benchmark_Driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# ===--- test_Benchmark_Driver.py ----------------------------------------===//
Expand Down
2 changes: 1 addition & 1 deletion benchmark/scripts/test_compare_perf_tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# ===--- test_compare_perf_tests.py --------------------------------------===//
Expand Down
2 changes: 1 addition & 1 deletion benchmark/scripts/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# ===--- test_utils.py ---------------------------------------------------===//
Expand Down
1 change: 1 addition & 0 deletions include/swift/AST/ASTWalker.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#ifndef SWIFT_AST_ASTWALKER_H
#define SWIFT_AST_ASTWALKER_H

#include "llvm/ADT/Optional.h"
#include "llvm/ADT/PointerUnion.h"
#include <utility>

Expand Down
2 changes: 2 additions & 0 deletions include/swift/AST/DiagnosticsParse.def
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ ERROR(sil_invalid_column_in_sil_location,none,
"column number must be a positive integer", ())
ERROR(sil_invalid_scope_slot,none,
"scope number must be a positive integer ", ())
ERROR(sil_invalid_constant,none,
"constant operand must be an integer literal ", ())
ERROR(sil_scope_undeclared,none,
"scope number %0 needs to be declared before first use", (unsigned))
ERROR(sil_scope_redefined,none,
Expand Down
1 change: 1 addition & 0 deletions include/swift/AST/Identifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "swift/Basic/EditorPlaceholder.h"
#include "swift/Basic/Debug.h"
#include "swift/Basic/LLVM.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/PointerUnion.h"
#include "llvm/Support/TrailingObjects.h"
Expand Down
9 changes: 9 additions & 0 deletions include/swift/AST/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ class ModuleDecl

AccessNotesFile accessNotes;

/// Used by the debugger to bypass resilient access to fields.
bool BypassResilience = false;

ModuleDecl(Identifier name, ASTContext &ctx, ImplicitImportInfo importInfo);

public:
Expand Down Expand Up @@ -290,6 +293,12 @@ class ModuleDecl
AccessNotesFile &getAccessNotes() { return accessNotes; }
const AccessNotesFile &getAccessNotes() const { return accessNotes; }

/// Return whether the module was imported with resilience disabled. The
/// debugger does this to access private fields.
bool getBypassResilience() const { return BypassResilience; }
/// Only to be called by MemoryBufferSerializedModuleLoader.
void setBypassResilience() { BypassResilience = true; }

ArrayRef<FileUnit *> getFiles() {
assert(!Files.empty() || failedToLoad());
return Files;
Expand Down
1 change: 1 addition & 0 deletions include/swift/AST/Ownership.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "llvm/Support/raw_ostream.h"
#include <stdint.h>
#include <assert.h>
#include <climits>

namespace swift {

Expand Down
2 changes: 1 addition & 1 deletion include/swift/AST/TBDGenRequests.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class TBDGenDescriptor final {
const TBDGenOptions &getOptions() const { return Opts; }
TBDGenOptions &getOptions() { return Opts; }

const llvm::DataLayout &getDataLayout() const;
const StringRef getDataLayoutString() const;
const llvm::Triple &getTarget() const;

bool operator==(const TBDGenDescriptor &other) const;
Expand Down
1 change: 1 addition & 0 deletions include/swift/Basic/BlotSetVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include "swift/Basic/LLVM.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallVector.h"
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions include/swift/Basic/MultiMapCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#define SWIFT_BASIC_MULTIMAPCACHE_H

#include "swift/Basic/LLVM.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"

namespace swift {
Expand Down
4 changes: 2 additions & 2 deletions include/swift/Basic/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "swift/Basic/LLVM.h"
#include "swift/Config.h"
#include "llvm/ADT/StringRef.h"
#include "clang/Driver/DarwinSDKInfo.h"
#include "clang/Basic/DarwinSDKInfo.h"

namespace llvm {
class Triple;
Expand Down Expand Up @@ -105,7 +105,7 @@ namespace swift {
getSwiftRuntimeCompatibilityVersionForTarget(const llvm::Triple &Triple);

/// Retrieve the target SDK version for the given SDKInfo and target triple.
llvm::VersionTuple getTargetSDKVersion(clang::driver::DarwinSDKInfo &SDKInfo,
llvm::VersionTuple getTargetSDKVersion(clang::DarwinSDKInfo &SDKInfo,
const llvm::Triple &triple);

/// Get SDK build version.
Expand Down
1 change: 1 addition & 0 deletions include/swift/Basic/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/VersionTuple.h"
#include <array>
#include <string>

namespace swift {
Expand Down
2 changes: 1 addition & 1 deletion include/swift/LLVMPasses/Passes.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace swift {
using AAResultBase::getModRefInfo;
llvm::ModRefInfo getModRefInfo(const llvm::CallBase *Call,
const llvm::MemoryLocation &Loc) {
llvm::AAQueryInfo AAQI;
llvm::SimpleAAQueryInfo AAQI;
return getModRefInfo(Call, Loc, AAQI);
}
llvm::ModRefInfo getModRefInfo(const llvm::CallBase *Call,
Expand Down
1 change: 1 addition & 0 deletions include/swift/SIL/Notifications.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "swift/Basic/STLExtras.h"
#include "llvm/ADT/PointerUnion.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include <memory>

namespace swift {
Expand Down
28 changes: 24 additions & 4 deletions include/swift/SIL/SILBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,16 +363,34 @@ class SILBuilder {
// SILInstruction Creation Methods
//===--------------------------------------------------------------------===//

/// Substitute anonymous function arguments with "_$ArgNo".
Optional<SILDebugVariable>
substituteAnonymousArgs(llvm::SmallString<4> Name,
Optional<SILDebugVariable> Var, SILLocation Loc) {
if (!Var || !Var->ArgNo || !Var->Name.empty())
return Var;

auto *VD = Loc.getAsASTNode<VarDecl>();
if (VD && !VD->getName().empty())
return Var;

llvm::raw_svector_ostream(Name) << '_' << (Var->ArgNo - 1);
Var->Name = Name;
return Var;
}

AllocStackInst *createAllocStack(SILLocation Loc, SILType elementType,
Optional<SILDebugVariable> Var = None,
bool hasDynamicLifetime = false,
bool isLexical = false) {
llvm::SmallString<4> Name;
Loc.markAsPrologue();
assert((!dyn_cast_or_null<VarDecl>(Loc.getAsASTNode<Decl>()) || Var) &&
"location is a VarDecl, but SILDebugVariable is empty");
return insert(AllocStackInst::create(getSILDebugLocation(Loc), elementType,
getFunction(), Var, hasDynamicLifetime,
isLexical));
return insert(AllocStackInst::create(
getSILDebugLocation(Loc), elementType, getFunction(),
substituteAnonymousArgs(Name, Var, Loc), hasDynamicLifetime,
isLexical));
}

AllocRefInst *createAllocRef(SILLocation Loc, SILType ObjectType,
Expand Down Expand Up @@ -408,11 +426,13 @@ class SILBuilder {
AllocBoxInst *createAllocBox(SILLocation Loc, CanSILBoxType BoxType,
Optional<SILDebugVariable> Var = None,
bool hasDynamicLifetime = false) {
llvm::SmallString<4> Name;
Loc.markAsPrologue();
assert((!dyn_cast_or_null<VarDecl>(Loc.getAsASTNode<Decl>()) || Var) &&
"location is a VarDecl, but SILDebugVariable is empty");
return insert(AllocBoxInst::create(getSILDebugLocation(Loc), BoxType, *F,
Var, hasDynamicLifetime));
substituteAnonymousArgs(Name, Var, Loc),
hasDynamicLifetime));
}

AllocExistentialBoxInst *
Expand Down
49 changes: 45 additions & 4 deletions include/swift/SIL/SILDebugInfoExpression.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#ifndef SWIFT_SIL_DEBUGINFOEXPRESSION_H
#define SWIFT_SIL_DEBUGINFOEXPRESSION_H
#include "swift/AST/Decl.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/iterator_range.h"
Expand All @@ -36,17 +37,30 @@ enum class SILDIExprOperator : unsigned {
/// VarDecl operand pointing to the field declaration.
/// Note that this directive can only appear at the end of an
/// expression.
Fragment
Fragment,
/// Perform arithmetic addition on the top two elements of the
/// expression stack and push the result back to the stack.
Plus,
/// Subtract the top element in expression stack by the second
/// element. Then push the result back to the stack.
Minus,
/// Push an unsigned integer constant onto the stack.
ConstUInt,
/// Push a signed integer constant onto the stack.
ConstSInt
};

/// Represents a single component in a debug info expression.
/// Including operator and operand.
struct SILDIExprElement {
enum Kind {
/// A di-expression operator
/// A di-expression operator.
OperatorKind,
/// An operand that has declaration type
DeclKind
/// An operand that has declaration type.
DeclKind,
/// An integer constant value. Note that
/// we don't specify its signedness here.
ConstIntKind
};

private:
Expand All @@ -55,6 +69,7 @@ struct SILDIExprElement {
union {
SILDIExprOperator Operator;
Decl *Declaration;
uint64_t ConstantInt;
};

explicit SILDIExprElement(Kind OpK) : OpKind(OpK) {}
Expand All @@ -68,6 +83,13 @@ struct SILDIExprElement {

Decl *getAsDecl() const { return OpKind == DeclKind ? Declaration : nullptr; }

Optional<uint64_t> getAsConstInt() const {
if (OpKind == ConstIntKind)
return ConstantInt;
else
return {};
}

static SILDIExprElement createOperator(SILDIExprOperator Op) {
SILDIExprElement DIOp(OperatorKind);
DIOp.Operator = Op;
Expand All @@ -79,6 +101,12 @@ struct SILDIExprElement {
DIOp.Declaration = D;
return DIOp;
}

static SILDIExprElement createConstInt(uint64_t V) {
SILDIExprElement DIOp(ConstIntKind);
DIOp.ConstantInt = V;
return DIOp;
}
};

/// For a given SILDIExprOperator, provides information
Expand Down Expand Up @@ -231,6 +259,19 @@ class SILDebugInfoExpression {

/// Create a op_fragment expression
static SILDebugInfoExpression createFragment(VarDecl *Field);

/// Return true if this DIExpression starts with op_deref
bool startsWithDeref() const {
return Elements.size() &&
Elements[0].getAsOperator() == SILDIExprOperator::Dereference;
}

/// Return true if this DIExpression has op_fragment (at the end)
bool hasFragment() const {
return Elements.size() >= 2 &&
Elements[Elements.size() - 2].getAsOperator() ==
SILDIExprOperator::Fragment;
}
};
} // end namespace swift
#endif
12 changes: 5 additions & 7 deletions include/swift/SIL/SILInstruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -1810,13 +1810,11 @@ class TailAllocatedDebugVariable {
if (!Bits.Data.HasValue)
return None;

if (VD)
return SILDebugVariable(VD->getName().empty() ? "" : VD->getName().str(),
VD->isLet(), getArgNo(), isImplicit(), AuxVarType,
DeclLoc, DeclScope, DIExprElements);
else
return SILDebugVariable(getName(buf), isLet(), getArgNo(), isImplicit(),
AuxVarType, DeclLoc, DeclScope, DIExprElements);
StringRef name = getName(buf);
if (VD && name.empty())
name = VD->getName().str();
return SILDebugVariable(name, isLet(), getArgNo(), isImplicit(), AuxVarType,
DeclLoc, DeclScope, DIExprElements);
}
};
static_assert(sizeof(TailAllocatedDebugVariable) == 4,
Expand Down
5 changes: 4 additions & 1 deletion include/swift/SIL/SILInstructionWorklist.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "swift/SIL/SILInstruction.h"
#include "swift/SIL/InstructionUtils.h"
#include "swift/SIL/SILValue.h"
#include "swift/SILOptimizer/Utils/DebugOptUtils.h"
#include "swift/SILOptimizer/Utils/InstOptUtils.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h"
Expand Down Expand Up @@ -309,7 +310,9 @@ class SILInstructionWorklist : SILInstructionWorklistBase {
void eraseInstFromFunction(SILInstruction &instruction,
SILBasicBlock::iterator &iterator,
bool addOperandsToWorklist = true) {
// Delete any debug users first.
// Try to salvage debug info first.
swift::salvageDebugInfo(&instruction);
// Then delete old debug users.
for (auto result : instruction.getResults()) {
while (!result->use_empty()) {
auto *user = result->use_begin()->getUser();
Expand Down
13 changes: 8 additions & 5 deletions include/swift/Serialization/SerializedModuleLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,11 @@ class MemoryBufferSerializedModuleLoader : public SerializedModuleLoaderBase {
MemoryBufferSerializedModuleLoader(ASTContext &ctx,
DependencyTracker *tracker,
ModuleLoadingMode loadMode,
bool IgnoreSwiftSourceInfo)
bool IgnoreSwiftSourceInfo,
bool BypassResilience)
: SerializedModuleLoaderBase(ctx, tracker, loadMode,
IgnoreSwiftSourceInfo) {}
IgnoreSwiftSourceInfo),
BypassResilience(BypassResilience) {}

std::error_code findModuleFilesInDirectory(
ImportPath::Element ModuleID,
Expand All @@ -281,6 +283,7 @@ class MemoryBufferSerializedModuleLoader : public SerializedModuleLoaderBase {
StringRef moduleName,
const SerializedModuleBaseName &BaseName) override;

bool BypassResilience;
public:
virtual ~MemoryBufferSerializedModuleLoader();

Expand Down Expand Up @@ -310,10 +313,10 @@ class MemoryBufferSerializedModuleLoader : public SerializedModuleLoaderBase {
static std::unique_ptr<MemoryBufferSerializedModuleLoader>
create(ASTContext &ctx, DependencyTracker *tracker = nullptr,
ModuleLoadingMode loadMode = ModuleLoadingMode::PreferSerialized,
bool IgnoreSwiftSourceInfo = false) {
bool IgnoreSwiftSourceInfo = false, bool BypassResilience = false) {
return std::unique_ptr<MemoryBufferSerializedModuleLoader>{
new MemoryBufferSerializedModuleLoader(ctx, tracker, loadMode,
IgnoreSwiftSourceInfo)};
new MemoryBufferSerializedModuleLoader(
ctx, tracker, loadMode, IgnoreSwiftSourceInfo, BypassResilience)};
}
};

Expand Down
5 changes: 3 additions & 2 deletions include/swift/Syntax/AbsoluteRawSyntax.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "swift/Basic/SourceLoc.h"
#include "swift/Syntax/RawSyntax.h"

#include "llvm/ADT/STLForwardCompat.h"

namespace swift {
namespace syntax {

Expand Down Expand Up @@ -388,8 +390,7 @@ class OptionalStorage<AbsoluteRawSyntax> {
OptionalStorage(OptionalStorage &&other) = default;

template <class... ArgTypes>
explicit OptionalStorage(llvm::optional_detail::in_place_t,
ArgTypes &&...Args)
explicit OptionalStorage(llvm::in_place_t, ArgTypes &&...Args)
: Storage(std::forward<ArgTypes>(Args)...) {}

void reset() { Storage = AbsoluteRawSyntax(nullptr); }
Expand Down
Loading