Skip to content

[5.1] Drop @inline(__always) from Accelerate overlay #24650

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

stephentyrone
Copy link
Contributor

@stephentyrone stephentyrone commented May 9, 2019

@inline(__always) does not imply inlinable, which means that it effectively does nothing in the context of the Accelerate overlay. I have replaced all of these with @inlinable where that can be done as a one-line change. Functions that switch over open enums and more complex API (DCT, DFT, FFT) will require more sophisticated corrections, which we can undertake in later commits. For now, they have been rolled back to simply being normal public API.

(Cherry pick of #24641 for 5.1-branch)

…u want. (swiftlang#24641)

@inline(__always) does not imply inlinable, which means that it effectively does nothing in the context of the Accelerate overlay. I have replaced all of these with @inlinable where that can be done as a one-line change. Functions that switch over open enums and more complex API (DCT, DFT, FFT) will require more sophisticated corrections, which we can undertake in later commits. For now, they have been rolled back to simply being normal public API.
@stephentyrone
Copy link
Contributor Author

@swift-ci please test

@stephentyrone stephentyrone changed the title Drop @inline(__always) from Accelerate overlay [5.1] Drop @inline(__always) from Accelerate overlay May 9, 2019
Copy link
Member

@lorentey lorentey left a comment

Choose a reason for hiding this comment

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

Looks good!

@stephentyrone
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented May 9, 2019

Build failed
Swift Test Linux Platform
Git Sha - a70b97a

@swift-ci
Copy link
Contributor

swift-ci commented May 9, 2019

Build failed
Swift Test OS X Platform
Git Sha - a70b97a

@stephentyrone
Copy link
Contributor Author

@swift-ci please test os x

@stephentyrone stephentyrone merged commit 77a6a75 into swiftlang:swift-5.1-branch May 10, 2019
@stephentyrone stephentyrone deleted the accelerate-inline-5.1 branch May 10, 2019 13:43
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