Describes a garbage collector algorithm's code generation requirements.
Synopsis
Declared in <llvm/IR/GCStrategy.h>
class GCStrategy;
Description
Provides overridable hooks for those needs which cannot be abstractly described. GCStrategy objects must be looked up through the Function. The objects themselves are owned by the Context and must be immutable.
Member Functions
Name |
Description |
|
Construct a GCStrategy with default option flags. |
|
Destroy this GCStrategy. |
Return the name of the GC strategy. This is the value of the collector name string specified on functions which use this strategy. |
|
|
Returns whether |
True if safe points need to be inferred on call sites. |
|
Returns true if the RewriteStatepointsForGC pass should run on functions using this GC. |
|
Returns true if this strategy is expecting the use of gc.statepoints, and false otherwise. |
|
Returns true if the back‐end must emit GC metadata tables. |
Protected Data Members
Name |
Description |
if set, calls are inferred to be safepoints |
|
Whether RewriteStatepointsForGC should rewrite calls when UseStatepoints is set. |
|
Whether this strategy uses gc.statepoints instead of gc.roots. |
|
If set, backend must emit metadata tables. |
Friends
Name |
Description |
An analysis pass which caches information about the entire Module. Records a cache of the 'active' gc strategy objects for the current Module. |
|
Module analysis that caches per‐function GC info and active strategies. |
Non-Member Functions
Name |
Description |
Lookup the GCStrategy object associated with the given gc name. |
Created with MrDocs