Displaying 2 results from an estimated 2 matches for "emit_bc".
2007 Sep 14
0
[LLVMdev] C interface
...ated a new library
> called Interop to house the C bindings—but it might make more sense to
> implement the C bindings in each library instead. They're just glue
> which the linker will trivially DCE, so that approach may have merit.
>
> — Gordon
>
>
> [1]
> *$ cat emit_bc.ml*
> open Llvm
>
> let emit_bc filename =
> let m = create_module filename in
>
> let big_fn_ty = make_pointer_type
> (make_function_type (void_type ())
> [| make_vector_type (float_type ()) 4;
> make_pointer_typ...
2007 Sep 12
7
[LLVMdev] C interface
...g the headers in include/llvm-c. I created a new library
called Interop to house the C bindings—but it might make more sense
to implement the C bindings in each library instead. They're just
glue which the linker will trivially DCE, so that approach may have
merit.
— Gordon
[1]
$ cat emit_bc.ml
open Llvm
let emit_bc filename =
let m = create_module filename in
let big_fn_ty = make_pointer_type
(make_function_type (void_type ())
[| make_vector_type (float_type ()) 4;
make_pointer_type
(make_s...