[PATCH] D137487: [clang][Interp] Start implementing builtin functions
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 12 03:43:14 PST 2023
tbaeder marked 2 inline comments as done.
tbaeder added inline comments.
================
Comment at: clang/lib/AST/Interp/Interp.h:1315
+ if (InterpretBuiltin(S, PC, Func->getBuiltinID())) {
+ NewFrame.release();
+ return true;
----------------
shafik wrote:
> We don't have to update `S.Current`?
Nope, `Ret` does that.
================
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--;
----------------
shafik wrote:
> Why not just factor out `Ret` now?
The two implementations are slightly different now and I wanted to see if they diverge more int he future. But I've factored them together as part of https://reviews.llvm.org/D141193
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137487/new/
https://reviews.llvm.org/D137487
More information about the cfe-commits
mailing list