Skip to content

Conversation

@neelay893
Copy link
Contributor

  • Implement add, sub, div, and mult binops for vmath dialect. These are (vector, vector), (scalar, vector), (vector, scalar).
  • Add rewrite pass to convert the corresponding python operators (+, -, *, /) between IList and scalar to their vmath implementation.

@neelay893 neelay893 requested a review from kaihsin November 5, 2025 20:55
@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
11595 10333 89% 0% 🟢

New Files

File Coverage Status
src/kirin/dialects/vmath/passes.py 100% 🟢
src/kirin/dialects/vmath/rewrites/_init_.py 100% 🟢
src/kirin/dialects/vmath/rewrites/desugar.py 89% 🟢
TOTAL 96% 🟢

Modified Files

File Coverage Status
src/kirin/dialects/vmath/_init_.py 100% 🟢
src/kirin/dialects/vmath/interp.py 100% 🟢
src/kirin/dialects/vmath/stmts.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 0098cfc by action🐍

@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

❌ Patch coverage is 96.63866% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/kirin/dialects/vmath/rewrites/desugar.py 88.57% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

PR Preview Action v1.6.2
Preview removed because the pull request was closed.
2025-11-06 15:43 UTC

@Roger-luo Roger-luo merged commit 122ced6 into main Nov 6, 2025
13 checks passed
@Roger-luo Roger-luo deleted the neelay/vmath-upgrades branch November 6, 2025 15:43
Roger-luo pushed a commit that referenced this pull request Nov 19, 2025
- vmath desugar rewrite (#568) is now registered as a vmath dialect
post-inference rewrite rule
- remove vmath/passes.py as it is no longer needed

These changes are separate from (#568) since they are not compatible
with kirin 0.17 (in case we want to backport).
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