llvm/llvm-project

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

Open

#51.787 aberto em 9 de nov. de 2021

Ver no GitHub
 (18 comments) (0 reactions) (0 assignees)C++ (10.782 forks)batch import
bugzillacc++26clang:frontendconstexprextension:clanggood first issue

Métricas do repositório

Stars
 (26.378 stars)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (1.000 fundiu PRs em 30d)

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.

Guia do colaborador