[llvm-commits] CVS: llvm/runtime/GC/GCInterface.h Makefile gc_exported_symbols.lst
Chris Lattner
lattner at cs.uiuc.edu
Sun May 23 16:28:01 PDT 2004
Changes in directory llvm/runtime/GC:
GCInterface.h added (r1.1)
Makefile added (r1.1)
gc_exported_symbols.lst added (r1.1)
---
Log message:
Initial checkin of GC implementation support files
---
Diffs of the changes: (+69 -0)
Index: llvm/runtime/GC/GCInterface.h
diff -c /dev/null llvm/runtime/GC/GCInterface.h:1.1
*** /dev/null Sun May 23 16:26:09 2004
--- llvm/runtime/GC/GCInterface.h Sun May 23 16:25:59 2004
***************
*** 0 ****
--- 1,42 ----
+ /*===-- GCInterface.h - Public interface exposed by garbage collectors ----===*\
+ |*
+ |* The LLVM Compiler Infrastructure
+ |*
+ |* This file was developed by the LLVM research group and is distributed under
+ |* the University of Illinois Open Source License. See LICENSE.TXT for details.
+ |*
+ |*===----------------------------------------------------------------------===*|
+ |*
+ |* This file defines the common public interface that must be exposed by all
+ |* LLVM garbage collectors.
+ |*
+ \*===----------------------------------------------------------------------===*/
+
+ #ifndef GCINTERFACE_H
+ #define GCINTERFACE_H
+
+ /* llvm_gc_initialize - This function is called to initalize the garbage
+ * collector.
+ */
+ void llvm_gc_initialize();
+
+ /* llvm_gc_allocate - This function allocates Size bytes from the heap and
+ * returns a pointer to it.
+ */
+ void *llvm_gc_allocate(unsigned Size);
+
+ /* llvm_gc_collect - This function forces a garbage collection cycle.
+ */
+ void llvm_gc_collect();
+
+ /* llvm_gc_read - This function should be implemented to include any read
+ * barrier code that is needed by the garbage collector.
+ */
+ void *llvm_gc_read(void **P);
+
+ /* llvm_gc_write - This function should be implemented to include any write
+ * barrier code that is needed by the garbage collector.
+ */
+ void llvm_gc_write(void *V, void **P);
+
+ #endif
Index: llvm/runtime/GC/Makefile
diff -c /dev/null llvm/runtime/GC/Makefile:1.1
*** /dev/null Sun May 23 16:26:09 2004
--- llvm/runtime/GC/Makefile Sun May 23 16:25:59 2004
***************
*** 0 ****
--- 1,20 ----
+ ##===- runtime/GC/Makefile ---------------------------------*- Makefile -*-===##
+ #
+ # The LLVM Compiler Infrastructure
+ #
+ # This file was developed by the LLVM research group and is distributed under
+ # the University of Illinois Open Source License. See LICENSE.TXT for details.
+ #
+ ##===----------------------------------------------------------------------===##
+
+ LEVEL = ../..
+ PARALLEL_DIRS := SemiSpace
+
+ include $(LEVEL)/Makefile.common
+
+ # Install target for libraries: Copy into the gcc install directory in chris's
+ # tree...
+ #
+ install::
+
+ clean::
Index: llvm/runtime/GC/gc_exported_symbols.lst
diff -c /dev/null llvm/runtime/GC/gc_exported_symbols.lst:1.1
*** /dev/null Sun May 23 16:26:09 2004
--- llvm/runtime/GC/gc_exported_symbols.lst Sun May 23 16:25:59 2004
***************
*** 0 ****
--- 1,7 ----
+ llvm_gc_initialize
+ llvm_gc_allocate
+ llvm_gc_collect
+ llvm_gc_write
+ llvm_gc_read
+
+ llvm_gc_root_chain
\ No newline at end of file
More information about the llvm-commits
mailing list