[cfe-dev] [RFC] ConstExprPreter — clang constexpr interpreter
Nandor Licker via cfe-dev
cfe-dev at lists.llvm.org
Thu Jul 4 08:31:56 PDT 2019
> Can you contrast your approach with the other proposal that's come up a few times of simply JITing the constexpr bits of the code using the existing compiler infrastructure?
A JIT could be the next step following the interpreter, if the cost of the JIT can pay for itself.
Unfortunately, given the way the current evaluator is implemented, we cannot just go for
"simply JITing the constexpr bits of the code": a more fine-grained value representation and
a better pointer representation is needed, as well as a mechanism to manage and link
all the constexpr functions and methods in a compilation unit. We develop these in the
context of a bytecode interpreter.
More information about the cfe-dev