1 //===-- OcamlGC.cpp - Ocaml frametable GC strategy ------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements lowering for the llvm.gc* intrinsics compatible with
11 // Objective Caml 3.10.0, which uses a liveness-accurate static stack map.
13 // The frametable emitter is in OcamlGCPrinter.cpp.
15 //===----------------------------------------------------------------------===//
17 #include "llvm/CodeGen/GCs.h"
18 #include "llvm/CodeGen/GCStrategy.h"
23 class OcamlGC : public GCStrategy {
29 static GCRegistry::Add<OcamlGC> X("ocaml", "ocaml 3.10-compatible GC");
31 void llvm::linkOcamlGC() {}
34 NeededSafePoints = 1 << GC::PostCall;