[llvm] [GlobalISel][ARM] Legalze set_fpenv and get_fpenv (PR #79852)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 08:05:12 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 df3f0eeeacbe50a6e4b2ce7c2a12f96e7b6ce5e0 b0cd3a40ecaac9ca49c7a0e697ecdbe2b6c899e2 -- llvm/lib/Target/ARM/ARMLegalizerInfo.cpp llvm/lib/Target/ARM/ARMRegisterBankInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp b/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp
index 7bf44abf3f..e482aa39ee 100644
--- a/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMLegalizerInfo.cpp
@@ -194,10 +194,9 @@ ARMLegalizerInfo::ARMLegalizerInfo(const ARMSubtarget &ST) {
getActionDefinitionsBuilder({G_SITOFP, G_UITOFP})
.legalForCartesianProduct({s32, s64}, {s32});
- getActionDefinitionsBuilder({G_GET_FPENV, G_SET_FPENV})
- .legalFor({s32});
+ getActionDefinitionsBuilder({G_GET_FPENV, G_SET_FPENV}).legalFor({s32});
getActionDefinitionsBuilder(G_RESET_FPENV)
- .legalIf([=](const LegalityQuery &Query) { return true; });
+ .legalIf([=](const LegalityQuery &Query) { return true; });
} else {
getActionDefinitionsBuilder({G_FADD, G_FSUB, G_FMUL, G_FDIV})
.libcallFor({s32, s64});
@@ -225,8 +224,7 @@ ARMLegalizerInfo::ARMLegalizerInfo(const ARMSubtarget &ST) {
getActionDefinitionsBuilder({G_SITOFP, G_UITOFP})
.libcallForCartesianProduct({s32, s64}, {s32});
- getActionDefinitionsBuilder({G_GET_FPENV, G_SET_FPENV})
- .libcall();
+ getActionDefinitionsBuilder({G_GET_FPENV, G_SET_FPENV}).libcall();
}
// Just expand whatever loads and stores are left.
``````````
</details>
https://github.com/llvm/llvm-project/pull/79852
More information about the llvm-commits
mailing list