[clang] [clang] constexpr built-in reduce add function. (PR #116243)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 15 03:45:55 PST 2024
================
@@ -13528,6 +13528,20 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E,
return Success(DidOverflow, E);
}
+ case Builtin::BI__builtin_reduce_add: {
+ APValue Source;
+ if (!EvaluateAsRValue(Info, E->getArg(0), Source))
+ return false;
+
+ auto SourceLen = Source.getVectorLength();
----------------
c8ef wrote:
Done.
https://github.com/llvm/llvm-project/pull/116243
More information about the cfe-commits
mailing list