[Mlir-commits] [mlir] [MLIR][Types] add isFloat() to Type class (PR #88926)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Apr 16 09:32:53 PDT 2024
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 1c6b0f779f66494cb597884c1a52e377bde4bc54 14551a395dcb4ad09357a88af31d4466ad844329 -- mlir/include/mlir/IR/Types.h mlir/lib/IR/Types.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/IR/Types.cpp b/mlir/lib/IR/Types.cpp
index a18ef52514..d00f997f11 100644
--- a/mlir/lib/IR/Types.cpp
+++ b/mlir/lib/IR/Types.cpp
@@ -114,13 +114,9 @@ bool Type::isSignlessIntOrFloat() const {
return isSignlessInteger() || isFloat();
}
-bool Type::isIntOrIndex() const {
- return isInteger() || isIndex();
-}
+bool Type::isIntOrIndex() const { return isInteger() || isIndex(); }
-bool Type::isIntOrFloat() const {
- return isInteger() || isFloat();
-}
+bool Type::isIntOrFloat() const { return isInteger() || isFloat(); }
bool Type::isIntOrIndexOrFloat() const { return isIntOrFloat() || isIndex(); }
``````````
</details>
https://github.com/llvm/llvm-project/pull/88926
More information about the Mlir-commits
mailing list