<div dir="ltr"><div>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.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">~Craig</div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 16, 2019 at 8:20 AM Viktor Was BSc via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi,<br></div>
<div dir="auto">How are constexpr functions executed at compile-time? Are they actually codegen'erated to Byte code and jit compiled?<br></div>
<div dir="auto">Where can I find the relevant code in the repo?<br><br></div>
<div dir="auto">Thanks in advance,<br></div>
<div dir="auto">Viktor</div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>