llvm/llvm-project

[Clang] Support elementwise/reduction builtins in constexpr contexts.

Open

#51 787 ouverte le 9 nov. 2021

Voir sur GitHub
 (18 commentaires) (0 réactions) (0 assignés)C++ (10 782 forks)batch import
bugzillacc++26clang:frontendconstexprextension:clanggood first issue

Métriques du dépôt

Stars
 (26 378 stars)
Métriques de merge PR
 (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)

Description

Bugzilla Link 52445
Version trunk
OS All
CC @DougGregor,@RKSimon,@zygoloid

Extended Description

Clang recently specified a set of builtins for elementwise operations and reductions on vectors:

https://clang.llvm.org/docs/LanguageExtensions.html#vector-builtins

They should also be supported in constexpr contexts.

Guide contributeur