[PATCH] D150111: [clang][Interp] Implement lambda static invokers

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 8 04:43:09 PDT 2023


tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Emit custom byte code for the static invoker function.

Unfortunately, there are a few (RVO-related) cases we can't handle yet. There's a bigger refactoring for the initialization stuff coming that will hopefully take care of that.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150111

Files:
  clang/lib/AST/Interp/ByteCodeEmitter.cpp
  clang/lib/AST/Interp/ByteCodeStmtGen.cpp
  clang/lib/AST/Interp/ByteCodeStmtGen.h
  clang/lib/AST/Interp/Function.h
  clang/lib/AST/Interp/Interp.h
  clang/test/AST/Interp/lambda.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150111.520329.patch
Type: text/x-patch
Size: 8162 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230508/769a66f4/attachment-0001.bin>


More information about the cfe-commits mailing list