llvm/llvm-project

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

Open

#51.787 aperta il 9 nov 2021

Vedi su GitHub
 (18 commenti) (0 reazioni) (0 assegnatari)C++ (10.782 fork)batch import
bugzillacc++26clang:frontendconstexprextension:clanggood first issue

Metriche repository

Star
 (26.378 star)
Metriche merge PR
 (Merge medio 1g 2h) (1000 PR mergiate in 30 g)

Descrizione

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.

Guida contributor