[clang] [C++23] [CLANG] Adding C++23 constexpr math functions: fmin and frexp. (PR #88978)

Nikolas Klauser via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 28 01:40:07 PDT 2024


================
@@ -14638,6 +14649,8 @@ bool FloatExprEvaluator::VisitCallExpr(const CallExpr *E) {
     return true;
   }
 
+  case Builtin::BIfmin:
+  case Builtin::BIfminf:
----------------
philnik777 wrote:

These have to be made `constexpr`, at least in C++23. C++ stdlibs can't override them to make them call the `__builtin_` versions, so Clang has to handle that.


https://github.com/llvm/llvm-project/pull/88978


More information about the cfe-commits mailing list