Another try at this.
This time, only implement __builtin_is_constant_evaluated().
Unfortunately I can't just use clang/test/SemaCXX/builtin-is-constant-evaluated.cpp because there are some other unsupported expressions in there.
Paths
| Differential D137487
[clang][Interp] Start implementing builtin functions ClosedPublic Authored by tbaeder on Nov 5 2022, 5:13 AM.
Details Summary Another try at this. This time, only implement __builtin_is_constant_evaluated(). Unfortunately I can't just use clang/test/SemaCXX/builtin-is-constant-evaluated.cpp because there are some other unsupported expressions in there.
Diff Detail Event Timeline
Comment Actions Split CallBI out from Call, so we don't need special cases in CheckCallable etc. for builtin functions. This revision is now accepted and ready to land.Dec 1 2022, 6:26 AM tbaeder added inline comments.
This revision was landed with ongoing or failed builds.Jan 25 2023, 5:08 AM Closed by commit rGa7a4463acbe1: [clang][Interp] Start implementing builtin functions (authored by tbaeder). · Explain Why This revision was automatically updated to reflect the committed changes. tbaeder marked an inline comment as done.
Revision Contents
Diff 473418 clang/lib/AST/CMakeLists.txt
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/Function.h
clang/lib/AST/Interp/Interp.h
clang/lib/AST/Interp/Interp.cpp
clang/lib/AST/Interp/InterpBuiltin.cpp
clang/test/AST/Interp/builtins.cpp
|
This is an unrelated change, perhaps could be in an NFC commit.