[PATCH] D70086: [ConstExprPreter] Implemented control flow statements

Nandor Licker via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 11 08:31:12 PST 2019


nand created this revision.
nand added reviewers: Bigcheese, jfb, rsmith, dexonsmith.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70086

Files:
  clang/lib/AST/Interp/ByteCodeEmitter.cpp
  clang/lib/AST/Interp/ByteCodeExprGen.cpp
  clang/lib/AST/Interp/ByteCodeExprGen.h
  clang/lib/AST/Interp/ByteCodeStmtGen.cpp
  clang/lib/AST/Interp/ByteCodeStmtGen.h
  clang/lib/AST/Interp/Context.cpp
  clang/lib/AST/Interp/Context.h
  clang/lib/AST/Interp/EvalEmitter.cpp
  clang/lib/AST/Interp/InterpLoop.cpp
  clang/lib/AST/Interp/Opcodes.td
  clang/lib/AST/Interp/Opcodes/Comparison.h
  clang/test/AST/Interp/flow.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70086.228703.patch
Type: text/x-patch
Size: 21571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191111/7e378e31/attachment-0001.bin>


More information about the cfe-commits mailing list