[llvm] [DXIL] Add sign intrinsic part 2 (PR #101988)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 5 07:18:19 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 04f65043bc8711996a4ade05c67ae2d087ae8be5 f5d1f35ab56ca238786b7ddf65061fdc1ad1e965 --extensions cpp -- llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp b/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
index 859ad21159..d8e4f903db 100644
--- a/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
+++ b/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
@@ -304,8 +304,8 @@ static bool expandSignIntrinsic(CallInst *Orig) {
   Constant *Zero = Constant::getNullValue(Ty);
   Builder.SetInsertPoint(Orig);
 
-  Value* GT;
-  Value* LT;
+  Value *GT;
+  Value *LT;
   if (ScalarTy->isFloatingPointTy()) {
     GT = Builder.CreateFCmpOLT(Zero, X);
     LT = Builder.CreateFCmpOLT(X, Zero);

``````````

</details>


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


More information about the llvm-commits mailing list