[llvm] Support STRICT_UINT_TO_FP and STRICT_SINT_TO_FP (PR #102503)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 8 10:07:57 PDT 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 59531cf01eb791f4cef88c2757d399eb3d90a086 67edac3daa5b62a0ae5998bd294da4088d3a6e34 --extensions cpp -- llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
index 21ce54ec49..18e488a981 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
@@ -3318,7 +3318,8 @@ SDValue DAGTypeLegalizer::SoftPromoteHalfRes_XINT_TO_FP(SDNode *N) {
 
   bool Signed = N->getOpcode() == ISD::SINT_TO_FP ||
                 N->getOpcode() == ISD::STRICT_SINT_TO_FP;
-  SDValue Res = DAG.getNode(Signed ? ISD::SINT_TO_FP : ISD::UINT_TO_FP, dl, NVT, Op);
+  SDValue Res =
+      DAG.getNode(Signed ? ISD::SINT_TO_FP : ISD::UINT_TO_FP, dl, NVT, Op);
 
   // Round the value to the softened type.
   return DAG.getNode(GetPromotionOpcode(NVT, OVT), dl, MVT::i16, Res);

``````````

</details>


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


More information about the llvm-commits mailing list