26 if (S.getName() == Name)
27 return S.instantiate();
45 "unsupported GC: " + Name +
46 " (did you remember to link and initialize the library?)");
#define LLVM_INSTANTIATE_REGISTRY(REGISTRY_CLASS)
static iterator_range< iterator > entries()
StringRef - Represent a constant reference to a string, i.e.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
This is an optimization pass for GlobalISel generic memory operations.
Registry< GCStrategy > GCRegistry
Subclasses of GCStrategy are made available for use during compilation by adding them to the global G...
LLVM_ABI void report_fatal_error(Error Err, bool gen_crash_diag=true)
LLVM_ABI void linkAllBuiltinGCs()
FIXME: Collector instances are not useful on their own.
LLVM_ABI std::unique_ptr< GCStrategy > getGCStrategy(const StringRef Name)
Lookup the GCStrategy object associated with the given gc name.