[clang] [X86][Clang] allow CRC32 intrinsics to be used in constexp (PR #173908)
Julian Pokrovsky via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 15 21:53:55 PST 2026
================
@@ -717,6 +717,52 @@ static bool interp__builtin_popcount(InterpState &S, CodePtr OpPC,
return true;
}
+static bool interp__builtin_ia32_crc32(InterpState &S, CodePtr OpPC,
+ const InterpFrame *Frame,
+ const CallExpr *Call,
+ unsigned BuiltinID) {
+ APSInt Data = popToAPSInt(S, Call->getArg(1));
+ APSInt CRC = popToAPSInt(S, Call->getArg(0));
----------------
raventid wrote:
Thank you! Fixed by https://github.com/llvm/llvm-project/pull/173908/changes/e06b49fd965ade188b3ff7fe9b0a77443050064d
https://github.com/llvm/llvm-project/pull/173908
More information about the cfe-commits
mailing list