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: (linalg) fix linalg.matmul to correctly store integer arg types #3903

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

oluwatimilehin
Copy link

Copy link
Member

@superlopuh superlopuh left a comment

Choose a reason for hiding this comment

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

This is great, could you please add a test?

@superlopuh superlopuh added the dialects Changes on the dialects label Feb 13, 2025
@compor compor self-requested a review February 13, 2025 18:22
Copy link

codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.29%. Comparing base (816c689) to head (65b816a).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3903      +/-   ##
==========================================
+ Coverage   91.26%   91.29%   +0.03%     
==========================================
  Files         468      466       -2     
  Lines       57998    58012      +14     
  Branches     5566     5566              
==========================================
+ Hits        52929    52962      +33     
+ Misses       3646     3622      -24     
- Partials     1423     1428       +5     

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

// CHECK-GENERIC-NEXT: %45 = "arith.muli"(%42, %44) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
// CHECK-GENERIC-NEXT: %46 = "arith.addi"(%40, %45) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
// CHECK-GENERIC-NEXT: "linalg.yield"(%46) : (i32) -> ()
// CHECK-GENERIC-NEXT: ^11(%41 : i8, %42 : i8, %43 : i32, %44 : i32, %45 : i32):
Copy link
Author

Choose a reason for hiding this comment

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

@superlopuh @compor Just curious, why do we use integer values here instead of capturing patterns like %{{.*}} ?

Copy link
Member

Choose a reason for hiding this comment

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

as far as I'm concerned, that's a bug, maybe these should be fixed in this PR

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