[Mlir-commits] [mlir] [mlir][vector] Disallow pure reduction dims in vector.contract (PR #237709)
Jianhui Li
llvmlistbot at llvm.org
Sun Nov 1 23:31:10 PST 2026
================
@@ -1140,6 +1140,25 @@ static LogicalResult verifyOutputShape(
return success();
}
+// Find a pure reduction dims, i.e. a reduction dim that is only
+// present in only one of the inputs.
+std::optional<int64_t> getPureReductionDim(vector::ContractionOp *contract) {
----------------
Jianhui-Li wrote:
The function should be "static"?
https://github.com/llvm/llvm-project/pull/237709
More information about the Mlir-commits
mailing list