[PATCH] D137487: [clang][Interp] Start implementing builtin functions
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 11 22:03:25 PST 2023
shafik added inline comments.
================
Comment at: clang/lib/AST/Interp/Interp.h:1315
+ if (InterpretBuiltin(S, PC, Func->getBuiltinID())) {
+ NewFrame.release();
+ return true;
----------------
We don't have to update `S.Current`?
================
Comment at: clang/lib/AST/Interp/InterpBuiltin.cpp:20
+template <PrimType Name, class T = typename PrimConv<Name>::T>
+static bool Ret(InterpState &S, CodePtr &PC) {
+ S.CallStackDepth--;
----------------
Why not just factor out `Ret` now?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137487/new/
https://reviews.llvm.org/D137487
More information about the cfe-commits
mailing list