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.
Paths
| Differential D70087
[ConstExprPreter] String and basic pointer arithmetic. Needs ReviewPublic Authored by nand on Nov 11 2019, 9:07 AM.
Details
Summary Implemented string constants and the following pointer operations:
To allow for sensible tests, short-circuiting logical ops were also implemented.
Diff Detail
Revision Contents
Diff 228707 clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/ByteCodeExprGen.cpp
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.h
clang/lib/AST/Interp/Program.cpp
clang/test/AST/Interp/string.cpp
|