[PATCH] D135433: [clang][Interp] Implement while and do-while loops

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 7 02:43:20 PDT 2022


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

I was wondering whether it is somehow possible to get a loop into a expression so I can use it directly in a `static_assert()` (and it would be interpreted directly rather than compiled to bytecode).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135433

Files:
  clang/lib/AST/Interp/ByteCodeStmtGen.cpp
  clang/lib/AST/Interp/ByteCodeStmtGen.h
  clang/test/AST/Interp/loops.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135433.466016.patch
Type: text/x-patch
Size: 3229 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221007/cb219e3d/attachment-0001.bin>


More information about the cfe-commits mailing list