[PATCH] D139700: [clang][Inter] Implement __builtin_expect
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 9 02:35:08 PST 2022
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, tahonermann, shafik, erichkeane.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This adds a `InterpStack::discard()` version that takes a `PrimType` argument.
I'm not sure what to do if we actually want to //use// a value from the stack...
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139700
Files:
clang/lib/AST/Interp/Interp.h
clang/lib/AST/Interp/InterpBuiltin.cpp
clang/lib/AST/Interp/InterpStack.h
clang/lib/AST/Interp/InterpState.h
clang/test/AST/Interp/builtins.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139700.481581.patch
Type: text/x-patch
Size: 3503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221209/068dd683/attachment.bin>
More information about the cfe-commits
mailing list