[clang] [clang] constexpr built-in reduce add function. (PR #116243)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 15 02:21:04 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();
----------------
RKSimon wrote:
(style) Avoid auto
https://github.com/llvm/llvm-project/pull/116243
More information about the cfe-commits
mailing list