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 upstream] Clean up parsing and printing. #28377

Merged
merged 1 commit into from
Nov 20, 2019

Conversation

dan-zheng
Copy link
Contributor

  • Use general Parser::isIdentifier(Token, StringRef) function.
    • Remove specialized isWRTIdentifier, isJVPIdentifier, isVJPIdentifier
      functions from Parser.
  • Clarify doc comments and parameter nullability for attribute printing code:
    getDifferentiationParametersClauseString.
  • Minor formatting and naming updates.

Addresses feedback from #28321.
tensorflow branch mirror: #28376.

- Use general `Parser::isIdentifier(Token, StringRef)` function.
  - Remove specialized `isWRTIdentifier`, `isJVPIdentifier`, `isVJPIdentifier`
    functions from `Parser`.
- Clarify doc comments and parameter nullability for attribute printing code:
  `getDifferentiationParametersClauseString`.
- Minor formatting and naming updates.
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test

Copy link
Contributor

@lattner lattner left a comment

Choose a reason for hiding this comment

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

Thanks for improving the null safety of this code!

@dan-zheng dan-zheng merged commit baed359 into swiftlang:master Nov 20, 2019
@dan-zheng dan-zheng deleted the autodiff-upstream-cleanup branch November 20, 2019 20:37
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