llvm/llvm-project

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

Open

#51,787 建立於 2021年11月9日

在 GitHub 查看
 (18 留言) (0 反應) (0 負責人)C++ (10,782 fork)batch import
bugzillacc++26clang:frontendconstexprextension:clanggood first issue

倉庫指標

Star
 (26,378 star)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

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.

貢獻者指南