-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LLVM 16] Opaque pointers: fix generating TypeInfo
Currently, when the Kotlin/Native compiler generates a TypeInfo, it has to know which fields are object references (the GC uses that info). The compiler checks field LLVM types for that. But with LLVM opaque pointers, it won't be possible to distinguish object reference from another pointer type. This commit addresses that by using IR types or other contextual information for such checks and storing that in `ClassLlvmDeclarations`. ^KT-67692 Co-authored-by: Svyatoslav Scherbina <svyatoslav.scherbina@jetbrains.com>
- Loading branch information
1 parent
23026db
commit 79be7f9
Showing
4 changed files
with
65 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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 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 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 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