Skip to content

Make Optional<T>.TangentVector methods inlineable #78796

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
Feb 20, 2025
Merged

Conversation

asl
Copy link
Contributor

@asl asl commented Jan 21, 2025

This enables lots of possible optimizations when optionals are used in autodiff code.

As there is no stable ABI for Differentiable, there is no ABI break.

@asl asl requested a review from a team as a code owner January 21, 2025 22:08
@asl
Copy link
Contributor Author

asl commented Jan 21, 2025

@swift-ci please smoke test

@asl
Copy link
Contributor Author

asl commented Jan 21, 2025

Tagging @JaapWijnen

@asl asl added the AutoDiff label Jan 21, 2025
@JaapWijnen
Copy link
Contributor

Great! I'll add one for the Floating point methods too. Noticed they were missing there in a few cases as well.

@asl
Copy link
Contributor Author

asl commented Jan 23, 2025

@swift-ci please smoke test Linux

@JaapWijnen
Copy link
Contributor

@rxwei @lorentey Could I ask you for a review?

@asl
Copy link
Contributor Author

asl commented Feb 6, 2025

@swiftlang/standard-librarians Will you please check it out? Thanks!

@asl asl merged commit 5a29c92 into main Feb 20, 2025
3 checks passed
@asl asl deleted the inlineable-diff-opt branch February 20, 2025 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants