Skip to content

[AArch64][WinCFI] Fix a crash due to missing seh directives #9884

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

Closed
wants to merge 265 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
265 commits
Select commit Hold shift + click to select a range
85ddd64
[Clang] SemaFunctionEffects: Fix bug where lambdas produced by templa…
dougsonos Nov 19, 2024
3703aad
[lldb] Fix a positioning bug in diagnostics output (#116711)
adrian-prantl Nov 19, 2024
7e80550
[lldb] Improve rendering of inline diagnostics on the same column (#1…
adrian-prantl Nov 19, 2024
a4b1912
[lldb] Refactor helper by using iterators and in-place edits (NFC) (#…
adrian-prantl Nov 19, 2024
a4e81b5
Merge pull request #9631 from felipepiovezan/felipe/renable_asan_tests
felipepiovezan Nov 19, 2024
ed59cc8
[lldb] Improve editline completion formatting (#116456)
JDevlieghere Nov 19, 2024
9a0958e
[clang][serialization] Blobify IMPORTS strings and signatures (#116095)
jansvoboda11 Nov 18, 2024
0f86f35
Merge pull request #9630 from adrian-prantl/cherry-pick-stable-202407…
adrian-prantl Nov 19, 2024
0cc9cf9
Add missing nullptr checks
adrian-prantl Nov 19, 2024
a657eef
[lldb] Acquire the map lock after deriving the lookup key
adrian-prantl Nov 19, 2024
bf1c3c2
[lldb] Update TestSwiftREPLCompletion for completion changes
JDevlieghere Nov 20, 2024
3f0ad22
Merge pull request #9635 from adrian-prantl/140003331
adrian-prantl Nov 20, 2024
34aedfb
Merge pull request #9636 from adrian-prantl/139841554
adrian-prantl Nov 20, 2024
e1ba6bf
Merge pull request #9633 from swiftlang/cherrypick-stable/20240723-dd…
JDevlieghere Nov 20, 2024
11f822a
Merge commit '4aaf96989196' from swift/release/6.1 into stable/20240723
Nov 21, 2024
af749d1
Merge commit 'cc4af7f3d123' from swift/release/6.1 into stable/20240723
Nov 21, 2024
aa18273
Merge commit 'cc4af7f3d123' from swift/release/6.1 into stable/20240723
Nov 22, 2024
87ce170
Merge pull request #9586 from antoniofrighetto/feature/update-api-swi…
aschwaighofer Nov 20, 2024
fdba5be
Merge pull request #9634 from swiftlang/jan_svoboda/stable-blobify-im…
jansvoboda11 Nov 20, 2024
8ae1593
Merge commit 'bb4a3760079b' from swift/release/6.1 into stable/20240723
Michael137 Nov 21, 2024
6de19b6
Merge commit 'bb4a3760079b' from swift/release/6.1 into stable/20240723
Nov 22, 2024
7df7285
Merge commit '9cc0276c5a4c' from swift/release/6.1 into stable/20240723
Nov 22, 2024
a4576cd
Merge commit 'e676df465706' from swift/release/6.1 into stable/20240723
Nov 22, 2024
981c376
[ObjC] Name lookup in methods shouldn't allow shadowing types
apple-fcloutier Nov 18, 2024
4b15493
Merge commit '7e6e9f402aaa' from swift/release/6.1 into stable/20240723
Nov 22, 2024
acc849b
Merge pull request #9618 from hamishknight/lets-try-this-again
hamishknight Nov 21, 2024
c0574d9
Merge commit '4aaf96989196' from swift/release/6.1 into stable/20240723
Nov 22, 2024
42f3e8e
Merge commit '2b61a59b5961' from swift/release/6.1 into stable/20240723
Nov 22, 2024
bd653f9
[lldb] Use SEND_ERROR instead of FATAL_ERROR in test/CMakeLists.txt (…
JDevlieghere Oct 9, 2024
9406ee5
[lldb] Check for Python 'packaging' module at configuration time (#11…
weliveindetail Oct 10, 2024
7e801d1
[lldb] Add early CMake check for 'make' tool (#111531)
weliveindetail Oct 10, 2024
c22caa1
[lldb] Fix deps loading for lldb-python on Windows and Python3.8+ (#9…
weliveindetail Oct 2, 2024
1c46691
[lldb] Support tests with nested make invocations on Windows 1/2 (#11…
weliveindetail Oct 15, 2024
5ec38f7
[lldb] Support tests with nested make invocations on Windows 2/2 (#11…
weliveindetail Oct 16, 2024
977780e
[lldb] Support even more swiftlang tests with nested make invocations…
weliveindetail Oct 15, 2024
7302c51
[lldb][test] Propagate SDKROOT env var in Shell tests on Windows
weliveindetail Oct 14, 2024
6c81253
[lldb][swift] Check runtime dependencies of SwiftREPL tests in local …
weliveindetail Oct 15, 2024
a6470fc
[lldb] Relax check for breakpoint site in Unwind/windows-unaligned-x8…
weliveindetail Nov 7, 2024
95a0bee
[lldb] Fix command-expr-diagnostics.test for Windows (#112109)
omjavaid Oct 16, 2024
85fb0df
Revert "[lldb] Fix command-expr-diagnostics.test for Windows (#112109)"
omjavaid Oct 16, 2024
af014c9
[lldb][test] Fix remote Shell tests failures on Windows host (#115716)
dzhidzhoev Nov 12, 2024
e9dd419
[lldb] Infer MSInheritanceAttr for CXXRecordDecl with DWARF on Window…
weliveindetail Nov 18, 2024
8aee057
[lldb][Mach-O] Handle shared cache binaries correctly (#117832)
jasonmolenda Nov 28, 2024
10fef7f
[LLDB] Remove decorator from XPASSes x86/Windows (#100628)
dzhidzhoev Jul 26, 2024
f1b6330
[cherrypick][LV] Vectorize Epilogues for loops with small VF but high…
juliannagele Dec 2, 2024
133e5ae
Merge pull request #9672 from jasonmolenda/cp/r140432279-handle-large…
jasonmolenda Dec 2, 2024
e8960a7
Merge commit '0261500e3b74' from swift/release/6.1 into stable/20240723
Dec 2, 2024
1fa3422
Merge commit 'db02b99c038a' from swift/release/6.1 into stable/20240723
Dec 2, 2024
4190fd0
Merge commit '3a45ba43180a' from swift/release/6.1 into stable/20240723
Dec 2, 2024
c404110
[RuntimeDyld][Windows] Add missing override to silence warning. NFC.
ahmedbougacha Nov 20, 2024
ee89982
[AArch64] Disable RLF RTTI proxy test after workaround. NFC.
ahmedbougacha Nov 20, 2024
fc6287b
Merge commit '2245e5a9cad8' from swift/release/6.1 into stable/20240723
Dec 2, 2024
31d4a33
Merge pull request #9542 from weliveindetail/cherrypick-lldb-msabi-me…
compnerd Dec 2, 2024
bbe5efb
Revert "[lldb][test] Renable tests on asan builds"
felipepiovezan Dec 3, 2024
4b4aaea
[lldb] Adapt lldb to new ASTMangler constructor
augusto2112 Dec 3, 2024
7362728
Merge pull request #9680 from felipepiovezan/felipe/rever_enabling_as…
felipepiovezan Dec 3, 2024
5fd5950
[cmake] Switch index store flag to opt-in
hamishknight Dec 3, 2024
4930d5a
Merge pull request #9683 from augusto2112/adapt-ast-mangler
augusto2112 Dec 3, 2024
222469a
[compiler-rt][Profile][Darwin] Fix a test that expected an alignment …
jroelofs Jul 25, 2024
8bca9ca
[CompilerRT][Tests] Fix profile/darwin-proof-of-concept.c (#104237)
cachemeifyoucan Aug 15, 2024
0da07d6
[lldb][CMake] If make isn't found, print a warning but don't error ou…
weliveindetail Oct 23, 2024
1e89914
Merge pull request #9684 from hamishknight/opt-in-index-data
hamishknight Dec 4, 2024
53b6f88
Define a diagnostic group for missing variadic macro arguments (#116855)
ahatanak Dec 3, 2024
52ccefb
[Matrix] Skip already fused instructions before trying to fuse multiply.
fhahn Nov 28, 2024
9ae50ae
[Matrix] Use DenseMap for ShapeMap instead of ValueMap. (#118282)
fhahn Dec 4, 2024
41551d3
[Matrix] Fix crash in liftTranspose when instructions are folded.
fhahn Dec 5, 2024
da9d5f9
Merge commit '3bbc9970d794' from swift/release/6.1 into stable/20240723
Dec 5, 2024
2ad0c13
[Swift] Update for TypeAliasType::get() change
slavapestov Dec 5, 2024
16092ea
Merge pull request #9693 from fhahn/matrix-crash
fhahn Dec 5, 2024
2cb73cd
[lldb] Thread mangling flavor together with node pointer
augusto2112 Dec 5, 2024
34af78d
[InstallAPI] Fix early return for scanning sub-directories (#100636)
cyndyishida Jul 25, 2024
e6ffc9e
[TextAPI] Add an assertion for adding duplicate libraries into a sing…
cyndyishida Aug 5, 2024
7f0e227
[readtapi] Add option to ignore architecture slices to ignore (#110615)
cyndyishida Oct 1, 2024
0b71161
[Clang][Darwin] Introduce `SubFrameworks` as a SDK default location (…
cyndyishida Nov 15, 2024
5b94604
[TextAPI] Add missing attribute to remove/merge/extract operations (#…
cyndyishida Nov 19, 2024
4388351
[CompilerRT] Remove sanitizer support for i386 watchsim (#117013)
cyndyishida Dec 3, 2024
17f4cbf
Merge commit '61f615af2e97' from swift/release/6.1 into stable/20240723
Dec 6, 2024
22b8986
Merge commit '119bd568524c' from swift/release/6.1 into stable/20240723
Dec 6, 2024
a7d4b9a
[llvm][AArch64] Fix a crash in performPostLD1Combine
jroelofs Dec 3, 2024
7286898
Merge commit 'f51dca2b3074' from swift/release/6.1 into stable/20240723
Dec 7, 2024
5e01db8
Merge pull request #9696 from slavapestov/type-alias-get-lldb
xedin Dec 8, 2024
2d44505
[lldb/DWARF] Respect member layout for types parsed through declarati…
labath Oct 2, 2024
84d41bb
Merge commit '31fd2df3a8ec' from swift/release/6.1 into stable/20240723
Dec 9, 2024
0fab38e
Merge commit '7c953db0bb23' from swift/release/6.1 into stable/20240723
Dec 9, 2024
5b300d0
Merge pull request #9708 from swiftlang/lldb/alignment-on-fwd-decl-to…
Michael137 Dec 9, 2024
8bf947d
Merge commit '2dcf63103a52' from swift/release/6.1 into stable/20240723
Dec 9, 2024
e404f88
Merge commit 'c805b71bd532' from swift/release/6.1 into stable/20240723
Dec 9, 2024
1ecc38e
Merge commit '086b11526f35' from swift/release/6.1 into stable/20240723
Dec 10, 2024
8ff38c7
Merge pull request #9513 from weliveindetail/lldb-tests-20240723
JDevlieghere Dec 11, 2024
be88cf9
[BoundsSafety] Bring full support for -fbounds-safety (#9707)
rapidsna Dec 11, 2024
ffe014a
Revert "[Modules] Process include files changes (#90319)"
bnbarham Dec 11, 2024
86fd4f5
Merge commit '99f0b042a85c' from swift/release/6.1 into stable/20240723
Dec 12, 2024
c87a20e
Merge pull request #9718 from bnbarham/temp-content-check-revert
bnbarham Dec 12, 2024
eacd872
Merge commit '065b5711936f' from swift/release/6.1 into stable/20240723
Dec 12, 2024
b722edc
[BoundsSafety][NFC] Resolve some conflicts (#9714)
rapidsna Dec 12, 2024
4f27a4d
Merge commit '2bfeaa7519fb' from swift/release/6.1 into stable/20240723
Dec 12, 2024
2572b89
[Inliner] Don't count a call penalty for foldable __memcpy_chk and si…
citymarina Nov 29, 2024
b6ed89e
[test] Disable a couple of BoundsSafety tests
hamishknight Dec 12, 2024
85fcfba
Merge commit 'b230b2c98d8c' from swift/release/6.1 into stable/20240723
Dec 12, 2024
c4264d6
[lldb][Target] Remove BoundsSafetyTrapFrameRecognizer
Michael137 Dec 12, 2024
2caed4a
Merge pull request #9726 from hamishknight/disable-tests
hamishknight Dec 12, 2024
26ae496
Merge commit '4f89c416ca2e' from swift/release/6.1 into stable/20240723
Dec 12, 2024
9839c20
Merge pull request #9496 from augusto2112/embedded-node
augusto2112 Dec 12, 2024
be8c96d
Merge commit '774571a03e35' from swift/release/6.1 into stable/20240723
Dec 13, 2024
b06afa6
[-Wunsafe-buffer-usage] Suppress warning for multi-dimensional consta…
malavikasamak Dec 12, 2024
0c6b5e1
Merge pull request #9700 from citymarina/cherry-pick-inline-memcpy
citymarina Dec 13, 2024
6110cb1
[clang] Allow CompilerInvocation to change CASOptions
cachemeifyoucan Dec 12, 2024
7a05a8b
Merge commit 'd64c6cffd7c5' from swift/release/6.1 into stable/20240723
Dec 13, 2024
2568b78
[lldb] Add a progress event for executing an expression (#119757)
adrian-prantl Dec 13, 2024
f39d645
Merge branch 'stable/20240723' into lldb-remove-bounds-safety-recognizer
Michael137 Dec 13, 2024
6cb26cf
[lldb][test] Re-enable boundssafetytrap.test
Michael137 Dec 13, 2024
42c3953
[lldb] Realpath symlinks for breakpoints (#102223)
royitaqi Aug 15, 2024
853cf20
[LLDB][Data Formatters] Calculate average and total time for summary …
Jlalond Sep 10, 2024
87c2168
Fix statistics dump to report per-target (#113723)
jeffreytan81 Nov 18, 2024
e49e990
[lldb] Add a compiler/interpreter of LLDB data formatter bytecode to …
adrian-prantl Oct 22, 2024
4b9452e
[lldb] Move the python module import workaround further up
adrian-prantl Dec 7, 2024
98dd219
[lldb] Implement a formatter bytecode interpreter in C++
adrian-prantl Oct 29, 2024
fa0a656
[lldb] Add comment
adrian-prantl Dec 10, 2024
e22a73c
[lldb] Improve log message to include missing strings
adrian-prantl Dec 10, 2024
4e38f13
[lldb] Add cast to fix compile error on 32-but platforms
adrian-prantl Dec 10, 2024
8845780
[lldb] Add cast to fix compile error on 32-bit platforms
adrian-prantl Dec 10, 2024
3eff878
[lldb] Disallow left shifts of negative values in the interpreter (#1…
adrian-prantl Dec 11, 2024
a089727
Merge pull request #9741 from adrian-prantl/cherry-pick-stable-202407…
adrian-prantl Dec 13, 2024
2db41f9
Merge pull request #9738 from swiftlang/msamak-cherry-pick-fp-mulitd-…
malavikasamak Dec 13, 2024
806859c
Merge pull request #9724 from swiftlang/lldb-remove-bounds-safety-rec…
adrian-prantl Dec 13, 2024
cdec144
Merge commit '1d2d379a5d79' from swift/release/6.1 into stable/20240723
Dec 14, 2024
5119325
[lldb] Support zero-padding in formatter sections
adrian-prantl Dec 13, 2024
52a70e5
Merge commit '4c67ec0b66d9' from swift/release/6.1 into stable/20240723
Dec 14, 2024
2c829fa
(lldb) Fix PATH_MAX for Windows (#104493)
royitaqi Aug 15, 2024
fa5e051
[lldb] Correctly fix a usage of `PATH_MAX`, and fix unit tests (#104502)
royitaqi Aug 16, 2024
a40deca
Merge pull request #9711 from adrian-prantl/cherry-pick-bytecode
adrian-prantl Dec 16, 2024
1b38440
Merge commit '1274e908987d' from swift/release/6.1 into stable/20240723
Dec 16, 2024
0d3ad36
[ExtractAPI] reorder the module names in extension symbol graph file …
QuietMisdreavus Dec 16, 2024
5bbd945
Merge commit '6eae0943a5f0' from swift/release/6.1 into stable/20240723
Dec 16, 2024
ace84ff
Merge commit 'cc1f09121ab9' from swift/release/6.1 into stable/20240723
Dec 16, 2024
f1aa868
Merge commit '3612d2d58900' from swift/release/6.1 into stable/20240723
Dec 16, 2024
2d0a02e
[lldb] [test] Disable `test_command_stats_force`
hamishknight Dec 17, 2024
a2bfdac
Merge pull request #9758 from hamishknight/disable-test
hamishknight Dec 17, 2024
f3dafbd
Merge commit '40f7f305faf9' from swift/release/6.1 into stable/20240723
Dec 17, 2024
fbc0623
[lldb] Introduce an ImportedDeclaration
augusto2112 Dec 13, 2024
ce1a9d5
[lldb] Handle @_originallyDefinedIn
augusto2112 Dec 17, 2024
9f2ac20
Merge pull request #9755 from swiftlang/vgm/stable/extractapi-extensi…
QuietMisdreavus Dec 18, 2024
1a588e5
Merge pull request #9745 from augusto2112/orig-defined-in-imported-decl
augusto2112 Dec 18, 2024
aed73c6
Merge commit '380d817a7994' from swift/release/6.1 into stable/20240723
Dec 19, 2024
434aec2
Fix for opt-remarks
kyulee-com Dec 19, 2024
8ef9888
Merge commit '4d9ab63b2865' from swift/release/6.1 into stable/20240723
augusto2112 Dec 19, 2024
677aa9b
Merge commit '10942e8f0738' from swift/release/6.1 into stable/20240723
adrian-prantl Dec 19, 2024
9f6c3d7
Merge commit 'd3ced1f4d3a6' from swift/release/6.1 into stable/20240723
Dec 20, 2024
f92283d
Merge commit 'dd0f3b29e584' from swift/release/6.1 into stable/20240723
Jan 8, 2025
e465c25
[Clang] Permit noescape on non-pointer types
Dec 23, 2024
06a77c5
Merge pull request #9789 from swiftlang/gaborh/noescape-nonptr
Xazax-hun Jan 2, 2025
13e2fcb
Merge commit '207b68598611' from swift/release/6.1 into stable/20240723
Jan 8, 2025
1930b81
[TTI] Add SCEVExpansionBudget to loop unrolling options. (#118316)
fhahn Dec 2, 2024
1b0e7b1
[LoopUnroll] Add tests for loop unrolling on Apple platforms.
fhahn Dec 2, 2024
96f9ad3
[AArch64] Runtime-unroll small load/store loops for Apple Silicon CPU…
fhahn Dec 9, 2024
c78ddd3
[AArch64] Unroll some loops with early-continues on Apple Silicon. (#…
fhahn Dec 22, 2024
c571bd9
[cherrypick][SCEV] Pick fixes for recursive loop guard collection. (#…
juliannagele Jan 6, 2025
f7ab870
Merge pull request #9796 from fhahn/pick-unroll
fhahn Jan 6, 2025
2786f66
[lldb] Adjust to swift::SearchPathOptions enhancing the ImportSearchP…
ian-twilightcoder Dec 20, 2024
fa7a958
Merge commit '846c43327dc5' from swift/release/6.1 into stable/20240723
Jan 8, 2025
83ef3d8
Merge pull request #9800 from ian-twilightcoder/swift-import-paths
ian-twilightcoder Jan 6, 2025
ca45c59
Merge pull request #9771 from kyulee-com/stable/20240723
rapidsna Jan 7, 2025
1def0a0
[InstCombine] Add test for op of phi in loop (NFC)
nikic Aug 26, 2024
18f6413
[InstCombine] Pass RPOT to InstCombiner (NFC)
nikic Aug 26, 2024
ab777c8
[InstCombine] Make backedge check in op of phi transform more precise…
nikic Sep 2, 2024
812c57e
[lldb] Recognize embedded Swift mangling in Mangled::GetManglingScheme
augusto2112 Jan 7, 2025
c82cbb7
Merge commit '07ae73dd71f7' from swift/release/6.1 into stable/20240723
augusto2112 Jan 8, 2025
c4a24c9
Merge commit '4845a6670551' from swift/release/6.1 into stable/20240723
Jan 8, 2025
18e9754
[BoundsSafety][NFC] Fix bounds safety test failures in Linux (#9795)
rapidsna Jan 8, 2025
86eda72
Merge pull request #9804 from citymarina/cherry-pick-instcombine-phi
citymarina Jan 8, 2025
c8ab93d
[lldb] Fix mismerge of 07ae73dd71f7
augusto2112 Jan 8, 2025
d36699c
Merge pull request #9812 from augusto2112/fix-mismerge-07ae73dd71f7
xymus Jan 8, 2025
4f764ae
Merge commit '25ada5d1cf4a' from swift/release/6.1 into stable/20240723
kastiglione Jan 8, 2025
ea9aa9d
Merge commit '38c9bd4e92f2' from swift/release/6.1 into stable/20240723
Jan 8, 2025
42362ee
Merge commit '876cb855c35c' from swift/release/6.1 into stable/20240723
Jan 8, 2025
b7ea88a
Merge commit 'ad53c6a089b6' from swift/release/6.1 into stable/20240723
adrian-prantl Jan 8, 2025
de73b58
[lldb] Remove include of non-existent header (NFC)
kastiglione Jan 8, 2025
99b818a
Merge pull request #9813 from swiftlang/dl/fix
etcwilde Jan 9, 2025
ba2f1e6
[TBAA] Add tests with pointers to structs to tbaa-pointers.c.
fhahn Sep 30, 2024
7b4f203
[TBAA] Extend pointer TBAA to pointers of non-builtin types. (#110569)
fhahn Oct 22, 2024
f38772a
[TBAA] Add test for generating pointer-tbaa for unnamed structs.
fhahn Nov 17, 2024
ad950e6
[TBAA] Only emit pointer tbaa metedata for record types. (#116991)
fhahn Nov 21, 2024
b0158db
[TBAA] Don't emit pointer tbaa for unnamed structs or unions. (#116596)
fhahn Nov 21, 2024
4b559e1
[MergeLodstore] Add tests for preserving metadata when sinking stores.
fhahn Nov 15, 2024
3869c95
[MergedLoadStore] Preserve common metadata when sinking stores. (#116…
fhahn Nov 15, 2024
5b234e1
[InstCombine] Add extra tests for preserving load metadata.
fhahn Nov 9, 2024
23d3dd0
[InstCombine] Add load/select test with noundef/invariant.load.
fhahn Nov 9, 2024
dcb1199
[InstCombine] Add extra test for preserving !llvm.access.group
fhahn Nov 19, 2024
b02f747
[Local] Only intersect llvm.access.group metadata if instr moves. (#1…
fhahn Nov 19, 2024
fb07da1
[Local] Only intersect tbaa metadata if instr moves. (#116682)
fhahn Nov 20, 2024
0e75858
[Local] Only intersect alias.scope,noalias & parallel_loop if inst mo…
fhahn Nov 26, 2024
3d37aa1
Update tests for stable branch.
fhahn Jan 8, 2025
0f3de86
[TBAA] Don't emit pointer-tbaa for void pointers.
fhahn Jan 9, 2025
974dfb7
[stable/20240723][Darwin][Driver][clang] apple-none-macho orders the …
ian-twilightcoder Jan 8, 2025
848d9d4
[APINotes] Add support for bounds safety annotations
hnrklssn Jan 9, 2025
5d83315
Restore __MACH__ in DarwinTargetInfo
ian-twilightcoder Jan 10, 2025
81859ac
Merge pull request #9816 from ian-twilightcoder/macho-driver
ian-twilightcoder Jan 10, 2025
ed3d5fa
[lldb/crashlog] Fix typo in error message when creating a target (#12…
medismailben Jan 10, 2025
777ce1e
[stable/20240723][Darwin][Driver][clang] arm64-apple-none-macho is mi…
ian-twilightcoder Jan 10, 2025
0da2269
Merge pull request #9817 from medismailben/stable/20240723
medismailben Jan 11, 2025
e86bfab
Merge pull request #9811 from fhahn/pick-pointer-tbaa
fhahn Jan 11, 2025
e67c0c3
Merge pull request #9819 from ian-twilightcoder/apple-target-info
ian-twilightcoder Jan 11, 2025
7d7f6ba
Merge commit '9c7f25b8b9f2' from swift/release/6.1 into stable/20240723
Jan 14, 2025
8f8317f
add TO_UPSTREAM comments
hnrklssn Jan 14, 2025
34a72d1
[Wunsafe-buffer-usage] Fix false positive when const sized array is i…
malavikasamak Jan 14, 2025
fdfa59e
Merge pull request #9826 from swiftlang/msamak-cherry-pick-fp-const-eval
malavikasamak Jan 14, 2025
25b8b6c
Add tests and fix SourcLocation for API note errors
hnrklssn Jan 14, 2025
97e519f
add BSI::dump and remove conversion functions for BoundsSafetyKind
hnrklssn Jan 14, 2025
bb5a462
Merge commit 'b81995be1318' from swift/release/6.1 into stable/20240723
Jan 15, 2025
9b72e2c
make BoundsSafety std::optional, add test w/o optional level field
hnrklssn Jan 14, 2025
0bfaf3f
Merge commit '1e19c09d62a8' from swift/release/6.1 into stable/20240723
Jan 15, 2025
097c50a
Merge commit '1e19c09d62a8' from swift/release/6.1 into stable/20240723
Jan 15, 2025
dc006a1
Merge commit '2f271173f80b' from swift/release/6.1 into stable/20240723
Jan 15, 2025
ed7a9d9
Merge commit '2f271173f80b' from swift/release/6.1 into stable/20240723
Jan 15, 2025
242f324
Merge commit '3cedd74d44b7' from swift/release/6.1 into stable/20240723
Jan 15, 2025
4f2ec7c
Merge commit '3cedd74d44b7' from swift/release/6.1 into stable/20240723
Jan 15, 2025
823c6c7
Merge commit '3c0b016e9df8' from swift/release/6.1 into stable/20240723
kastiglione Jan 15, 2025
7f8786f
Merge commit '3c0b016e9df8' from swift/release/6.1 into stable/20240723
Jan 15, 2025
5c038e0
Merge pull request #9806 from augusto2112/fix-mangling-embedded
adrian-prantl Jan 15, 2025
9eb07c4
Merge commit '14c8403e2215' from swift/release/6.1 into stable/20240723
Jan 15, 2025
c2ed30c
allow redundant bounds annotations in API notes
hnrklssn Jan 15, 2025
32c4fa5
fix bug due to parameter being shadowed in constructor
hnrklssn Jan 15, 2025
4bceb00
[APINotes] Avoid duplicated attributes for class template instantiations
egorzhdan Jan 15, 2025
d3e466f
Merge pull request #9842 from swiftlang/egorzhdan/20240723-apinotes-c…
egorzhdan Jan 16, 2025
5675313
Merge commit '94fd311e42ff' from swift/release/6.1 into stable/20240723
Jan 17, 2025
70424a2
Merge commit '29770a59a375' from swift/release/6.1 into stable/20240723
Jan 17, 2025
79f5549
Merge commit '38a3fc37c5f5' from swift/release/6.1 into stable/20240723
Jan 17, 2025
3491751
[lldb] Fix finding make tool for tests (#111980) (#9848)
kastiglione Jan 17, 2025
da945ea
Merge pull request #9822 from hnrklssn/bounds-safety-apinotes
hnrklssn Jan 17, 2025
28bf99e
Merge commit '4b7dbf208f7e' from swift/release/6.1 into stable/20240723
Jan 18, 2025
f1c28d4
Merge commit 'bf1660c2bae2' from swift/release/6.1 into stable/20240723
Jan 18, 2025
2c3335d
[lldb] Introduce backtracing of Swift Tasks (#9845)
kastiglione Jan 17, 2025
e9fd15b
Merge commit '5eac167c7a55' from swift/release/6.1 into stable/20240723
Jan 18, 2025
8bd44a7
Merge commit '3efb04a2cae4' from swift/release/6.1 into stable/20240723
Jan 18, 2025
49c53ab
[Clang][Driver] Add arm64e support for Swift’s "-none-macho" target t…
kubamracek Jan 13, 2025
b25f802
Fix test expectations in test/Driver/arch-arm64e.c around the positio…
kubamracek Jan 16, 2025
8a823e3
Add a test of ptrauth driver flags for arm64e-apple-none-macho
kubamracek Jan 16, 2025
8720bab
Merge commit '7c8a4a06b477' from swift/release/6.1 into stable/20240723
Jan 21, 2025
88cab7a
Merge commit '3f67652fbb56' from swift/release/6.1 into stable/20240723
Jan 21, 2025
4302e57
Merge commit '5f7c9060383e' from swift/release/6.1 into stable/20240723
Jan 21, 2025
84eb5b7
Revert "[Wunsafe-buffer-usage] Fix false positive when const sized ar…
nico Jan 16, 2025
56c176f
"Reland "[Wunsafe-buffer-usage] Fix false positive when const sized a…
malavikasamak Jan 21, 2025
a4ded1c
Merge pull request #9868 from swiftlang/msamak-chpick-const-eval-expr…
malavikasamak Jan 22, 2025
f01257d
Merge commit '8370b43de0e5' from swift/release/6.1 into stable/20240723
Jan 22, 2025
c1183a8
Merge commit 'a321a98f4e5b' from swift/release/6.1 into stable/20240723
Jan 23, 2025
d59f60b
[lldb] Introduce command to select task "threads" (#9840)
kastiglione Jan 23, 2025
6f7170a
Merge commit '3f0475925665' from swift/release/6.1 into stable/20240723
Jan 23, 2025
cbc65ce
Merge commit 'b82610962628' from swift/release/6.1 into stable/20240723
Jan 24, 2025
2270d32
Merge commit 'c1f793618461' from swift/release/6.1 into stable/20240723
Jan 24, 2025
49dd1b3
[AArch64][WinCFI] Fix a crash due to missing seh directives
hjyamauchi Jan 24, 2025
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,13 @@ void ExpandModularHeadersPPCallbacks::PragmaAssumeNonNullEnd(
SourceLocation Loc) {
parseToLocation(Loc);
}
/*TO_UPSTREAM(BoundsSafety) ON*/
void ExpandModularHeadersPPCallbacks::
PragmaAbiPointerAttributesSet(SourceLocation Loc,
ArrayRef<const IdentifierInfo *> Spec) {
parseToLocation(Loc);
}
/*TO_UPSTREAM(BoundsSafety) OFF*/
void ExpandModularHeadersPPCallbacks::MacroExpands(const Token &MacroNameTok,
const MacroDefinition &,
SourceRange Range,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ class ExpandModularHeadersPPCallbacks : public PPCallbacks {
void PragmaWarningPop(SourceLocation Loc) override;
void PragmaAssumeNonNullBegin(SourceLocation Loc) override;
void PragmaAssumeNonNullEnd(SourceLocation Loc) override;
/*TO_UPSTREAM(BoundsSafety) ON*/
void PragmaAbiPointerAttributesSet(SourceLocation Loc,
ArrayRef<const IdentifierInfo *>) override;
/*TO_UPSTREAM(BoundsSafety) OFF*/
void MacroExpands(const Token &MacroNameTok, const MacroDefinition &,
SourceRange Range, const MacroArgs *) override;
void MacroDefined(const Token &MacroNameTok,
Expand Down
12 changes: 11 additions & 1 deletion clang/include/clang-c/Index.h
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,17 @@ enum CXCursorKind {
*/
CXCursor_PackIndexingExpr = 156,

CXCursor_LastExpr = CXCursor_PackIndexingExpr,
/* TO_UPSTREAM(BoundsSafety) ON */
/**
* BoundsSafety '__builtin_unsafe_forge_bidi_indexable(addr, size)' or
* '__builtin_forge_single(addr)
*/
CXCursor_ForgePtrExpr = 198,

CXCursor_GetBoundExpr = 199,

CXCursor_LastExpr = CXCursor_GetBoundExpr,
/* TO_UPSTREAM(BoundsSafety) OFF */

/* Statements */
CXCursor_FirstStmt = 200,
Expand Down
82 changes: 80 additions & 2 deletions clang/include/clang/APINotes/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,72 @@ inline bool operator!=(const ContextInfo &LHS, const ContextInfo &RHS) {
return !(LHS == RHS);
}

/* TO_UPSTREAM(BoundsSafety) ON */
class BoundsSafetyInfo {
public:
enum class BoundsSafetyKind {
CountedBy = 0,
CountedByOrNull,
SizedBy,
SizedByOrNull,
EndedBy,
};

private:
/// Whether this property has been audited for nullability.
LLVM_PREFERRED_TYPE(bool)
unsigned KindAudited : 1;

/// The kind of nullability for this property. Only valid if the nullability
/// has been audited.
LLVM_PREFERRED_TYPE(BoundsSafetyKind)
unsigned Kind : 3;

LLVM_PREFERRED_TYPE(bool)
unsigned LevelAudited : 1;

unsigned Level : 3;

public:
std::string ExternalBounds;

BoundsSafetyInfo()
: KindAudited(false), Kind(0), LevelAudited(false), Level(0),
ExternalBounds("") {}

std::optional<BoundsSafetyKind> getKind() const {
return KindAudited ? std::optional<BoundsSafetyKind>(
static_cast<BoundsSafetyKind>(Kind))
: std::nullopt;
}

void setKindAudited(BoundsSafetyKind kind) {
KindAudited = true;
Kind = static_cast<unsigned>(kind);
}

std::optional<unsigned> getLevel() const {
return LevelAudited ? std::optional<unsigned>(Level) : std::nullopt;
}

void setLevelAudited(unsigned level) {
LevelAudited = true;
Level = level;
}

friend bool operator==(const BoundsSafetyInfo &, const BoundsSafetyInfo &);

LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const;
};

inline bool operator==(const BoundsSafetyInfo &LHS,
const BoundsSafetyInfo &RHS) {
return LHS.KindAudited == RHS.KindAudited && LHS.Kind == RHS.Kind &&
LHS.LevelAudited == RHS.LevelAudited && LHS.Level == RHS.Level &&
LHS.ExternalBounds == RHS.ExternalBounds;
}
/* TO_UPSTREAM(BoundsSafety) OFF */

/// API notes for a variable/property.
class VariableInfo : public CommonEntityInfo {
/// Whether this property has been audited for nullability.
Expand Down Expand Up @@ -439,10 +505,14 @@ class ParamInfo : public VariableInfo {
unsigned RawRetainCountConvention : 3;

public:
/* TO_UPSTREAM(BoundsSafety) ON */
std::optional<BoundsSafetyInfo> BoundsSafety;
/* TO_UPSTREAM(BoundsSafety) OFF */

ParamInfo()
: NoEscapeSpecified(false), NoEscape(false),
LifetimeboundSpecified(false), Lifetimebound(false),
RawRetainCountConvention() {}
RawRetainCountConvention(), BoundsSafety(std::nullopt) {}

std::optional<bool> isNoEscape() const {
return NoEscapeSpecified ? std::optional<bool>(NoEscape) : std::nullopt;
Expand Down Expand Up @@ -488,6 +558,11 @@ class ParamInfo : public VariableInfo {
if (!RawRetainCountConvention)
RawRetainCountConvention = RHS.RawRetainCountConvention;

/* TO_UPSTREAM(BoundsSafety) ON */
if (!BoundsSafety)
BoundsSafety = RHS.BoundsSafety;
/* TO_UPSTREAM(BoundsSafety) OFF */

return *this;
}

Expand All @@ -502,7 +577,10 @@ inline bool operator==(const ParamInfo &LHS, const ParamInfo &RHS) {
LHS.NoEscape == RHS.NoEscape &&
LHS.LifetimeboundSpecified == RHS.LifetimeboundSpecified &&
LHS.Lifetimebound == RHS.Lifetimebound &&
LHS.RawRetainCountConvention == RHS.RawRetainCountConvention;
LHS.RawRetainCountConvention == RHS.RawRetainCountConvention &&
/* TO_UPSTREAM(BoundsSafety) ON */
LHS.BoundsSafety == RHS.BoundsSafety;
/* TO_UPSTREAM(BoundsSafety) OFF */
}

inline bool operator!=(const ParamInfo &LHS, const ParamInfo &RHS) {
Expand Down
Loading