-
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
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 @@
## main #3761 +/- ##
==========================================
- Coverage 91.26% 91.25% -0.01%
==========================================
Files 461 461
Lines 57491 57479 -12
Branches 5543 5543
==========================================
- Hits 52467 52455 -12
Misses 3602 3602
Partials 1422 1422 ☔ 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. |
…-result-type-trait
This PR: - Move `math` dialect out of the experimental module (as a result of #3761)
This PR:
SameOperandsAndResultType
trait in themath
dialectreturn_type
parameter