[clang] [llvm] [HLSL] [DXIL] Implement the AddUint64 HLSL function and the UAddc DXIL op (PR #127137)

via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 19 14:35:10 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 37ed2e6b33882cdf5dcc640f59965c5c522b489e 4e017e47ff17aae239f1921608300f65a7e50e7f --extensions h,cpp -- clang/lib/CodeGen/CGBuiltin.cpp clang/lib/Headers/hlsl/hlsl_intrinsics.h clang/lib/Sema/SemaHLSL.cpp llvm/lib/Target/DirectX/DXILOpBuilder.cpp llvm/lib/Target/DirectX/DXILOpBuilder.h llvm/lib/Target/DirectX/DXILOpLowering.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 97b4d18e39..86d9d29e5f 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -19490,8 +19490,8 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID,
 
     if (NumElements == 4) {
       return Builder.CreateShuffleVector(LowSum, HighSumPlusCarry,
-                                           ArrayRef<int>{0, 2, 1, 3},
-                                           "hlsl.AddUint64");
+                                         ArrayRef<int>{0, 2, 1, 3},
+                                         "hlsl.AddUint64");
     }
 
     llvm::Value *Result = PoisonValue::get(OpA->getType());

``````````

</details>


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


More information about the cfe-commits mailing list