[Mlir-commits] [mlir] [mlir][spirv] Add SPV_EXT_float8 support (PR #179246)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Feb 2 06:58:27 PST 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/include/mlir/IR/Builders.h mlir/include/mlir/IR/Types.h mlir/lib/IR/Builders.cpp mlir/lib/IR/Types.cpp mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp mlir/lib/Target/SPIRV/Serialization/Serializer.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/IR/Builders.cpp b/mlir/lib/IR/Builders.cpp
index 115795e23..cf6495475 100644
--- a/mlir/lib/IR/Builders.cpp
+++ b/mlir/lib/IR/Builders.cpp
@@ -34,13 +34,9 @@ Location Builder::getFusedLoc(ArrayRef<Location> locs, Attribute metadata) {
FloatType Builder::getF8E8M0Type() { return Float8E8M0FNUType::get(context); }
-FloatType Builder::getF8E4M3FNType() {
- return Float8E4M3FNType::get(context);
-}
+FloatType Builder::getF8E4M3FNType() { return Float8E4M3FNType::get(context); }
-FloatType Builder::getF8E5M2Type() {
- return Float8E5M2Type::get(context);
-}
+FloatType Builder::getF8E5M2Type() { return Float8E5M2Type::get(context); }
FloatType Builder::getBF16Type() { return BFloat16Type::get(context); }
``````````
</details>
https://github.com/llvm/llvm-project/pull/179246
More information about the Mlir-commits
mailing list