Skip to content

[SIL] Added defined flag to begin_borrow. #39050

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

Conversation

nate-chandler
Copy link
Contributor

@nate-chandler nate-chandler commented Aug 25, 2021

The new flag will be used to track whether a borrow scope corresponds to a source-level lexical scope. Here, the flag is just added to the instruction and represented in textual and serialized SIL.

@nate-chandler nate-chandler force-pushed the lexical_lifetimes/borrow_scope_instruction_flag branch from 72cb2bf to 391f2e3 Compare August 25, 2021 22:04
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@meg-gupta
Copy link
Contributor

Basically LGTM. Can you add documentation for defined in SIL.rst ? And handle the new attribute in SILCloner as well ?

@nate-chandler
Copy link
Contributor Author

Will do!

@nate-chandler nate-chandler force-pushed the lexical_lifetimes/borrow_scope_instruction_flag branch from 391f2e3 to 39e8299 Compare August 25, 2021 23:38
@nate-chandler
Copy link
Contributor Author

@meg-gupta Is this what you had in mind?

The new flag will be used to track whether a borrow scope corresponds to
a source-level lexical scope.  Here, the flag is just added to the
instruction and represented in textual and serialized SIL.
@nate-chandler nate-chandler force-pushed the lexical_lifetimes/borrow_scope_instruction_flag branch from 39e8299 to f3b7706 Compare August 25, 2021 23:41
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@meg-gupta meg-gupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

@nate-chandler nate-chandler merged commit 1aafbed into swiftlang:main Aug 26, 2021
@nate-chandler nate-chandler deleted the lexical_lifetimes/borrow_scope_instruction_flag branch August 26, 2021 14:26
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.

2 participants