Displaying 20 results from an estimated 100 matches similar to: "[LLVMdev] ocaml bindings + ocamlbuild problem"
2010 Mar 05
0
[LLVMdev] Last chance to get anything into llvm-c and ocaml bindings
On Mar 3, 2010, at 20:44, Erick Tryzelaar wrote:
>
> I've pretty much finished exposing all I wanted to llvm-c and the
> ocaml bindings for the soon to be released 2.7. Does anyone need any
> other functions exposed before the code freeze on the 7th?
Oh hey... I remember now. There is one thing I probably won't get around to doing myself until after the code freeze.
(*
2008 Oct 22
2
[LLVMdev] r57974 & r57976 for PR2888
Pending positive confirmation in http://llvm.org/PR2886, I'd recommend
that r57974 and r57976 be pulled into the 2.4 release branch and
configure regenerated there.
Begin forwarded message:
> From: Gordon Henriksen <gordonhenriksen at mac.com>
> Date: October 22, 2008 08:40:40 EDT
> To: llvm-commits at cs.uiuc.edu
> Subject: [llvm-commits] [llvm] r57974 -
2010 Mar 04
4
[LLVMdev] Last chance to get anything into llvm-c and ocaml bindings
I've pretty much finished exposing all I wanted to llvm-c and the
ocaml bindings for the soon to be released 2.7. Does anyone need any
other functions exposed before the code freeze on the 7th?
2009 May 28
0
[LLVMdev] [Cygwin] OCAML 'make check' failures
Getting the following on Cygwin :-
Running /home/ang/svn/llvm/test/Bindings/Ocaml/ocaml.exp ...
FAIL: /home/ang/svn/llvm/test/Bindings/Ocaml/analysis.ml
Failed with exit(2) at line 1
while running: /usr/bin/ocamlc -cc g++ -I
/home/ang/build/llvm/Debug/lib/ocaml -
warn-error A llvm.cma llvm_analysis.cma
/home/ang/svn/llvm/test/Bindings/Ocaml/a
nalysis.ml -o analysis.ml.tmp 2> /dev/null
child
2007 Oct 02
2
[LLVMdev] OCaml Install Error
On 2007-10-02, at 10:46, Jan Rehders wrote:
> where can I read more about this? I assume (hope) the lib provides
> some kind of OCaml bindings? I could not find any trace of it in
> the 2.1 release source so I guess it's currently SVN only?
Jan,
Here's a trivial example.
$ cat metahelloworld.ml
(* metahelloworld.ml *)
open Llvm
open Llvm_bitwriter
let _ =
let filename
2012 Dec 15
0
[LLVMdev] Kaleidoscope Build Problems - (OCaml)
Hello everyone...
I'm hoping that someone can give me insight as to why I am having problems
building the Kaleidoscope example for OCaml.
Platform: Mac OS 10.8.2
OCaml version: 4.00.1
LLVM version: 3.1
XCode version: 4.5.2
I successfully build the examples when running "gnumake BUILD_EXAMPLES=1"
in the OBJ_DIR, however when I try to build them from outside the build
tree (ie move
2023 Aug 13
2
a quick and dirty way to compile R on win arm64 using clangarm64
hello everyone:
On this boring weekend, I tried compile R-trunk on windows 11 arm64 using clangarm64+msys2 on macbook m1 , it surprisingly easy to compiled and run.
more investigation and test and code modify need to be done ,but IMO this is a good beginning !!
to compile R on windows 11 arm64 just need :
1 svn checkout R-trunk and add USE_LLVM=YES in MKRules.dist or Mkrules.local
2 install
2007 Oct 19
0
[LLVMdev] OCaml Install Error
Hi,
this looks very promising. Do you have any plans to add bindings for
the use of an ExecutionEngine, especially recompileAndRelinkFunction?
I've build an interactive toplevel implemented in OCaml and I have to
pull of some stunts to be able to change the definition of a
function. (emit a .ll file containing the code, looking up the
function and calling removeBody, then reading
2007 Sep 17
0
[LLVMdev] C interface
On Sep 12, 2007, at 01:01, Gordon Henriksen wrote:
> I'm authoring a C interface to the LLVM IR type system. Since this
> is Really Quite Tedious, I would like to solicit opinions before I
> get too far down any paths that seem offensive. I've attached the
> header, where I've mapped a portion of Module and most of Type and
> its subclasses. This is working, and
2011 Apr 01
1
[LLVMdev] Fatal error
Hi Everyone,
When I compile llvm 2.8 with the option --disable-optimized
--enable-assertions on
Leopard with Ocaml 3.11, I get the following fatal error when it starts to
build
the ocaml docs.
llvm[1]: Installing HTML documentation
llvm[1]: Building ocamldoc documentation
llvm[3]: Documenting llvm.odoc
llvm[3]: Documenting llvm_bitreader.odoc
llvm[3]: Documenting llvm_bitwriter.odoc
llvm[3]:
2007 Nov 26
0
[LLVMdev] Fibonacci example in OCaml
Here is a complete 104-line native code compiler for a tiny subset of OCaml
that is expressive enough to compile an external Fibonacci program:
type expr =
| Int of int
| Var of string
| BinOp of [ `Add | `Sub | `Leq ] * expr * expr
| If of expr * expr * expr
| Apply of expr * expr
type defn =
| LetRec of string * string * expr
open Camlp4.PreCast;;
let expr = Gram.Entry.mk
2008 Dec 30
2
[LLVMdev] llvm ocaml bindings
(ccing llvmdev) Hi Ranjit! I only ported Chris's tutorial and Gordon
did the vast majority of the bindings, so they deserve most of the
praise. I believe there are techniques for walking over the CFG. You
can load up code using Llvm_bitreader, use things like
Llvm.iter_globals, Llvm.iter_functions, and Llvm.iter_instrs to walk
over the module, and write out a new llmodule using
2008 Jul 31
2
[LLVMdev] Status of Ocaml bindings
Hi all,
I'm interested in the LLVM Ocaml bindings so I pulled the current
sources from SVN and built them. When I ran the test suite I got the
following stats:
# of expected passes 2631
# of unexpected failures 7
# of expected failures 11
It looks like some of the failures were due to the Ocaml parts of the
tests:
FAIL:
2007 Nov 25
5
[LLVMdev] OCaml
On Sunday 25 November 2007 12:23, Gordon Henriksen wrote:
> On 2007-11-24, at 21:58, Jon Harrop wrote:
> > - Garbage collection tuned for functional programming
>
> http://llvm.org/docs/GarbageCollection.html
>
> I've been doing some interesting work on this front. Getting Lattner-
> cycles to have it reviewed and integrated is probably the biggest
> challenge; LLVM
2008 Mar 09
1
[LLVMdev] [PATCH] Make the ocaml source comments work with ocamldoc.
This patch cleans up the code so that it formats nicely with
ocamldoc. It does not yet hook into the build system, though.
---
bindings/ocaml/analysis/llvm_analysis.mli | 21 +-
bindings/ocaml/bitreader/llvm_bitreader.mli | 13 +-
bindings/ocaml/bitwriter/llvm_bitwriter.mli | 11 +-
.../ocaml/executionengine/llvm_executionengine.mli | 118 ++--
2008 Jul 31
0
[LLVMdev] Status of Ocaml bindings
On Thu, Jul 31, 2008 at 12:32, Erik de Castro Lopo <mle+cl at mega-nerd.com> wrote:
> Hi all,
>
> I'm interested in the LLVM Ocaml bindings so I pulled the current
> sources from SVN and built them. When I ran the test suite I got the
> following stats:
>
> # of expected passes 2631
> # of unexpected failures 7
> # of expected
2007 Nov 25
0
[LLVMdev] OCaml
Jon,
On 2007-11-24, at 21:58, Jon Harrop wrote:
> I just took another look at the LLVM project and it has come along
> in leaps and bounds since I last looked. I've been working through
> the (awesome!) tutorial and am now really hyped about the project.
Excellent!
> I am particularly interested in using LLVM to write compilers for
> OCaml-like languages in OCaml-like
2008 Dec 31
0
[LLVMdev] llvm ocaml bindings
Hi,
thanks Chris and Gordon for the fantasic infrastructure and ocaml
bindings and Erick for the prompt response!
I'm looking to use LLVM to write program analyses for
C/C++ programs, but to use Ocaml to write the analyses.
I did see there were bindings for iterating over:
* functions in a module [iter_functions]
* basic blocks in a functions [iter_blocks]
* instructions in a block
2007 Nov 25
2
[LLVMdev] Fibonacci example in OCaml
Here's my translation of the Fibonacci example into OCaml:
open Printf
open Llvm
let build_fib m =
let fibf =
define_function "fib" (function_type i32_type [| i32_type |]) m in
let bb = builder_at_end (entry_block fibf) in
let one = const_int i32_type 1 and two = const_int i32_type 2 in
let argx = param fibf 0 in
set_value_name "AnArg" argx;
let
2007 Nov 26
1
[LLVMdev] How to declare and use sprintf
On Monday 26 November 2007 00:40, Gordon Henriksen wrote:
> The type you want is:
>
> let sp = pointer_type i8_type in
> var_arg_function_type sp [| sp; sp |]
Awesome stuff. Here is my most elegant Fibonacci example in OCaml so far:
open Llvm
let ( |> ) x f = f x
let int n = const_int i32_type n
let return b x = build_ret x b |> ignore
let build_fib m =
let ty =