[llvm] [NFC] Turn the StrictFP attribute check to a CompatRule. (PR #82600)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 08:30:20 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 9b80ab4332bbe336ab8b9f2082eadf6b8d223150 ba303f99f0259c2f77ef572522122bd24cca6245 -- llvm/lib/IR/Attributes.cpp llvm/lib/Transforms/Utils/InlineFunction.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index ea2ec0145e..077780881f 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -2043,7 +2043,7 @@ static bool checkStrictFP(const Function &Caller, const Function &Callee) {
   // Do not inline strictfp function into non-strictfp one. It would require
   // conversion of all FP operations in host function to constrained intrinsics.
   return !Callee.getAttributes().hasFnAttr(Attribute::StrictFP) ||
-           Caller.getAttributes().hasFnAttr(Attribute::StrictFP);
+         Caller.getAttributes().hasFnAttr(Attribute::StrictFP);
 }
 
 template<typename AttrClass>

``````````

</details>


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


More information about the llvm-commits mailing list