[vmkit-commits] [vmkit] r81642 - /vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Sat Sep 12 15:38:06 PDT 2009
Author: geoffray
Date: Sat Sep 12 17:38:06 2009
New Revision: 81642
URL: http://llvm.org/viewvc/llvm-project?rev=81642&view=rev
Log:
Add vmkit's GC for JIT-generated functions.
Added:
vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp
Added: vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp?rev=81642&view=auto
==============================================================================
--- vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp (added)
+++ vmkit/trunk/lib/Mvm/Compiler/VmkitGC.cpp Sat Sep 12 17:38:06 2009
@@ -0,0 +1,29 @@
+//===------- VmkitGC.cpp - GC for JIT-generated functions -----------------===//
+//
+// The VMKit project
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+
+#include "llvm/CodeGen/GCs.h"
+#include "llvm/CodeGen/GCStrategy.h"
+#include "llvm/Support/Compiler.h"
+
+using namespace llvm;
+
+namespace {
+ class VISIBILITY_HIDDEN VmkitGC : public GCStrategy {
+ public:
+ VmkitGC();
+ };
+}
+
+static GCRegistry::Add<VmkitGC>
+X("vmkit", "VMKit GC for JIT-generated functions");
+
+VmkitGC::VmkitGC() {
+ NeededSafePoints = 1 << GC::PostCall;
+}
More information about the vmkit-commits
mailing list