-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Implement reflection support for Symbolic Extended Existential types. #82389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
7966da9
to
399dd19
Compare
@swift-ci test with swiftlang/llvm-project#10915 |
test with swiftlang/llvm-project#10915 |
test with swiftlang/llvm-project#10915 |
test with swiftlang/llvm-project#10915 |
test with swiftlang/llvm-project#10915 |
/*nullable*/ false>; | ||
constexpr size_t buffer_size = sizeof(ExtendedExistentialTypeShapeFlags) + | ||
sizeof(RelativeOffset) + | ||
sizeof(GenericContextDescriptorHeader); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try:
union {
TargetExtendedExistentialTypeShape<Runtime> shapeHeader;
};
if (!Reader->readBytes(RemoteAddress(address), reinterpret_cast<uint8_t*>(&shapeHeader), sizeof(shapeHeader))
return nullptr;
and then you should be able to just use shapeHeader.Flags
and shapeHeader.ReqSigHeader
without any other fuss.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That didn't work directly because TargetExtendedExistentialTypeShape has no default constructor, but I updated the patch to do achieve something pretty close.
This patch adds a new SymbolicExtendedExistentialTypeRef kind, and wires it up in TypeDecoder, TypeRefBuilder, TypeLowering, and ASTDemangler. This is tested indirectly via the matching LLDB commit.
test with swiftlang/llvm-project#10915 |
This patch add a new SymbolicExtendedExistentialTypeRef kind wires it up in TypeDecoder, TypeRefBuilder, TypeLowering, and ASTDemangler. This is tested indirectly via the matching LLDB commit.
EDIT: This is now ready for review!