-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use statepoints to compute stack roots when invoking koreCollect (#426)
* add llvm file with opaque function definitions * add llvm pass * implement getMangledTypeStr * introduce references to address space 1 * refactor allocateTerm * add statepoint gc strategy * add noreturn to finish_rewriting * add missing typed alloction functions * add code to retrieve stack map * parse stack map when application boots * remove manual root tracking * use libunwind to walk stack for roots * wire up gc in scripts * use tailcc instead of fastcc * add gc-leaf-function attribute to tail calls * fix bug involving match reason functions * reverse order of relocations in llvm pass * fixes for llvm 10 * fix llvm pass for llvm 10 * fix bug on mac os * fix cmake * use LLVM_VERSION_MAJOR * fix mac os * link against libunwind * fix name mangling issue on mac os * fix ciscript * fix linking against libunwind on mac os * add back missing dependencies on libunwind * try to fix nix on mac os * add comments * add LLVM_LINK variable to cmake * install opaque.ll in separate directory * change llvm-kompile script to invoke llvm-link * make sure opaque functions will actually get inlined * break long line * skip constants in stack map * remove gc-leaf-function attribute from tail calls * add llvm pass to mark tail calls as gc-leaf-function * fix gc offsets * format new files * fix bug on llvm 10 * fix format * don't reverse on older llvm * use slightly lower threshold for iterated optimization on nix This lowered setting is required because nix still uses MacOS SDK 10.12 which has a bug when the binary size is too big * fix code review comments * fix llvm 12 * Fix merge conflict * Update lib/llvm/EmitGCLayoutInfo.cpp Co-authored-by: Bruce Collie <brucecollie82@gmail.com> * Update MarkTailCallsAsGCLeaf.cpp Co-authored-by: Bruce Collie <brucecollie82@gmail.com>
- Loading branch information
Showing
29 changed files
with
874 additions
and
292 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
add_subdirectory(parser) | ||
add_subdirectory(ast) | ||
add_subdirectory(codegen) | ||
add_subdirectory(llvm) | ||
|
||
separate_arguments(LLVM_DEFINITIONS_LIST NATIVE_COMMAND ${LLVM_DEFINITIONS}) | ||
add_definitions(${LLVM_DEFINITIONS_LIST}) |
Oops, something went wrong.