Pass that lowers GC read/write intrinsics and initializes roots.

Synopsis

Declared in <llvm/CodeGen/GCMetadata.h>

class GCLoweringPass
    : public RequiredPassInfoMixin<GCLoweringPass>

Description

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.

Base Classes

Name

Description

RequiredPassInfoMixin<GCLoweringPass>

A CRTP mix‐in for passes that should not be skipped.

Member Functions

Name

Description

run

Lower GC intrinsics in F according to its GC strategy.

Static Member Functions

Name

Description

isRequired

Return true; required passes cannot be skipped.

Created with MrDocs