llvm/llvm-project

[Clang] Allow __builtin_fma/fmaf/fmal to be used in a constant expression

Open

#154,747 opened on Aug 21, 2025

View on GitHub
 (8 comments) (0 reactions) (1 assignee)C++ (10,782 forks)batch import
clang:bytecodeclang:frontendconstexprgood first issue

Repository metrics

Stars
 (26,378 stars)
PR merge metrics
 (Avg merge 1d 2h) (1,000 merged PRs in 30d)

Description

Building on #152455 - now that __builtin_elementwise_fma can be used with constexpr, the scalar __builtin_fma/fmaf/fmal/f16/f128 entries should be able to use the same codepaths.

Contributor guide