Skip to content

Add default IR attributes to helper functions #33379

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
merged 1 commit into from
Aug 9, 2020

Conversation

rjmccall
Copy link
Contributor

@rjmccall rjmccall commented Aug 8, 2020

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.

@rjmccall
Copy link
Contributor Author

rjmccall commented Aug 8, 2020

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Aug 8, 2020

Build failed
Swift Test OS X Platform
Git Sha - c3708d919a118d810854f8efa887274948f802cb

@swift-ci
Copy link
Contributor

swift-ci commented Aug 8, 2020

Build failed
Swift Test Linux Platform
Git Sha - c3708d919a118d810854f8efa887274948f802cb

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 branch from c3708d9 to 03d94b4 Compare August 8, 2020 21:01
@rjmccall
Copy link
Contributor Author

rjmccall commented Aug 8, 2020

@swift-ci Please test.

@rjmccall rjmccall requested review from jckarter and aschwaighofer and removed request for jckarter August 8, 2020 21:01
@rjmccall rjmccall marked this pull request as ready for review August 8, 2020 21:02
@swift-ci
Copy link
Contributor

swift-ci commented Aug 8, 2020

Build failed
Swift Test Linux Platform
Git Sha - c3708d919a118d810854f8efa887274948f802cb

@swift-ci
Copy link
Contributor

swift-ci commented Aug 8, 2020

Build failed
Swift Test OS X Platform
Git Sha - c3708d919a118d810854f8efa887274948f802cb

@rjmccall rjmccall merged commit 1105843 into swiftlang:master Aug 9, 2020
@rjmccall rjmccall deleted the default-attribute-helpers branch August 9, 2020 00:46
@compnerd
Copy link
Member

compnerd commented Aug 9, 2020

CC: @shahmishal - seems that the Windows CI didn't trigger here? One of the changes has a mix up that would've been caught by the CI.

compnerd added a commit to compnerd/apple-swift that referenced this pull request Aug 9, 2020
The order of attribution was swapped which failed on platforms which use
`comdat` (i.e. Windows).
compnerd added a commit that referenced this pull request Aug 10, 2020
test: repair Serialization.autolinking after #33379
compnerd added a commit to compnerd/apple-swift that referenced this pull request Aug 20, 2020
The order of attribution was swapped which failed on platforms which use
`comdat` (i.e. Windows).
tkremenek added a commit that referenced this pull request Aug 25, 2020
test: repair Serialization.autolinking after #33379
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