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

Make sure NullDifferential and its witness are removed after autodiff. #4958

Merged
merged 5 commits into from
Aug 29, 2024

Conversation

csyonghe
Copy link
Collaborator

Closes #4957.

This is to make sure we always remove the export/keepalive decorations on the builtin NullDifferential type regardless of whether autodiff pass is run. To make it easy to identify this type from the linked IR, we add a [__AutoDiffBuiltin] attribute so we can easily trigger the logic to remove export decoration when we see this decoration.

@csyonghe csyonghe added the pr: non-breaking PRs without breaking changes label Aug 28, 2024
jkwak-work
jkwak-work previously approved these changes Aug 29, 2024
Copy link
Collaborator

@jkwak-work jkwak-work 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 to me.
Maybe we can have a test for this change?

@csyonghe csyonghe merged commit aaf3f5e into shader-slang:master Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NullDifferential_t appears in output code.
2 participants