[all-commits] [llvm/llvm-project] a86c1e: [clang][Interp] Member Pointers (#91303)
Timm Baeder via All-commits
all-commits at lists.llvm.org
Thu Jun 6 02:18:10 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a86c1e7175d4acd8357326184bf4f88c8192676f
https://github.com/llvm/llvm-project/commit/a86c1e7175d4acd8357326184bf4f88c8192676f
Author: Timm Baeder <tbaeder at redhat.com>
Date: 2024-06-06 (Thu, 06 Jun 2024)
Changed paths:
M clang/lib/AST/CMakeLists.txt
M clang/lib/AST/Interp/ByteCodeExprGen.cpp
M clang/lib/AST/Interp/Context.cpp
M clang/lib/AST/Interp/Context.h
M clang/lib/AST/Interp/Descriptor.cpp
M clang/lib/AST/Interp/Disasm.cpp
M clang/lib/AST/Interp/Interp.cpp
M clang/lib/AST/Interp/Interp.h
M clang/lib/AST/Interp/InterpFrame.cpp
M clang/lib/AST/Interp/InterpStack.cpp
M clang/lib/AST/Interp/InterpStack.h
A clang/lib/AST/Interp/MemberPointer.cpp
A clang/lib/AST/Interp/MemberPointer.h
M clang/lib/AST/Interp/Opcodes.td
M clang/lib/AST/Interp/Pointer.cpp
M clang/lib/AST/Interp/Pointer.h
M clang/lib/AST/Interp/PrimType.cpp
M clang/lib/AST/Interp/PrimType.h
M clang/test/AST/Interp/eval-order.cpp
M clang/test/AST/Interp/literals.cpp
A clang/test/AST/Interp/memberpointers.cpp
M clang/test/CodeGenCXX/pointers-to-data-members.cpp
M clang/test/SemaCXX/attr-weak.cpp
M clang/test/SemaCXX/nullptr_in_arithmetic_ops.cpp
M clang/unittests/AST/Interp/toAPValue.cpp
Log Message:
-----------
[clang][Interp] Member Pointers (#91303)
This adds a `MemberPointer` class along with a `PT_MemberPtr` primitive
type.
A `MemberPointer` has a `Pointer` Base as well as a `Decl*` (could be
`ValueDecl*`?) decl it points to.
For the actual logic, this mainly changes the way we handle `PtrMemOp`s
in `VisitBinaryOperator`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list