This is an archive of the discontinued LLVM Phabricator instance.

[ConstExprPreter] Implemented control flow statements
Needs ReviewPublic

Authored by nand on Nov 11 2019, 8:30 AM.

Details

Summary

Added support for:

  • for
  • switch
  • do-while
  • while

Also implemented assignment to enable useful tests.

The patch also includes range-based for loops which are
not yet tested, but having them in ByteCodeStmtGen should
simplify the process of slicing off further patches.

Event Timeline

nand created this revision.Nov 11 2019, 8:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 11 2019, 8:30 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
nand updated this revision to Diff 248701.Mar 6 2020, 4:51 AM

rebase