[PATCH] D132727: [clang][Interp] Implement array initializers and subscript expressions

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 26 06:40:31 PDT 2022


erichkeane added a comment.

Nothing suspicious as far as I can tell, other than just punting on ArrayFillers.  Don't understand enough of this code to just do a straight-up approval though, so hopefully one of the other reviewers can take a look and confirm with another uninformed opinion :)



================
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:535
+
+  // TODO: Fillers?
+  if (const auto *InitList = dyn_cast<InitListExpr>(Initializer)) {
----------------
Heh, THIS is a huge "TODO" here.  The ArrayFillers go through a ton of twists/turns in the current interpreter, as array-filler initializers can be massive.  Do we have a way to avoid allocating space for filled-but-not-referenced values in this interpreter?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132727/new/

https://reviews.llvm.org/D132727



More information about the cfe-commits mailing list