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.

贡献者指南