[clang][Interp] Virtual function calls
authorTimm Bäder <tbaeder@redhat.com>
Thu, 26 Jan 2023 15:25:52 +0000 (16:25 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Thu, 15 Jun 2023 11:33:43 +0000 (13:33 +0200)
commit976d8b40cccf4678fe8c414210ce82170049b715
tree810a56e6521f3fe3e3be070ce5f65e17a56694f2
parentc6aaa0b14f2ab7ed764cd494a605f30a9e02c40b
[clang][Interp] Virtual function calls

Add a CallVirt opcode and implement virtual function calls this way.

Differential Revision: https://reviews.llvm.org/D142630
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/Context.cpp
clang/lib/AST/Interp/Context.h
clang/lib/AST/Interp/Descriptor.cpp
clang/lib/AST/Interp/Function.h
clang/lib/AST/Interp/Interp.h
clang/lib/AST/Interp/InterpState.h
clang/lib/AST/Interp/Opcodes.td
clang/lib/AST/Interp/Pointer.h
clang/test/AST/Interp/records.cpp