[llvm-commits] [PATCH] Expose Pass and PassManager classes to c and ocaml bindings.
idadesub at users.sourceforge.net
Mon Mar 10 23:26:39 PDT 2008
Another attempt at adding support for Pass and PassManager.
This adds the missing documentation and puts the glue code in
Pass.cpp, PassManager.cpp, and Core.h.
I still have some issues with having all the bindings in one
source and header file. Is the cost of having at most double
the files in the repository worth the possible management overhead
of not being able to easily compare if a section in llvm-c/Core.h
directy corresponds with the file in llvm/...? It also could make
things a little more efficient with compile times if a c library
only needs to include a subset of the headers. Maybe we can talk
more about this on #llvm tomorrow.
bindings/ocaml/llvm/llvm.ml | 42 +++++++++++++++++++++
bindings/ocaml/llvm/llvm.mli | 68 ++++++++++++++++++++++++++++++++++
bindings/ocaml/llvm/llvm_ocaml.c | 75 ++++++++++++++++++++++++++++++++++++++
include/llvm-c/Core.h | 64 ++++++++++++++++++++++++++++++++
lib/VMCore/Pass.cpp | 9 +++++
lib/VMCore/PassManager.cpp | 43 ++++++++++++++++++++++
6 files changed, 301 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 14268 bytes
Desc: not available
More information about the llvm-commits