-
Notifications
You must be signed in to change notification settings - Fork 7
Add GC support for OCaml #21
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
Add GC support for OCaml #21
Conversation
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 create a separate file for the oxcaml gc printer instead of changing the existing OCamlGCPrinter
.
llvm/lib/IR/BuiltinGCs.cpp
Outdated
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.
This should be UsesMetadata = false
according to the comments in GCStrategy.h
and similar to other GCStrategy definitions that use statepoints.
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.
Discussed offline, this is intentional for AsmPrinter.
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.
oxcaml?
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.
oxcaml?
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.
Consider calling ForceAsmWriterLinking
here instead.
04304ed
to
ac745f8
Compare
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.
The module flag trick is nice, we should do it for all module names, not just for the startup module.
17124b5
to
d9145bf
Compare
This PR modifies the pre-existing
GCStrategy
andGCMetadataPrinter
for OCaml to trigger theRewriteStatepointsForGC
pass and print frametables.