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

dialects: (stablehlo) Add support for some unary and binary operations #4014

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

Hatsunespica
Copy link
Contributor

This PR includes following changes:

  1. Add an abstract elementwise binary operations for integer tensor types IntegerTensorLikeElementwiseUnaryOperation like
    class SignlessIntegerLikeUnaryMathOperation(IRDLOperation, abc.ABC):
  2. Add ShiftLeftOp, ShiftRightArithmeticOp, and ShiftRightLogicalOp as integer tensor binary operations
  3. Add CountLeadingZerosOp, PopcntOp, NotOp as integer tensor unary operations
  4. Update on test cases

@Hatsunespica Hatsunespica force-pushed the yuyou/stablehlo_ops branch from 55259e5 to f412ed5 Compare March 4, 2025 01:29
Copy link

codecov bot commented Mar 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.18%. Comparing base (c9493b7) to head (f412ed5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4014      +/-   ##
==========================================
- Coverage   90.19%   90.18%   -0.01%     
==========================================
  Files         458      458              
  Lines       58288    58314      +26     
  Branches     5687     5688       +1     
==========================================
+ Hits        52570    52593      +23     
- Misses       4328     4331       +3     
  Partials     1390     1390              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@superlopuh superlopuh added the dialects Changes on the dialects label Mar 4, 2025
@superlopuh superlopuh merged commit 179df5c into xdslproject:main Mar 4, 2025
17 checks passed
@Hatsunespica Hatsunespica deleted the yuyou/stablehlo_ops branch March 4, 2025 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialects Changes on the dialects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants