-
Notifications
You must be signed in to change notification settings - Fork 1.5k
C++ Interop: Support getting void* from C++ functions and passing void* it to C++ function
#6279
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9e73edf
C++ Interop: Support getting `void*` from C++ functions and passing `…
bricknerb f252405
Replace `<builtin Cpp.void>` with `Cpp.void` when stringifying `Cpp.v…
bricknerb 6f40fed
Add tests for `void**` and `const void*`. Add support for `const void*`.
bricknerb 6b7a510
Rename `CustomCppVoidType` to `CppVoidType`.
bricknerb 3c45ed3
Move `StringifyInst()` for `CppVoidType` between `ConstType` and `Cus…
bricknerb 68bbebd
Remove commented out code.
bricknerb 2b17f69
In `TryMapVoidPointer()`, early return if there are no wrapper types.
bricknerb 9b32c15
Merge branch 'main' into void2
bricknerb 7a08553
Use `CppVoidType::TypeInstId` directly instead of indirectly.
bricknerb c942df1
Remove `pointer_iter` in `TryMapVoidPointer()` and erase the pointer …
bricknerb bce120f
Have a dedicate `BuildInfoForInst()` for `CppVoidType` and a TODO to …
bricknerb 3b8ce38
Merge branch 'main' into void2
bricknerb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
There are probably other instructions that could be here which should be ignored, e.g.
MaybeUnformedType. It might be worth thinking about whether awhileloop here would be a good fit, but not asking for a change sincewrapper_typesdoesn't supportMaybeUnformedTyperight now either.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.
Yes, this definitely makes sense to do when we can have a test that triggers this.