Skip to content

[5.3] Add default IR attributes to helper functions #33389

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

Merged

Conversation

rjmccall
Copy link
Contributor

Add default IR attributes to helper functions and convert several more places to use getOrCreateHelperFunction.

This means that several of these places are now emitting shared functions rather than private ones, which I've verified is okay. There are some other places where privacy is still unfortunately necessary.

I've also fixed the name of the store-extra-inhabitants helper function to say "store" instead of "get", which is longstanding (but harmless because it's private).

Fixes rdar://66707994.

This is the 5.3 equivalent to #33379. It's just a direct cherry-pick, not an attempt to minimize.

@rjmccall rjmccall requested a review from a team as a code owner August 10, 2020 21:01
@rjmccall
Copy link
Contributor Author

@swift-ci Please test.

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - b72bf83e5ac9e6e260c955389201a785e5510c03

@rjmccall rjmccall force-pushed the default-attribute-helpers-5.3 branch from b72bf83 to 79de37e Compare August 11, 2020 00:39
@rjmccall
Copy link
Contributor Author

@swift-ci Please test.

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - b72bf83e5ac9e6e260c955389201a785e5510c03

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - b72bf83e5ac9e6e260c955389201a785e5510c03

several more places to use getOrCreateHelperFunction.

This means that several of these places are now emitting
shared functions rather than private ones, which I've
verified is okay.  There are some other places where
privacy is still unfortunately necessary.

I've also fixed the name of the store-extra-inhabitants
helper function to say "store" instead of "get", which
is longstanding (but harmless because it's private).

Fixes rdar://66707994.
@rjmccall rjmccall force-pushed the default-attribute-helpers-5.3 branch from 79de37e to 8128aba Compare August 11, 2020 03:39
@rjmccall
Copy link
Contributor Author

@swift-ci Please test.

@rjmccall
Copy link
Contributor Author

@swift-ci Please test windows.

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 79de37e246c3024f562be3bb4f9332599d6dbb95

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 79de37e246c3024f562be3bb4f9332599d6dbb95

@tkremenek tkremenek merged commit 4ee498b into swiftlang:release/5.3 Aug 18, 2020
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants