[clang] [HLSL] Implementation of the elementwise fmod builtin (PR #108849)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 26 12:44:10 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 f5b95db4c3ea266489a68a7655425b18ce5805f6 9ed71b8fb37dbc72bd5378c3b6be534b7bb51f60 --extensions h,c,cpp -- clang/lib/CodeGen/CGBuiltin.cpp clang/lib/Headers/hlsl/hlsl_intrinsics.h clang/lib/Sema/SemaChecking.cpp clang/lib/Sema/SemaHLSL.cpp clang/test/CodeGen/builtins-elementwise-math.c clang/test/CodeGen/strictfp-elementwise-bulitins.cpp clang/test/Sema/builtins-elementwise-math.c clang/test/SemaCXX/builtins-elementwise-math.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Headers/hlsl/hlsl_intrinsics.h b/clang/lib/Headers/hlsl/hlsl_intrinsics.h
index aa7c61d3d7..eadea20338 100644
--- a/clang/lib/Headers/hlsl/hlsl_intrinsics.h
+++ b/clang/lib/Headers/hlsl/hlsl_intrinsics.h
@@ -922,7 +922,8 @@ float4 floor(float4);
 /// \param x [in] The dividend.
 /// \param y [in] The divisor.
 ///
-/// Return the floating-point remainder of the x parameter divided by the y parameter.
+/// Return the floating-point remainder of the x parameter divided by the y
+/// parameter.
 
 _HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
 _HLSL_BUILTIN_ALIAS(__builtin_elementwise_fmod)

``````````

</details>


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


More information about the cfe-commits mailing list