This is an archive of the discontinued LLVM Phabricator instance.

[RS4GC] Add a GCStrategy option to enable RS4GC
ClosedPublic

Authored by znix on Jan 19 2023, 5:42 PM.

Details

Summary

Currently, the RewriteStatepointsForGC pass has a hardcoded list of GC
strategies that it operates on, forcing downstream projects to patch
LLVM to enable it for their own strategies. The diff D141110 changes
that to each GCStrategy having a flag to enable or disable RS4GC.

This patch adds that flag. It currently doesn't do anything, but is
provided so downstream projects can enable it to smooth the transition.

Diff Detail

Event Timeline

znix created this revision.Jan 19 2023, 5:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2023, 5:42 PM
znix requested review of this revision.Jan 19 2023, 5:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2023, 5:42 PM
dantrushin accepted this revision.Jan 20 2023, 6:19 AM

LGTM after assertion fix.
I'll take care of landing

llvm/include/llvm/IR/GCStrategy.h
108–110

Assert should go before return :-)

This revision is now accepted and ready to land.Jan 20 2023, 6:19 AM
This revision was automatically updated to reflect the committed changes.