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

AIRSpecializeChannelWrapAndStride, AIRRtToNPU: Refactor wrap-and-stride canonicalizer #797

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

erwei-xilinx
Copy link
Collaborator

@erwei-xilinx erwei-xilinx commented Nov 27, 2024

  • Unify the multiple hasNElements into two variants: hasNImpureOps and hasNElements.
  • Refactor AIRSpecializeChannelWrapAndStride and AIRRtToNPU to use the same wrap-and-stride canonicalizer and for-loop folding methods.
  • Refactor some methods in AIRRtToNPU to use pattern matching.
  • Refactor evaluateConstantsInMap to support both symbol and dim inputs.

@erwei-xilinx erwei-xilinx merged commit c1218d2 into Xilinx:main Nov 28, 2024
11 checks passed
@erwei-xilinx erwei-xilinx deleted the refactor_wns_cano branch November 28, 2024 02: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.

1 participant