-
Notifications
You must be signed in to change notification settings - Fork 79
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: (math) Use SameOperandsAndResultType
trait
#3761
base: christos/core/traits/same-operands-and-result-types
Are you sure you want to change the base?
dialects: (math) Use SameOperandsAndResultType
trait
#3761
Conversation
|
||
def __init__( | ||
self, operand: Operation | SSAValue, fastmath: FastMathFlagsAttr | None = None | ||
): | ||
operand = SSAValue.get(operand) | ||
return super().__init__( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Piggybacked this change as pylint was complaining.
b84370e
to
c97e740
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## christos/core/traits/same-operands-and-result-types #3761 +/- ##
=======================================================================================
- Coverage 91.26% 91.26% -0.01%
=======================================================================================
Files 461 461
Lines 57454 57433 -21
Branches 5545 5545
=======================================================================================
- Hits 52437 52416 -21
Misses 3591 3591
Partials 1426 1426 ☔ View full report in Codecov by Sentry. |
No sure I understand the CI lockfile fail, but I'll have a look later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! What's blocking us from moving math out of experimental?
I don't think anything, really, that was my goal with this. |
from xdsl.utils.exceptions import VerifyException | ||
from xdsl.utils.test_value import TestSSAValue | ||
|
||
_BinOpArgT = TypeVar("_BinOpArgT", bound=Attribute) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unused. Not sure what the initial outlook here was.
Nice, I think separate PR is good. |
This PR:
SameOperandsAndResultType
trait in themath
dialectreturn_type
parameterStacked on: #3751