Add design docs: LLVM GC integration and C/C++ header import#197
Merged
Conversation
… plan Documents an estimate for using LLVM's GCStrategy/gcroot/gcwrite framework alongside the existing Boehm GC, and a plan for generating tslang declarations from C/C++ headers via an in-process clang importer (AST-based mapping plus optional wrapper-emission/LLVM IR linking for ABI-correct struct-by-value calls). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
docs/llvm-gc-integration.md— estimate of which parts of LLVM's GC framework (GCStrategy,gcattribute,llvm.gcroot,llvm.gcwrite, statepoints/stack maps) are applicable alongside the project's existing Boehm GC, phased by effort/benefit.docs/c-cpp-header-import.md— plan for converting C/C++ header declarations into tslang declarations, covering an AST-based clang importer (tsbindgen), C→tslang type mapping, and an ABI-safe wrapper-emission approach that links a clang-produced LLVM module into the compiler's own module.Test plan