[PATCH] D132098: [clang][Interp] Implement inv and neg unary operations
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 19 01:18:42 PDT 2022
tbaeder updated this revision to Diff 453917.
tbaeder added a comment.
When changing the test to use `-verify=test`, I noticed that `static_assert(-false)` did not assert.
I had to implement integral casts (only from sint32 to bool for now) in this patch as well to make it work.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132098/new/
https://reviews.llvm.org/D132098
Files:
clang/lib/AST/Interp/Boolean.h
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/Integral.h
clang/lib/AST/Interp/Interp.h
clang/lib/AST/Interp/Opcodes.td
clang/test/AST/Interp/literals.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132098.453917.patch
Type: text/x-patch
Size: 8745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220819/76e74b22/attachment-0001.bin>
More information about the cfe-commits
mailing list