Skip to content

Conversation

@felipepiovezan
Copy link

@felipepiovezan felipepiovezan commented Dec 1, 2025

rdar://164765408

felipepiovezan and others added 5 commits December 1, 2025 08:20
For swift async code, we need to use a debug intrinsic that behaves like
an llvm.dbg.declare but can take any location type rather than just a
pointer or integer.

To solve this, a new debug instrinsic called llvm.dbg.declare_value has
been created, which behaves exactly like an llvm.dbg.declare but can
take non pointer and integer location types.

More information here:
https://discourse.llvm.org/t/rfc-introduce-new-llvm-dbg-coroframe-entry-intrinsic/88269

This is the first patch as part of a stack of patches, with the one
succeeding it being: llvm#168134

(cherry picked from commit 20ebc7e)
…m#168134)

Make sure the CoroSplitter pass correctly handles `#dbg_declare_value`
intrinsics. Which means, it should identify them, and convert them to
`#dbg_declares` so that any subsequent passes do not need to be amended
to support the `#dbg_declare_value` intrinsic.

More information here:
https://discourse.llvm.org/t/rfc-introduce-new-llvm-dbg-coroframe-entry-intrinsic/88269

This patch is the second and last in a stack of patches, with the one
preceding it being: llvm#168132

(cherry picked from commit 79c56e8)
@felipepiovezan
Copy link
Author

swiftlang/swift#85752

@swift-ci test

@felipepiovezan
Copy link
Author

swiftlang/swift#85752

@swift-ci test platform window

@felipepiovezan
Copy link
Author

swiftlang/swift#85752

@swift-ci test platform windows

1 similar comment
@felipepiovezan
Copy link
Author

swiftlang/swift#85752

@swift-ci test platform windows

@adrian-prantl adrian-prantl merged commit c3def25 into swiftlang:swift/release/6.3 Dec 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants