llvm::GCLoweringPass

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

NameDescription
RequiredPassInfoMixin<GCLoweringPass>A CRTP mix-in for passes that should not be skipped.

Member Functions

NameDescription
run Lower GC intrinsics in F according to its GC strategy.

Static Member Functions

NameDescription
isRequired Return true; required passes cannot be skipped.