Pass that lowers GC read/write intrinsics and initializes roots.
Declared in <llvm/CodeGen/GCMetadata.h>
class GCLoweringPass
: public RequiredPassInfoMixin<GCLoweringPass>
LowerIntrinsics rewrites calls to the llvm.gcread or llvm.gcwrite intrinsics, replacing them with simple loads and stores as directed by the GCStrategy. It also performs automatic root initialization and custom intrinsic lowering.
This pass requires CollectorMetadataAnalysis.
| Name | Description |
|---|---|
RequiredPassInfoMixin<GCLoweringPass> | A CRTP mix-in for passes that should not be skipped. |
| Name | Description |
|---|---|
run | Lower GC intrinsics in F according to its GC strategy. |
| Name | Description |
|---|---|
isRequired | Return true; required passes cannot be skipped. |