[PATCH] D70087: [ConstExprPreter] String and basic pointer arithmetic.
Nandor Licker via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 11 09:08:30 PST 2019
nand created this revision.
nand added reviewers: rsmith, jfb, Bigcheese, dexonsmith.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Implemented string constants and the following pointer operations:
- AddOffset
- SubOffset
- Narrow
- Expand
- LogicalNot
To allow for sensible tests, short-circuiting logical ops were also implemented.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70087
Files:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/Interp.h
clang/lib/AST/Interp/Opcodes.td
clang/lib/AST/Interp/Opcodes/Logical.h
clang/lib/AST/Interp/Opcodes/Offset.h
clang/lib/AST/Interp/Program.cpp
clang/lib/AST/Interp/Program.h
clang/test/AST/Interp/string.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70087.228707.patch
Type: text/x-patch
Size: 18667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191111/e144db91/attachment-0001.bin>
More information about the cfe-commits
mailing list