llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Jan Schultke (eisenwave)

<details>
<summary>Changes</summary>

The current list is missing several intrinsics that can be used in constant 
expressions, such as `__builtin_elementwise_clmul`.

---
Full diff: https://github.com/llvm/llvm-project/pull/246615.diff


1 Files Affected:

- (modified) clang/docs/LanguageExtensions.md (+17-6) 


``````````diff
diff --git a/clang/docs/LanguageExtensions.md b/clang/docs/LanguageExtensions.md
index 21299f45545e0e..15a357fd45ea2c 100644
--- a/clang/docs/LanguageExtensions.md
+++ b/clang/docs/LanguageExtensions.md
@@ -746,12 +746,23 @@ elementwise to the input.
 
 Unless specified otherwise operation(±0) = ±0 and operation(±infinity) = 
±infinity
 
-The elementwise intrinsics `__builtin_elementwise_popcount`,
-`__builtin_elementwise_bitreverse`, `__builtin_elementwise_add_sat`,
-`__builtin_elementwise_sub_sat`, `__builtin_elementwise_max`,
-`__builtin_elementwise_min`, `__builtin_elementwise_abs`,
-`__builtin_elementwise_clzg`, `__builtin_elementwise_ctzg`, and
-`__builtin_elementwise_fma` can be called in a `constexpr` context.
+The following elementwise intrinsics can be used in constant expressions:
+
+- `__builtin_elementwise_abs`
+- `__builtin_elementwise_add_sat`
+- `__builtin_elementwise_bitreverse`
+- `__builtin_elementwise_clmul`
+- `__builtin_elementwise_clzg`
+- `__builtin_elementwise_ctzg`
+- `__builtin_elementwise_fma`
+- `__builtin_elementwise_fshl`
+- `__builtin_elementwise_fshr`
+- `__builtin_elementwise_max`
+- `__builtin_elementwise_min`
+- `__builtin_elementwise_pdep`
+- `__builtin_elementwise_pext`
+- `__builtin_elementwise_popcount`
+- `__builtin_elementwise_sub_sat`
 
 No implicit promotion of integer types takes place. The mixing of integer types
 of different sizes and signs is forbidden in binary and ternary builtins.

``````````

</details>


https://github.com/llvm/llvm-project/pull/246615
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to