Michael Gottesman
fb487bf0ef
[move-only] Improve logging to make it more readable and add a counter to bisect on variables that we are checking.
...
These are only on in NDEBUG mode. It just makes it easier to quickly triage
which variable is causing a checking problem.
2023-07-03 15:49:41 -07:00
Mishal Shah
80e4e0465c
Merge pull request #66530 from swift-riscv/add-riscv64-as-supported-architecture
...
Add riscv64 as supported architecture on linux
2023-07-03 12:19:32 -05:00
eeckstein
cb61903d8c
Merge pull request #67082 from eeckstein/fix-stack-promotion
...
StackPromotion: fix a problem with promoted allocations in dead-end regions
2023-07-03 10:43:40 +02:00
Holly Borla
3ab4e71d75
Merge pull request #67070 from hborla/refine-extension-macros
...
[Macros] Allow `extension` macros to suppress conformances that are stated in the original source.
2023-07-02 20:47:07 -07:00
Erik Eckstein
36c8229562
StackPromotion: fix a problem with promoted allocations in dead-end regions
...
Allocations in dead-end regions cannot be promoted unconditionally, because such an object could escape to another thread.
rdar://111570874
2023-07-02 18:58:02 +02:00
Meghana Gupta
17cba8540d
Merge pull request #67072 from meg-gupta/forwardingwrappertypepr
...
Introduce ForwardingOperation wrapper type
2023-07-01 23:33:50 -07:00
Arnold Schwaighofer
31176c7088
Merge pull request #67023 from aschwaighofer/fix_some_opaque_ptr_tests_05
...
Fix some opaque pointer LLVM IR tests (5)
2023-07-01 15:40:36 -07:00
swift-ci
022d9e7f3d
Merge pull request #67078 from bnbarham/unxfail-test
...
[Test] Re-enable distributed-actor
2023-07-01 12:35:20 -07:00
Holly Borla
f5eb80854e
Merge pull request #67076 from hborla/unenable-code-item-macros
...
[Macros] Make code item macros unavailable in noasserts builds.
2023-07-01 11:58:44 -07:00
Daniel Rodríguez Troitiño
309ad399c0
[backtracing] Mark two tests with REQUIRES ( #67074 )
...
The test were enabled even if Backtracing was not enabled in the build
settings. Backtracing is enabled with the build script, but not in the
default CMake configuration.
2023-07-01 11:06:05 -07:00
Ben Barham
1e3aaa57fc
[Test] Re-enable distributed-actor
...
It was `distributed-actors.swift` failing, not
`distributed-actor.swift`. That commit has since been reverted.
2023-07-01 10:49:42 -07:00
Meghana Gupta
07863444d2
Introduce ForwardingOperation wrapper type
...
APIs on ForwardingInstruction should be written as static taking in
a SILInstruction as a parameter making it awkward.
Introduce a ForwardingOperation wrapper type and move the apis from the
old "mixin" class to the wrapper type.
Add new api getForwardedOperands()
2023-07-01 10:42:38 -07:00
Meghana Gupta
c2312a4083
Move instruction wrapper types into a new file for discoverability
2023-07-01 08:26:49 -07:00
Holly Borla
b28cdb030e
[Macros] Make code item macros unavailable in noasserts builds.
2023-06-30 23:16:48 -07:00
Puyan Lotfi
66a7ebe3a6
Merge pull request #67036 from plotfi/ns-options-type-import-inside-objc-interface
...
[cxx-interop] Import ObjCPropertyDecl of type NS_OPTIONS fields as struct type
2023-07-01 02:01:14 -04:00
Holly Borla
67b30a406a
[NFC] Fix formatting of expanded extensions in SourceKit tests.
2023-06-30 22:54:22 -07:00
Holly Borla
680c0b2a2f
[Macros] Add a request to get the resolved constraint types in the 'conformances:'
...
list of an attached extension macro attribute.
2023-06-30 22:27:16 -07:00
Pavel Yaskevich
422fdaa55c
Merge pull request #67054 from apple/revert-66852-wip-try-to-make-test
...
Revert "[Distributed] Try to make test for null sourcefile"
2023-06-30 17:41:31 -07:00
Dario Rexin
fd4ef74266
Merge pull request #67067 from drexin/wip-refactor-simple-enum-tag
...
[Runtime] Abstract handling of simple single payload enum handling
2023-06-30 17:03:02 -07:00
Dario Rexin
f5399afb78
Merge pull request #67062 from apple/drexin-patch-6
...
[Runtime] Remove incorrect skip in handleSinglePayloadEnumGenericTag
2023-06-30 17:02:44 -07:00
Michael Gottesman
7a02b26f32
Merge pull request #67061 from gottesmm/pr-a5898f4f889e53f34d0616f05e963b5306178921
...
[move-only] Rename moveonly_fixedqueue.swift -> moveonly_fixedsizequeue.swift and add some more to the test.
2023-06-30 16:34:21 -07:00
Holly Borla
74c9bfb02e
[NFC] Update a macro serialization test for the change to ExtensionMacro.
2023-06-30 16:06:13 -07:00
Holly Borla
0bd898eb12
[Macros] Allow extension macros to suppress conformances that are already
...
stated in the original source.
If an extension macro can introduce protocol conformances, macro expansion
will check which of those protocols already have a stated conformance in the
original source. The protocols that don't will be passed as arguments to
extension macro expansion, indicating to the macro that it should only add
conformances to those protocols.
2023-06-30 16:01:15 -07:00
Puyan Lotfi
7cef628f94
[cxx-interop] Import ObjCPropertyDecl of type NS_OPTIONS fields a struct type
...
Try importing ObjCPropertyDecl field types the C++-Interop-NS_OPTIONS
way. This will fix cases such as:
```
import UIKit
func f(gesture: UISwipeGestureRecognizer,
direction: UISwipeGestureRecognizer.Direction) {
gesture.direction = direction // error
}
```
because it will make sure the field inside class UIGestureRecognizer is
of the enum-struct type and not the typedef-rawValue type when importing
an ObjC class.
2023-06-30 17:51:37 -04:00
Holly Borla
e44c11f56f
[Macros] Remove the ExpandConformanceMacros request.
2023-06-30 14:25:14 -07:00
Holly Borla
c3e214cbde
[Macros] Expand conformance macros as extension macros.
...
ConformanceMacro now refines ExtensionMacro, so these roles can share
the same expansion request.
2023-06-30 14:25:14 -07:00
Dario Rexin
13930c9347
[Runtime] Abstract handling of simple single payload enum handling
...
We can re-use some of this in destructiveInjectEnumTag, so adding the abstraction in preparation of that.
2023-06-30 13:51:47 -07:00
swift-ci
a9df3e2256
Merge pull request #67034 from artemcm/SimplifyConstExtractOpaqueTypes
...
[Compile Time Constant Extraction] Refactor collection of opaque type requirements to rely on pre-built Generic Signatures
2023-06-30 13:50:20 -07:00
Doug Gregor
139672f854
Merge pull request #67055 from DougGregor/rename-observation-module
...
[SE-0395] Rename _Observation module to Observation
2023-06-30 13:45:16 -07:00
Puyan Lotfi
ec5b7b0330
[NFC][cxx-interop] Refactor NS_OPTION type import handling code to be reusable.
...
Zoe did a nice fix on https://github.com/apple/swift/pull/66452
that I would like to reuse for ObjCPropertyDecl field types in
importObjCPropertyDecl as well. This will fix cases such as:
```
import UIKit
func f(gesture: UISwipeGestureRecognizer,
direction: UISwipeGestureRecognizer.Direction) {
gesture.direction = direction // error
}
```
because it will make sure the field inside class UIGestureRecognizer is
of the enum-struct type and not the typedef-rawValue type when importing
an ObjC class.
2023-06-30 16:40:43 -04:00
Ben Barham
314a51c94c
Merge pull request #67065 from gottesmm/pr-6d9e336b29edc40419d446c0ee90ef7b9ae5f740
...
Disable moveonly_split_module_source_deinit.swift on arm64e
2023-06-30 13:37:42 -07:00
Michael Gottesman
cfe7b69451
Disable moveonly_split_module_source_deinit.swift on arm64e
...
rdar://110424902
2023-06-30 13:17:15 -07:00
Dario Rexin
e2b8366fdb
[Runtime] Remove incorrect skip in handleSinglePayloadEnumGenericTag
2023-06-30 13:05:32 -07:00
Slava Pestov
8d713c3575
Merge pull request #67005 from slavapestov/lookup-visible-members-cleanup
...
Sema: Use getAllMembers() from collectVisibleMemberDecls()
2023-06-30 16:02:52 -04:00
Michael Gottesman
4f24a2f64b
[move-only] Rename moveonly_fixedqueue.swift -> moveonly_fixedsizequeue.swift and add some more to the test.
...
The rename makes it more obvious what the file is testing and I added a bit more
to the test.
2023-06-30 12:26:47 -07:00
Steven Wu
c470c81b9c
Merge pull request #66940 from cachemeifyoucan/eng/PR-dep-sharing-serivce-issue
...
[CAS][DependencyScanning] Don't keep a shared state of common file deps
2023-06-30 11:56:14 -07:00
Pavel Yaskevich
fab9e4bc62
Merge pull request #66987 from xedin/refactor-init-accessors-to-carry-more-info
...
[SIL] InitAccessors: Refactor `assign_or_init` instruction to carry "self"
2023-06-30 11:46:01 -07:00
Steven Wu
94e8ddcf0b
Merge pull request #67041 from cachemeifyoucan/eng/PR-fix-cas-depscan-edge-cases
...
[DepScan][CAS] Fix some cases in cas-based depscanning
2023-06-30 11:41:10 -07:00
Hamish Knight
5383c6da2e
Merge pull request #67048 from hamishknight/sieze-the-means-of-code-production
2023-06-30 19:40:52 +01:00
swift-ci
2e3d2ac431
Merge pull request #67050 from meg-gupta/arraypropopt
...
Fix check lines in array property opt test
2023-06-30 11:39:02 -07:00
Artem Chikin
72ed4e37ff
[Compile Time Constant Extraction] Refactor collection of opaque type requirements
...
To reduce duplication of logic with other parts of the compiler, instead of destructuring the constraint type, write the requirements in the opaque type declaration's generic signature.
2023-06-30 11:02:24 -07:00
Doug Gregor
6265f0c542
[SE-0395] Rename _Observation module to Observation
...
The review of SE-0395 is down to small details at this point that won't
affect the overall shape of the API much. Rename the model in
anticipation of that.
2023-06-30 11:01:02 -07:00
John McCall
61e8585352
Merge pull request #67040 from rjmccall/variadic-tuple-result-reabstraction-thunks
...
Handle variadic tuples in reabstraction thunk emission
2023-06-30 13:57:48 -04:00
Ben Barham
227c6a854d
Merge pull request #67053 from zoecarver/fix-math-test-linux-str-str
...
[cxx-interop][nfc] Disable test for strstr on Linux.
2023-06-30 10:32:35 -07:00
Pavel Yaskevich
bc9967e998
Revert "[Distributed] Try to make test for null sourcefile"
2023-06-30 10:21:37 -07:00
zoecarver
c58c661c87
[cxx-interop][nfc] Disable test for strstr on Linux.
2023-06-30 10:06:22 -07:00
Slava Pestov
89ad597fe3
Sema: Use getAllMembers() from collectVisibleMemberDecls()
...
I had to disable typo correction in one test case to get it to pass without
diagnosing a cycle as a result of Sendable checking. But that's OK, because:
- Sendable checking is prone to request cycles and needs to be redesigned
- Typo correction is turned off in production
2023-06-30 12:40:34 -04:00
Slava Pestov
fdb42fe031
Sema: Fix weird logic in TypeChecker::addImplicitConstructors()
2023-06-30 12:40:13 -04:00
Meghana Gupta
f8d90421ec
Fix check lines in array property opt test
2023-06-30 09:33:36 -07:00
Steven Wu
dfd11cfec4
[DepScan] Add missing field in JSON output
...
SwiftSourceModule can contain "commandLine" field and add that into the
JSON output format.
2023-06-30 09:09:27 -07:00