Skip to content
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

[AutoDiff] NFC: reorganize differentiation SILOptimizer files. #30969

Merged
merged 1 commit into from
May 4, 2020

Conversation

dan-zheng
Copy link
Contributor

@dan-zheng dan-zheng commented Apr 11, 2020

Move differentiation-related SILOptimizer files to {include/swift,lib}/SILOptimizer/Differentiation/.

This reduces directory nesting within lib/SILOptimizer/ and gathers files together.

Requested by @gottesmm.


Further cleanup:

  • TF-1218: Use the pointer-to-impl pattern for [JVP,VJP,Pullback]Emitter. This should minimize their header files to just run() entry points, eliminating duplication with .cpp files.

@dan-zheng
Copy link
Contributor Author

@gottesmm: could you please review, as a SILOptimizer code owner?
You asked for reorganization: #30818 (review)

@dan-zheng
Copy link
Contributor Author

@gottesmm has more feedback on organization. We're discussing at swift-devel.slack.com on the #autodiff channel now.

@dan-zheng dan-zheng force-pushed the autodiff-reorganize branch from 380ebb6 to 662d526 Compare May 4, 2020 04:34
Move differentiation-related SILOptimizer files to
{include/swift,lib}/SILOptimizer/Differentiation/.

This reduces directory nesting and gathers files together.
@dan-zheng dan-zheng force-pushed the autodiff-reorganize branch from 662d526 to 2276a2e Compare May 4, 2020 04:51
Copy link
Contributor

@gottesmm gottesmm left a comment

Choose a reason for hiding this comment

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

LGTM

@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test

@dan-zheng dan-zheng merged commit 43715e7 into swiftlang:master May 4, 2020
@dan-zheng dan-zheng deleted the autodiff-reorganize branch May 4, 2020 13:19
rxwei pushed a commit to rxwei/swift that referenced this pull request Jun 3, 2020
…lang#30969)

Move differentiation-related SILOptimizer files to
{include/swift,lib}/SILOptimizer/Differentiation/.

This reduces directory nesting and gathers files together.
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