llvm/llvm-project

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

Open

#51,787 opened on 2021年11月9日

GitHub で見る
 (18 comments) (0 reactions) (0 assignees)C++ (10,782 forks)batch import
bugzillacc++26clang:frontendconstexprextension:clanggood first issue

Repository metrics

Stars
 (26,378 stars)
PR merge metrics
 (平均マージ 1d 2h) (30d で 1,000 merged PRs)

説明

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.

コントリビューターガイド