[all-commits] [llvm/llvm-project] 267768: [RS4GC] Add a GCStrategy option to enable RS4GC

Campbell Suter via All-commits all-commits at lists.llvm.org
Fri Jan 20 11:39:07 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 267768c9dd2657494a3d1314be8eb48ec3984914
      https://github.com/llvm/llvm-project/commit/267768c9dd2657494a3d1314be8eb48ec3984914
  Author: Campbell Suter <znix at znix.xyz>
  Date:   2023-01-20 (Fri, 20 Jan 2023)

  Changed paths:
    M llvm/include/llvm/IR/GCStrategy.h
    M llvm/lib/IR/BuiltinGCs.cpp

  Log Message:
  -----------
  [RS4GC] Add a GCStrategy option to enable RS4GC

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.

Reviewed By: dantrushin

Differential Revision: https://reviews.llvm.org/D142169




More information about the All-commits mailing list