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

[LowerToUKernels] Refactor to simplify and improve extensibility #1120

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

jtuyls
Copy link
Collaborator

@jtuyls jtuyls commented Feb 20, 2025

I am working on adding additional patterns to be recognized and replaced with ukernels (scale + trunc), so refactoring the LowerToUKernels pass to make that more easy to do. Added some additional small improvements along the way like replacing failure with rewriter.notifyMatchFailure, using explicit types, reordering some statements etc.

Copy link
Contributor

@yzhang93 yzhang93 left a comment

Choose a reason for hiding this comment

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

LGTM. Just nits.

@jtuyls jtuyls force-pushed the refactor-lower-to-ukernels branch from 03bb8a4 to 7113b53 Compare February 20, 2025 20:35
@jtuyls jtuyls merged commit fdf8b58 into nod-ai:main Feb 20, 2025
7 checks passed
@jtuyls jtuyls deleted the refactor-lower-to-ukernels branch February 20, 2025 23:18
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