[Mlir-commits] [mlir] [mlir][x86]Convert a linalg.generic with bf16/i8 accumulation to f32/i32 accumulation (PR #190779)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Apr 7 04:47:51 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- mlir/lib/Dialect/X86/Transforms/ConvertLinalgGenericTo32BitAccumulation.cpp mlir/include/mlir/Dialect/X86/Transforms.h mlir/lib/Dialect/X86/TransformOps/X86TransformOps.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Dialect/X86/Transforms/ConvertLinalgGenericTo32BitAccumulation.cpp b/mlir/lib/Dialect/X86/Transforms/ConvertLinalgGenericTo32BitAccumulation.cpp
index 3f83006de..734f179e4 100644
--- a/mlir/lib/Dialect/X86/Transforms/ConvertLinalgGenericTo32BitAccumulation.cpp
+++ b/mlir/lib/Dialect/X86/Transforms/ConvertLinalgGenericTo32BitAccumulation.cpp
@@ -33,8 +33,9 @@ namespace {
 // Output:
 // linalg.fill ins(f32) outs(tensor<16x48xf32>) -> tensor<16x48xf32>
 // linalg.generic ins(tensor<16x32xbf>, tensor<32x48xbf16>)
-// outs(tensor<16x48xf32) { 	%a = arith.extf %in : bf16 to f32 	%b = arith.extf
-// %in_2 : bf16 to f32 	%c = arith.mulf %a, %b : f32 	arith.addf %out, %c : f32 }
+// outs(tensor<16x48xf32) { 	%a = arith.extf %in : bf16 to f32 	%b =
+// arith.extf %in_2 : bf16 to f32 	%c = arith.mulf %a, %b : f32
+// arith.addf %out, %c : f32 }
 // -> tensor<16x48xf32>
 //
 // linalg.generic ins(tensor<16x48xf32>, tensor<16x48xbf16>)

``````````

</details>


https://github.com/llvm/llvm-project/pull/190779


More information about the Mlir-commits mailing list