constexpr functions compile-time execution

Hi,

How are constexpr functions executed at compile-time? Are they actually codegen’erated to Byte code and jit compiled?

Where can I find the relevant code in the repo?

Thanks in advance,

Viktor

Clang has its own code for evaluating constexprs. It doesn’t use LLVM IR at all. I believe most of the code is in lib/AST/ExprConstant.cpp.