[llvm] [RISCV][GISel] Support f32/f64 powi. (PR #117937)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 27 15:06:41 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 80afdbe6a55a10cb246cb748149f0d41e778d01b 0d7105ce3ca88a5939fecc6805bcf2cf994ab099 --extensions cpp -- llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
index 005d88a173..0f1cb8be15 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+++ b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
@@ -579,8 +579,7 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
                                G_FASIN, G_FATAN, G_FATAN2, G_FCOSH, G_FSINH,
                                G_FTANH})
       .libcallFor({s32, s64});
-  getActionDefinitionsBuilder(G_FPOWI)
-      .libcallFor({{s32, s32}});
+  getActionDefinitionsBuilder(G_FPOWI).libcallFor({{s32, s32}});
 
   getActionDefinitionsBuilder(G_VASTART).customFor({p0});
 

``````````

</details>


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


More information about the llvm-commits mailing list