-
Notifications
You must be signed in to change notification settings - Fork 28
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
Merge main 2021-04-15 #2986
Merge main 2021-04-15 #2986
Commits on Apr 9, 2021
-
Sema: Don't score a solution higher if there's a sync-vs-async mismat…
…ch with a 'reasync' function This fixes a performance regression with the reasync '&&', '||' and '??' operators. Also arguably it makes sense anyway since 'reasync' functions can in fact be called from synchronous functions, so the solution should not be considered worse. We don't actually want to be able to overload a synchronous function with a 'reasync' function anyway; the whole point of 'reasync' is to avoid the need for such overloading. Fixes rdar://problem/76254445.
Configuration menu - View commit details
-
Copy full SHA for 77e9025 - Browse repository at this point
Copy the full SHA 77e9025View commit details -
Sema: Use getParameterType() instead of getOldType() in CSRanking.cpp
One last usage of getOldType() remains here, but it's actually meaningful since we want to handle InOutType there, so it will take more work to eliminate.
Configuration menu - View commit details
-
Copy full SHA for 3994c46 - Browse repository at this point
Copy the full SHA 3994c46View commit details -
SILGen: Don't crash when compiling
if #available
with `-disable-ava……ilability-checking`. This isn't an officially supported configuration, but is useful for testing and runtime development, and we shouldn't crash.
Configuration menu - View commit details
-
Copy full SHA for 18bd2f7 - Browse repository at this point
Copy the full SHA 18bd2f7View commit details
Commits on Apr 12, 2021
-
[CodeComplete] Complete argument labels in generic initializer
The actual fix is to perform qualified lookup on a TypeExpr in `collectPossibleCalleesForApply`. This changes the behaviour of some test cases in `complete_multiple_trailingclosure.swift`, which now provide argument labels. To make the choices suggested less verbose, I refined the parameter matching to only match trailing closures to parameters of function types. In `INIT_FALLBACK_1` we technically shouldn't be suggesting `arg3` based on the matched argument types (the closure returns `Int` and the constructor with `arg3` requires the closure to return `String`), but AFAICT we aren't doing type-checking at this stage, so there's no way to rule it out.
Configuration menu - View commit details
-
Copy full SHA for f965488 - Browse repository at this point
Copy the full SHA f965488View commit details -
[CodeComplete] Fix issue with completion in string literal as last to…
…ken in case stmt The last token in a case stmt can be a string literal token, which can *contain* its interpolation segments. If one of these interpolation segments is the reference point, we'd return false from `isReferencePointInRange` because the string literal token's start location is before the interpolation token. To fix this, adjust the range we are checking to range until the end of the string interpolation token. Fixes rdar://76330416 [SR-14455]
Configuration menu - View commit details
-
Copy full SHA for cfe92f8 - Browse repository at this point
Copy the full SHA cfe92f8View commit details -
[CodeComplete] Fix issue completing type in generic signature
Due to apple#36552, parsing the code completion token as a type inside a generic parameter list no longer fails. Instead, it consumes the code completion token as a type identifier. However, since `parseExprIdentifer` does not return a `ParserStatus`, the information whether a code completion token was consumed gets lost, causing `setCodeCompletionDelayedDeclState` to not be called and thus no code completion results show up. To resolve this, make `parseExprIdentifier` return its `ParserStatus` through a `ParserResult`. Fixes rdar://76335452 [SR-14432]
Configuration menu - View commit details
-
Copy full SHA for 4603b67 - Browse repository at this point
Copy the full SHA 4603b67View commit details -
IRGen: ObjC rodata can only go in __objc_const if layout is fixed.
Otherwise, the runtime needs to be able to adjust the instance size when nonfragile ObjC bases and/or resilient Swift bases are accounted for. rdar://54089488
Configuration menu - View commit details
-
Copy full SHA for b929343 - Browse repository at this point
Copy the full SHA b929343View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13e6566 - Browse repository at this point
Copy the full SHA 13e6566View commit details -
[Concurrency] Introduce runtime detection of data races.
Through various means, it is possible for a synchronous actor-isolated function to escape to another concurrency domain and be called from outside the actor. The problem existed previously, but has become far easier to trigger now that `@escaping` closures and local functions can be actor-isolated. Introduce runtime detection of such data races, where a synchronous actor-isolated function ends up being called from the wrong executor. Do this by emitting an executor check in actor-isolated synchronous functions, where we query the executor in thread-local storage and ensure that it is what we expect. If it isn't, the runtime complains. The runtime's complaints can be controlled with the environment variable `SWIFT_UNEXPECTED_EXECUTOR_LOG_LEVEL`: 0 - disable checking 1 - warn when a data race is detected 2 - error and abort when a data race is detected At an implementation level, this introduces a new concurrency runtime entry point `_checkExpectedExecutor` that checks the given executor (on which the function should always have been called) against the executor on which is called (which is in thread-local storage). There is a special carve-out here for `@MainActor` code, where we check against the OS's notion of "main thread" as well, so that `@MainActor` code can be called via (e.g.) the Dispatch library's `DispatchQueue.main.async`. The new SIL instruction `extract_executor` performs the lowering of an actor down to its executor, which is implicit in the `hop_to_executor` instruction. Extend the LowerHopToExecutor pass to perform said lowering.
Configuration menu - View commit details
-
Copy full SHA for e77a27e - Browse repository at this point
Copy the full SHA e77a27eView commit details -
[Test] Disable tests that require new libswiftCore features for back …
…deploy. rdar://76564535
Configuration menu - View commit details
-
Copy full SHA for ffff66d - Browse repository at this point
Copy the full SHA ffff66dView commit details
Commits on Apr 13, 2021
-
[ConstraintSystem] Allow fixing r-value -> l-value mismatch without a…
… fix for placeholders If left-hand side of a conversion that requires l-value is a placeholder type, let's fix that by propagating placeholder to the order side (to allow it to infer a placeholder if needed) without recording a fix since placeholder can be converted to `inout` and/or l-value and already indicates existence of a problem at some other spot in the expression. Resolves: rdar://76250381
Configuration menu - View commit details
-
Copy full SHA for b088aea - Browse repository at this point
Copy the full SHA b088aeaView commit details -
[Concurrency] Don't check for data races in an actor's deinit.
An actor's deinit can be invoked from any thread, and does not (cannot!) synchronize to the actor. However, because "self" is by definition unique and cannot escape, don't perform data race checking in it or any local functions/closures within the initializer. This is an imperfect approximation, because one could introduce a data race by invoking a concurrent algorithm on "self" that does not escape the closure but subverts @sendable checking and concurrently accesses actor state. However, for the moment we accept this false negative because the false positives from performing this checking are much more prevalent.
Configuration menu - View commit details
-
Copy full SHA for 2439954 - Browse repository at this point
Copy the full SHA 2439954View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28fa56d - Browse repository at this point
Copy the full SHA 28fa56dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95ee2f2 - Browse repository at this point
Copy the full SHA 95ee2f2View commit details -
[Serialization] Serialize internal closure labels
Since 865e80f we are keeping track of internal closure labels in the closure’s type. With this change, wer are also serializing them to the swiftmodules. Furthermore, this change adjusts the printing behaviour to print the parameter labels in the swiftinterfaces. Resolves rdar://63633158
Configuration menu - View commit details
-
Copy full SHA for 380db63 - Browse repository at this point
Copy the full SHA 380db63View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea666db - Browse repository at this point
Copy the full SHA ea666dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a722748 - Browse repository at this point
Copy the full SHA a722748View commit details -
Reinstate "SIL: add a StackList data structure with zero cost operati…
…ons." ... with a fix for a non-assert build crash: I used the wrong ilist type for SlabList. This does not explain the crash, though. What I think happened here is that llvm miscompiled and put the llvm_unreachable from the Slab's deleteNode function unconditionally into the SILModule destructor. Now by using simple_ilist, there is no need for a deleteNode at all.
Configuration menu - View commit details
-
Copy full SHA for b3a7792 - Browse repository at this point
Copy the full SHA b3a7792View commit details -
Disable some tests that will fail on back deployment library configur…
…ations rdar://76567524 rdar://76567105
Configuration menu - View commit details
-
Copy full SHA for 0e2f63a - Browse repository at this point
Copy the full SHA 0e2f63aView commit details -
Merge pull request apple#36876 from nate-chandler/wrangle/76564535
[Test] Disable tests that require new libswiftCore features for back deploy.
Configuration menu - View commit details
-
Copy full SHA for 76b2f0b - Browse repository at this point
Copy the full SHA 76b2f0bView commit details -
Merge pull request apple#36872 from jckarter/faster-main-exe-check-in…
…-compat-hook Compatibility50: Use __dso_handle for cheaper main executable check.
Configuration menu - View commit details
-
Copy full SHA for aecb8f3 - Browse repository at this point
Copy the full SHA aecb8f3View commit details -
Merge pull request apple#36870 from jckarter/rodata-const-only-if-cla…
…ss-layout-fixed IRGen: ObjC rodata can only go in __objc_const if layout is fixed.
Configuration menu - View commit details
-
Copy full SHA for dcc0e46 - Browse repository at this point
Copy the full SHA dcc0e46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e7da84 - Browse repository at this point
Copy the full SHA 3e7da84View commit details -
Merge pull request apple#36885 from aschwaighofer/disable_lto_autolin…
…k_arm64_macos This test currently fails on macos arm64
Configuration menu - View commit details
-
Copy full SHA for 3decf42 - Browse repository at this point
Copy the full SHA 3decf42View commit details -
Merge pull request apple#36852 from jckarter/disable-availability-che…
…cking-assertion-failure SILGen: Don't crash when compiling `if #available` with `-disable-availability-checking`.
Configuration menu - View commit details
-
Copy full SHA for 8ca00d3 - Browse repository at this point
Copy the full SHA 8ca00d3View commit details -
Merge pull request apple#36882 from eeckstein/stacklist
Reinstate "SIL: add a StackList data structure with zero cost operations."
Configuration menu - View commit details
-
Copy full SHA for 312ec16 - Browse repository at this point
Copy the full SHA 312ec16View commit details -
Configuration menu - View commit details
-
Copy full SHA for f25369d - Browse repository at this point
Copy the full SHA f25369dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 159ffcc - Browse repository at this point
Copy the full SHA 159ffccView commit details -
Merge pull request apple#36867 from ahoppen/pr/string-interpolation-i…
…n-switch-case [CodeComplete] Fix issue with completion in string literal as last token in case stmt
Configuration menu - View commit details
-
Copy full SHA for 0712b42 - Browse repository at this point
Copy the full SHA 0712b42View commit details -
Merge pull request apple#36866 from ahoppen/pr/serialize-internal-clo…
…sure-name [Serialization] Serialize internal closure labels
Configuration menu - View commit details
-
Copy full SHA for 62aabec - Browse repository at this point
Copy the full SHA 62aabecView commit details -
Merge pull request apple#36868 from ahoppen/pr/complete-generic-param
[CodeComplete] Fix issue completing type in generic signature
Configuration menu - View commit details
-
Copy full SHA for eefe93e - Browse repository at this point
Copy the full SHA eefe93eView commit details -
Merge pull request apple#36774 from ahoppen/pr/complete-generic-const…
…ructor [CodeComplete] Complete argument labels in generic initializer
Configuration menu - View commit details
-
Copy full SHA for f539d33 - Browse repository at this point
Copy the full SHA f539d33View commit details -
Merge pull request apple#36828 from slavapestov/reasync-ranking-fix
Sema: Don't score a solution higher if there's a sync-vs-async mismatch with a 'reasync' function
Configuration menu - View commit details
-
Copy full SHA for a4dd60c - Browse repository at this point
Copy the full SHA a4dd60cView commit details -
Merge pull request apple#36884 from aschwaighofer/disable_tests_on_ba…
…ck_deployment_runtime
Configuration menu - View commit details
-
Copy full SHA for 90354d9 - Browse repository at this point
Copy the full SHA 90354d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5e818b - Browse repository at this point
Copy the full SHA b5e818bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a4ced48 - Browse repository at this point
Copy the full SHA a4ced48View commit details -
Add location to the
sema_no_import_target
diagnosticThsi diagnostic currently emits, for example: ``` could not find module Foo for target arm64; found: x86_64 ``` It is sometimes very useful to know where exactly the `found` module is located, so this PR changes this diagnostic to emit: ``` could not find module Foo for target arm64; found: x86_64, at: <Path where Foo.swiftmodule/x86_64.swiftmodule is located> ```
Configuration menu - View commit details
-
Copy full SHA for 0445336 - Browse repository at this point
Copy the full SHA 0445336View commit details -
[ASTPrinter] Don't transform type if current type can't have members
Since 9ba892c we always transform `CurrentType` in `ASTPrinter` to be an interface type. This causes issues for variables that whose type is a protocol. Previously, when printing the type, we had `CurrentType` set to an `OpenedArchetypeType`. Now we replace the archetype by a `GenericTypeParamType`, which may not have members, so we are hitting an assertion in `ASTPrinter.cpp:270`. To resolve this, replace any `OpenedArchetypeType`s with their protocol type before calling `mapTypeOutOfContext`. Resolves rdar://76580851 [SR-14479]
Configuration menu - View commit details
-
Copy full SHA for d93ae06 - Browse repository at this point
Copy the full SHA d93ae06View commit details -
SIL: A tuple type can be lowered with an opaque result type as the or…
…iginal type AbstractionPattern::matchesTuple() is used by various assertions, and the condition was too strict. Relax the condition to fix an assertion failure in the case where an opaque result type has a tuple as its underlying type. Fixes https://bugs.swift.org/browse/SR-14426 / rdar://problem/76057095.
Configuration menu - View commit details
-
Copy full SHA for a0c215b - Browse repository at this point
Copy the full SHA a0c215bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ade7e5d - Browse repository at this point
Copy the full SHA ade7e5dView commit details -
Merge pull request apple#36877 from xedin/rdar-76250381
[ConstraintSystem] Allow fixing r-value -> l-value mismatch without a…
Configuration menu - View commit details
-
Copy full SHA for 9a72b77 - Browse repository at this point
Copy the full SHA 9a72b77View commit details -
Merge pull request apple#36888 from slavapestov/opaque-result-type-wi…
…th-tuple SIL: A tuple type can be lowered with an opaque result type as the original type
Configuration menu - View commit details
-
Copy full SHA for cf646da - Browse repository at this point
Copy the full SHA cf646daView commit details -
Merge pull request apple#36889 from slavapestov/remove-commented-out-…
…brace-stmt-assert AST: Remove obsolete commented-out assertion in BraceStmt::create()
Configuration menu - View commit details
-
Copy full SHA for 4793126 - Browse repository at this point
Copy the full SHA 4793126View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3440c4d - Browse repository at this point
Copy the full SHA 3440c4dView commit details -
Merge pull request apple#36874 from DougGregor/dynamic-data-race-acto…
…r-isolation [Concurrency] Introduce runtime detection of data races.
Configuration menu - View commit details
-
Copy full SHA for f7fb5a1 - Browse repository at this point
Copy the full SHA f7fb5a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3997be - Browse repository at this point
Copy the full SHA b3997beView commit details -
[Test] Disabled Casting/Casts.swift for back_deployment_runtime.
rdar://76566242
Configuration menu - View commit details
-
Copy full SHA for 2decef1 - Browse repository at this point
Copy the full SHA 2decef1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff7c981 - Browse repository at this point
Copy the full SHA ff7c981View commit details -
[Test] Disabled Interpreter/bridged_casts_folding.swift for back_depl…
…oyment_runtime. rdar://76566897
Configuration menu - View commit details
-
Copy full SHA for 18246f5 - Browse repository at this point
Copy the full SHA 18246f5View commit details -
[Test] Disabled two PlaygroundTransform tests for back_deployment_run…
…time. rdar://76567375
Configuration menu - View commit details
-
Copy full SHA for 59ca928 - Browse repository at this point
Copy the full SHA 59ca928View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6efadb0 - Browse repository at this point
Copy the full SHA 6efadb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00f1c60 - Browse repository at this point
Copy the full SHA 00f1c60View commit details -
[ConstraintSystem] Add a method to determine whether disjunction repr…
…esents an operator
Configuration menu - View commit details
-
Copy full SHA for c9a289e - Browse repository at this point
Copy the full SHA c9a289eView commit details -
[Test] Disabled Concurrency/Runtime/executor_deinit1.swift on iphones…
…imulator-x86_64. rdar://76611676
Configuration menu - View commit details
-
Copy full SHA for 03678af - Browse repository at this point
Copy the full SHA 03678afView commit details -
Configuration menu - View commit details
-
Copy full SHA for b8b6d9c - Browse repository at this point
Copy the full SHA b8b6d9cView commit details
Commits on Apr 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c54c9c7 - Browse repository at this point
Copy the full SHA c54c9c7View commit details -
[windows][test] Unsupport async_task_yield in OS=windows-msvc
The test crashes in both the VS2017 and VS2019 CI machines. See https://bugs.swift.org/browse/SR-14333 for more of these problems.
Configuration menu - View commit details
-
Copy full SHA for 49be0b8 - Browse repository at this point
Copy the full SHA 49be0b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 014b1fe - Browse repository at this point
Copy the full SHA 014b1feView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb55ced - Browse repository at this point
Copy the full SHA fb55cedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 78cb4ff - Browse repository at this point
Copy the full SHA 78cb4ffView commit details -
Merge pull request apple#36902 from DougGregor/data-race-fix-ios-avai…
…lability Fix iOS availability
Configuration menu - View commit details
-
Copy full SHA for a6fc1b7 - Browse repository at this point
Copy the full SHA a6fc1b7View commit details -
Merge pull request apple#36887 from xedin/adjust-perf-test-for-linux-2
[TypeChecker] NFC: Adjust "fast" test-case message to accommodate Ama…
Configuration menu - View commit details
-
Copy full SHA for cb3608e - Browse repository at this point
Copy the full SHA cb3608eView commit details -
Remove await from spawnUnlessCancelled
spawnUnlessCancelled is not an asynchronous function, so awaiting on it in the standard library resulted in warnings.
Configuration menu - View commit details
-
Copy full SHA for 6c7b2af - Browse repository at this point
Copy the full SHA 6c7b2afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24bed82 - Browse repository at this point
Copy the full SHA 24bed82View commit details -
[Sema] Adding a space in closure parameter destructuring fix in cases…
… closure body is empty to avoid invalid inlet code
Configuration menu - View commit details
-
Copy full SHA for 3d78468 - Browse repository at this point
Copy the full SHA 3d78468View commit details -
Merge pull request apple#36901 from etcwilde/ewilde/fix-doc-underline
[NFC] [ Docs] Fix the missing title underbar
Configuration menu - View commit details
-
Copy full SHA for abdccba - Browse repository at this point
Copy the full SHA abdccbaView commit details -
Merge pull request apple#36903 from etcwilde/ewilde/remove-extra-awaits
[NFC][Concurrency] Remove await from spawnUnlessCancelled
Configuration menu - View commit details
-
Copy full SHA for 8e95ae8 - Browse repository at this point
Copy the full SHA 8e95ae8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20ffc03 - Browse repository at this point
Copy the full SHA 20ffc03View commit details -
SIL: introduce a PlaceholderValue and use it in the parser and deseri…
…alizer. ... instead of a GlobalAddrInst. This is cleaner and makes the handling of forward-referenced values in the deserializer a bit simpler.
Configuration menu - View commit details
-
Copy full SHA for df2a89f - Browse repository at this point
Copy the full SHA df2a89fView commit details -
SILGen: avoid reusing the same opened archetype in keypath setter and…
… getter functions.
Configuration menu - View commit details
-
Copy full SHA for e5e28ff - Browse repository at this point
Copy the full SHA e5e28ffView commit details -
SIL: remove the SILOpenedArchetypesTracker
Instead, put the archetype->instrution map into SIlModule. SILOpenedArchetypesTracker tried to maintain and reconstruct the mapping locally, e.g. during a use of SILBuilder. Having a "global" map in SILModule makes the whole logic _much_ simpler. I'm wondering why we didn't do this in the first place. This requires that opened archetypes must be unique in a module - which makes sense. This was the case anyway, except for keypath accessors (which I fixed in the previous commit) and in some sil test files.
Configuration menu - View commit details
-
Copy full SHA for 6ec788f - Browse repository at this point
Copy the full SHA 6ec788fView commit details -
Merge pull request apple#36896 from bnbarham/extract-basic-info
[Gardening] Extract basic source info structs from RawComment.h
Configuration menu - View commit details
-
Copy full SHA for f1efd02 - Browse repository at this point
Copy the full SHA f1efd02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 429eda3 - Browse repository at this point
Copy the full SHA 429eda3View commit details -
Merge pull request apple#36858 from eeckstein/remove-oat-tracker
SIL: remove the SILOpenedArchetypesTracker
Configuration menu - View commit details
-
Copy full SHA for 149446b - Browse repository at this point
Copy the full SHA 149446bView commit details -
Merge pull request apple#36904 from LucianoPAlmeida/destructure-fix-it
[Sema] Adding a space in closure parameter destructuring fix in cases closure body is empty
Configuration menu - View commit details
-
Copy full SHA for 5db5733 - Browse repository at this point
Copy the full SHA 5db5733View commit details -
Merge pull request apple#36890 from davezarzycki/pr36890
Add missing `REQUIRES: concurrency`
Configuration menu - View commit details
-
Copy full SHA for b26e38e - Browse repository at this point
Copy the full SHA b26e38eView commit details -
Merge pull request apple#36900 from drodriguez/windows-unsupported-as…
…ync_task_yield [windows][test] Unsupport async_task_yield in OS=windows-msvc
Configuration menu - View commit details
-
Copy full SHA for 57aa7e4 - Browse repository at this point
Copy the full SHA 57aa7e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for fef108f - Browse repository at this point
Copy the full SHA fef108fView commit details -
[ConstraintSystem] NFC: Replace
isOperatorBindOverload
with `isOper……atorDisjunction`
Configuration menu - View commit details
-
Copy full SHA for d57c112 - Browse repository at this point
Copy the full SHA d57c112View commit details -
Configuration menu - View commit details
-
Copy full SHA for 766bf78 - Browse repository at this point
Copy the full SHA 766bf78View commit details -
Merge pull request apple#36912 from hborla/disable-failing-concurrenc…
…y-tests-linux [Test] Disable failing concurrency tests on Linux.
Configuration menu - View commit details
-
Copy full SHA for a5c0368 - Browse repository at this point
Copy the full SHA a5c0368View commit details -
Merge pull request apple#36899 from nate-chandler/wrangle/76080265
[Test] Disabled Interpreter/SDK/cf_without_foundation.swift on watchos.
Configuration menu - View commit details
-
Copy full SHA for 3f6eb2f - Browse repository at this point
Copy the full SHA 3f6eb2fView commit details -
[sil-mem2reg] Add a simple scope data structure and use it to simplif…
…y some code. We have for a long time talked about creating a scope like data structure for use in the SILOptimizer. The discussion was whether or not to reuse the infrastructure in SILGen that does this already. There were concerns about doing so since the code in the SILOptimizer and SILGen can work differently. With that in mind, I added a small AssertingScope class and built on top of that a composition SIL level class called SILOptScope that one can use to add various cleanups. One is able to both destructively pop at end of scope and pop along early exits. At an implementation level, I kept it simple and: 1. Represented a scope as a stack of Optional<Cleanup> which are just a wrapper around a std::function. The Optional is so that we can invalidate a cleanup. 2. Based all of these scopes around the idea that the user of the scope must invalidate the scope by hand. If not, the scope object will assert at the end of its RAII scope. 3. Rather than creating a whole class hierarchy, I just used std::function closures to keep things simple.
Configuration menu - View commit details
-
Copy full SHA for c0e31d8 - Browse repository at this point
Copy the full SHA c0e31d8View commit details -
[ownership] Refactor out the composition type LoadOperation from Cano…
…nicalizeInstruction into OwnershipOptUtils. This API is useful when writing compiler code that needs to handle ossa/non-ossa as well as load_borrow/load while in OSSA. I am going to use this in SILMem2Reg.
Configuration menu - View commit details
-
Copy full SHA for 5019e15 - Browse repository at this point
Copy the full SHA 5019e15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6139a4f - Browse repository at this point
Copy the full SHA 6139a4fView commit details -
Merge pull request apple#36915 from xedin/disable-ufaing-data-race-test
[Tests] NFC: Disable concurrency data race detection test on all plat…
Configuration menu - View commit details
-
Copy full SHA for c754929 - Browse repository at this point
Copy the full SHA c754929View commit details -
Merge pull request apple#36820 from artemcm/BetterModuleArchNotFoundMsg
Add location to the `sema_no_import_target` diagnostic
Configuration menu - View commit details
-
Copy full SHA for b15f77d - Browse repository at this point
Copy the full SHA b15f77dView commit details -
[Test] Disable a test on Linux at swift_test_mode_optimize_none.
Per @xedin, it's fine to leave this test disabled here.
Configuration menu - View commit details
-
Copy full SHA for 1e45d16 - Browse repository at this point
Copy the full SHA 1e45d16View commit details -
Sema: Handle Error self-conformance in TypeChecker::containsProtocol()
While ModuleDecl::lookupConformance() did the right thing here, we have another entry point, TypeChecker::containsProtocol(), that also needs to special-case Error. Fixes https://bugs.swift.org/browse/SR-13734 / rdar://problem/70338670.
Configuration menu - View commit details
-
Copy full SHA for 508dc8c - Browse repository at this point
Copy the full SHA 508dc8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e0593f - Browse repository at this point
Copy the full SHA 5e0593fView commit details -
Merge pull request apple#36911 from xedin/refactor-common-operator-id…
…entification-logic [ConstraintSystem] NFC: Factor operator overload identification and partitioning.
Configuration menu - View commit details
-
Copy full SHA for 9e159de - Browse repository at this point
Copy the full SHA 9e159deView commit details -
Merge pull request apple#36916 from nate-chandler/wrangle/test/Sema/t…
…ype_checker_perf/fast/rdar26564101.swift
Configuration menu - View commit details
-
Copy full SHA for c917530 - Browse repository at this point
Copy the full SHA c917530View commit details
Commits on Apr 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 367305b - Browse repository at this point
Copy the full SHA 367305bView commit details -
Merge pull request apple#36914 from gottesmm/pr-50f9fe327da8081f9050c…
…5c892eb164aec334530 [ownership] Refactor out the composition type LoadOperation from CanonicalizeInstruction into OwnershipOptUtils.
Configuration menu - View commit details
-
Copy full SHA for 07b568d - Browse repository at this point
Copy the full SHA 07b568dView commit details -
Merge pull request apple#36918 from slavapestov/error-existential-met…
…atype Sema: Handle Error self-conformance in TypeChecker::containsProtocol()
Configuration menu - View commit details
-
Copy full SHA for 8ed2a95 - Browse repository at this point
Copy the full SHA 8ed2a95View commit details -
Merge pull request apple#36913 from gottesmm/pr-45e4affc7e9132e241abc…
…77bc7eef73664feef8a [sil-mem2reg] Add a simple scope data structure and use it to simplify some code.
Configuration menu - View commit details
-
Copy full SHA for 8c9d402 - Browse repository at this point
Copy the full SHA 8c9d402View commit details -
Merge pull request apple#36880 from ahoppen/pr/cursor-info-protocol-var
[ASTPrinter] Don't transform type if current type can't have members
Configuration menu - View commit details
-
Copy full SHA for 7123d26 - Browse repository at this point
Copy the full SHA 7123d26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a08e4f - Browse repository at this point
Copy the full SHA 3a08e4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f8b3bd - Browse repository at this point
Copy the full SHA 5f8b3bdView commit details