[cfe-dev] constexpr functions compile-time execution

Craig Topper via cfe-dev cfe-dev at lists.llvm.org
Sun Jun 16 18:48:33 PDT 2019


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.

~Craig


On Sun, Jun 16, 2019 at 8:20 AM Viktor Was BSc via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> 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
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190616/5452e79e/attachment.html>


More information about the cfe-dev mailing list