Skip to content

AutoDiff associated functions in witness table, using SILDeclRef #21241

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 2 commits into from
Dec 12, 2018

Conversation

marcrasi
Copy link

This deletes the AutoDiffAssociatedFunctionWitness from the witness table, and instead puts the autodiff associated functions in normal method witness table entries, using the autodiff SILDeclRef from #21224.

For easier reviewing, I have split it into two commits. The first commit removes most of the AutoDiffAssociatedFunctionWitness stuff, putting everything back mostly like it was in master, and the second commit adds the entries back in, using SILDeclRef.

cc @slavapestov @rjmccall

@marcrasi marcrasi requested a review from rxwei December 12, 2018 03:52
Copy link
Contributor

@rxwei rxwei left a comment

Choose a reason for hiding this comment

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

Looks like it's hugely simplified!

@@ -361,6 +361,13 @@ struct SILDeclRef {
return r;
}

/// Returns this `SILDeclRef` with the `loc` replaced with `decl`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be SWIFT_ENABLE_TENSORFLOW?

Copy link
Author

Choose a reason for hiding this comment

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

The pieces above it are tensorflow too, and they have a SWIFT_ENABLE_TENSORFLOW.

@marcrasi
Copy link
Author

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor

rxwei commented Dec 12, 2018

@swift-ci please test tensorflow Linux CPU

@marcrasi marcrasi merged commit b435eef into swiftlang:tensorflow Dec 12, 2018
@marcrasi marcrasi deleted the sildeclref-wt branch December 12, 2018 18:39
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.

2 participants