[llvm] [X86][GlobalISel] Enable G_LROUND/G_LLROUND with libcall mapping (PR #125096)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 30 09:47:38 PST 2025
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 a774de807e56c1147d4630bfec3110c11d41776e c790757b1b55917b7aa1cba917dde8eaa15f9d04 --extensions cpp -- llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp b/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
index ff0a0b1d0f..ca5d1dfcf0 100644
--- a/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
+++ b/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
@@ -99,16 +99,15 @@ X86LegalizerInfo::X86LegalizerInfo(const X86Subtarget &STI,
.widenScalarToNextPow2(0, /*Min=*/8)
.clampScalar(0, s8, sMaxScalar);
- getActionDefinitionsBuilder(G_LROUND)
- .libcallIf([=](const LegalityQuery &Query) -> bool {
+ getActionDefinitionsBuilder(G_LROUND).libcallIf(
+ [=](const LegalityQuery &Query) -> bool {
return (typeInSet(0, {s32, s64})(Query) &&
typeInSet(1, {s32, s64, s80})(Query));
});
- getActionDefinitionsBuilder(G_LLROUND)
- .libcallIf([=](const LegalityQuery &Query) -> bool {
- return (typeIs(0, s64)(Query) &&
- typeInSet(1, {s32, s64, s80})(Query));
+ getActionDefinitionsBuilder(G_LLROUND).libcallIf(
+ [=](const LegalityQuery &Query) -> bool {
+ return (typeIs(0, s64)(Query) && typeInSet(1, {s32, s64, s80})(Query));
});
// merge/unmerge
``````````
</details>
https://github.com/llvm/llvm-project/pull/125096
More information about the llvm-commits
mailing list