llvm::GCRegistry

Registry of GCStrategy subclasses available during compilation.

Synopsis

Declared in <llvm/IR/GCStrategy.h>

using GCRegistry = Registry<GCStrategy>;

Description

Subclasses of GCStrategy are made available for use during compilation by adding them to the global GCRegistry. This can done either within the LLVM source tree or via a loadable plugin. An example registeration would be: static GCRegistry::Add<CustomGC> X("custom-name", "my custom supper fancy gc strategy");

Note that to use a custom GCMetadataPrinter, you must also register your GCMetadataPrinter subclass with the GCMetadataPrinterRegistery as well.