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

core: Make IRDLOperation results typed #3991

Open
wants to merge 1 commit into
base: math-fehr/stack/5
Choose a base branch
from

Conversation

math-fehr
Copy link
Collaborator

@math-fehr math-fehr commented Feb 28, 2025

Now, defining a result with `resname = result_def(T)` will make
`resname` have the type `SSAValue[T]`.

This removes a lot of `cast` and `isa`/`isattr` in our codebase

stack-info: PR: #3991, branch: math-fehr/stack/6
math-fehr added a commit that referenced this pull request Feb 28, 2025
Now, defining a result with `resname = result_def(T)` will make
`resname` have the type `SSAValue[T]`.

This removes a lot of `cast` and `isa`/`isattr` in our codebase

stack-info: PR: #3991, branch: math-fehr/stack/6
@math-fehr math-fehr added the core xDSL core (ir, textual format, ...) label Feb 28, 2025
@math-fehr math-fehr self-assigned this Feb 28, 2025
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 90.22%. Comparing base (1be5202) to head (5d1bfda).

Files with missing lines Patch % Lines
docs/Toy/toy/dialects/toy.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                  Coverage Diff                  @@
##           math-fehr/stack/5    #3991      +/-   ##
=====================================================
+ Coverage              90.19%   90.22%   +0.02%     
=====================================================
  Files                    458      458              
  Lines                  58317    58291      -26     
  Branches                5694     5685       -9     
=====================================================
- Hits                   52600    52593       -7     
+ Misses                  4322     4313       -9     
+ Partials                1395     1385      -10     

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

math-fehr added a commit that referenced this pull request Feb 28, 2025
Now, defining a result with `resname = result_def(T)` will make
`resname` have the type `SSAValue[T]`.

This removes a lot of `cast` and `isa`/`isattr` in our codebase

stack-info: PR: #3991, branch: math-fehr/stack/6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core xDSL core (ir, textual format, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant