[llvm-commits] [PATCH] Expose Pass and PassManager classes to c and ocaml bindings.

Erick Tryzelaar 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...
Name: 4798372707a1c692f77df97ab7c1173f19d17769.diff
Type: text/x-patch
Size: 14268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080310/9404f619/attachment.bin>

More information about the llvm-commits mailing list