[PATCH] D134801: [clang][Interp] Implement ConditionalOperators

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 28 03:50:44 PDT 2022


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.

Implement visiting `ConditionalOperator`s.

This also makes it possible to enable the first existing test case with the new constant interpreter. Although I'm not sure if I should actually do that, I quite enjoy just running `ninja check-clang-ast-interp` and run all the relevant tests in under 2 seconds.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134801

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.cpp
  clang/lib/AST/Interp/ByteCodeExprGen.h
  clang/test/AST/Interp/literals.cpp
  clang/test/SemaCXX/constexpr-factorial.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134801.463493.patch
Type: text/x-patch
Size: 3515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220928/283968b2/attachment.bin>


More information about the cfe-commits mailing list