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: (func) add init to func.FuncOp #1037

Merged
merged 2 commits into from May 31, 2023
Merged

Conversation

superlopuh
Copy link
Member

No description provided.

@superlopuh superlopuh added the core xDSL core (ir, textual format, ...) label May 31, 2023
@superlopuh superlopuh self-assigned this May 31, 2023
@superlopuh superlopuh changed the title core: add init to func.FuncOp dialects: (func) add init to func.FuncOp May 31, 2023
@superlopuh superlopuh added dialects Changes on the dialects and removed core xDSL core (ir, textual format, ...) labels May 31, 2023
Copy link
Collaborator

@math-fehr math-fehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
I don't think we need a test here since this is used in the other constructors.

Copy link
Collaborator

@webmiche webmiche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

function_type=(input_types, return_types),
region=Region(),
visibility="private",
)

@staticmethod
def from_region(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe deprecate/remove this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, although I think that can be an issue for the time being: #1038

@codecov
Copy link

codecov bot commented May 31, 2023

Codecov Report

Patch coverage: 91.66% and no project coverage change.

Comparison is base (a3939d0) 86.89% compared to head (f3f5924) 86.90%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1037   +/-   ##
=======================================
  Coverage   86.89%   86.90%           
=======================================
  Files         125      125           
  Lines       19319    19324    +5     
  Branches     2929     2929           
=======================================
+ Hits        16788    16794    +6     
+ Misses       2029     2028    -1     
  Partials      502      502           
Impacted Files Coverage Δ
xdsl/dialects/func.py 95.65% <91.66%> (-0.67%) ⬇️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@superlopuh superlopuh merged commit 23bed15 into main May 31, 2023
12 checks passed
@superlopuh superlopuh deleted the sasha/misc/func-init branch May 31, 2023 13:29
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.

None yet

3 participants