Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion mlir/include/mlir/Dialect/Linalg/Passes.td
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,15 @@ 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 transpose ops into elementwise";
let dependentDialects = ["linalg::LinalgDialect"];

let description = [{
Fold transpose ops that feed `linalg.elementwise` into the elementwise op
by updating its indexing maps. `linalg.transpose` producers whose consumer
indexing map is the identity are absorbed, turning the permutation into
the elementwise map itself. Other operands remain untouched.
}];
}

def LinalgDetensorizePass : InterfacePass<"linalg-detensorize", "FunctionOpInterface"> {
Expand Down