1 //===-- Collectors.h - Garbage collector registry -------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by Gordon Henriksen and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares the CollectorRegistry class, which is used to discover
11 // pluggable garbage collectors.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CODEGEN_COLLECTORS_H
16 #define LLVM_CODEGEN_COLLECTORS_H
18 #include "llvm/Support/Registry.h"
24 /// The collector registry uses all the defaults from Registry.
26 typedef Registry<Collector> CollectorRegistry;
28 /// Creates an ocaml-compatible garbage collector.
29 Collector *createOcamlCollector();
31 /// Creates a shadow stack garbage collector. This collector requires no code
32 /// generator support.
33 Collector *createShadowStackCollector();