[llvm-branch-commits] [llvm] [mlir] [mlir][Parser] Add `nan` and `inf` keywords (PR #116176)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Nov 13 23:54:21 PST 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 51530aeea8c18804034881c87236d1ab5ceb274f 045afe88e53f873cf027ab92af32c120a1d47d63 --extensions cpp,h -- llvm/include/llvm/ADT/APFloat.h llvm/lib/Support/APFloat.cpp mlir/lib/AsmParser/AttributeParser.cpp mlir/lib/AsmParser/Parser.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp
index 8b9d9af2ca..e82071e5b7 100644
--- a/llvm/lib/Support/APFloat.cpp
+++ b/llvm/lib/Support/APFloat.cpp
@@ -376,8 +376,8 @@ bool APFloatBase::semanticsHasSignedRepr(const fltSemantics &semantics) {
}
bool APFloatBase::semanticsHasInf(const fltSemantics &semantics) {
- return semantics.nonFiniteBehavior != fltNonfiniteBehavior::NanOnly
- && semantics.nonFiniteBehavior != fltNonfiniteBehavior::FiniteOnly;
+ return semantics.nonFiniteBehavior != fltNonfiniteBehavior::NanOnly &&
+ semantics.nonFiniteBehavior != fltNonfiniteBehavior::FiniteOnly;
}
bool APFloatBase::semanticsHasNan(const fltSemantics &semantics) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/116176
More information about the llvm-branch-commits
mailing list