Skip to content

Conversation

@kurapov-peter
Copy link
Contributor

I was trying out things and spent some time trying to fold a broadcast with pass only to find out that the declared functionality doesn't exist. Hope this saves someone's time.

@llvmbot
Copy link
Member

llvmbot commented Dec 15, 2025

@llvm/pr-subscribers-mlir-linalg

@llvm/pr-subscribers-mlir

Author: Petr Kurapov (kurapov-peter)

Changes

I was trying out things and spent some time trying to fold a broadcast with pass only to find out that the declared functionality doesn't exist. Hope this saves someone's time.


Full diff: https://github.com/llvm/llvm-project/pull/172306.diff

1 Files Affected:

  • (modified) mlir/include/mlir/Dialect/Linalg/Passes.td (+1-1)
diff --git a/mlir/include/mlir/Dialect/Linalg/Passes.td b/mlir/include/mlir/Dialect/Linalg/Passes.td
index 44da2965e6892..e1ea52ea2c21c 100644
--- a/mlir/include/mlir/Dialect/Linalg/Passes.td
+++ b/mlir/include/mlir/Dialect/Linalg/Passes.td
@@ -167,7 +167,7 @@ def LinalgInlineScalarOperandsPass : Pass<"linalg-inline-scalar-operands"> {
 }
 
 def LinalgFoldIntoElementwisePass : Pass<"linalg-fold-into-elementwise"> {
-  let summary = "Fold transform, broadcast and other ops into elementwise";
+  let summary = "Fold transform ops into elementwise";
   let dependentDialects = ["linalg::LinalgDialect"];
 }
 


def LinalgFoldIntoElementwisePass : Pass<"linalg-fold-into-elementwise"> {
let summary = "Fold transform, broadcast and other ops into elementwise";
let summary = "Fold transform ops into elementwise";
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you're there, can you actually fill the let description = [{ ... }]; field so that we have a more comprehensive documentation about what the pass does?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a short description. Not sure if my wording is clear enough. Let me know.

Copy link
Contributor

Choose a reason for hiding this comment

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

I feel the description should be a bit more abstract.
Now it's too implementation specific.

@rolfmorel
Copy link
Contributor

Good call on clearing up the documentation here!

Just thought to cross-link the following as it seems relevant: #167626

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants