search for: llbuilder

Displaying 5 results from an estimated 5 matches for "llbuilder".

2010 Feb 18
6
[LLVMdev] ocaml survey
...n. 3. Are there any llvm functionality that you need exposed to ocaml? Right now I plan to expose: add Union to TypeKind.t external union_type: llcontext -> lltype array -> lltype external union_element_types : lltype -> lltype array external build_indirect_br : llvalue -> int -> llbuilder -> llvalue external add_destination: llvalue -> llbasicblock -> unit external build_nsw_add : llvalue -> llvalue -> string -> llbuilder -> llvalue external build_nuw_add : llvalue -> llvalue -> string -> llbuilder -> llvalue external build_nsw_sub : llvalue -> l...
2010 Feb 18
0
[LLVMdev] ocaml survey
...on the OCaml side from LLVM errors. > Right now I plan to expose: > > add Union to TypeKind.t > external union_type: llcontext -> lltype array -> lltype > external union_element_types : lltype -> lltype array > > external build_indirect_br : llvalue -> int -> llbuilder -> llvalue > external add_destination: llvalue -> llbasicblock -> unit > > external build_nsw_add : llvalue -> llvalue -> string -> llbuilder -> > llvalue external build_nuw_add : llvalue -> llvalue -> string -> llbuilder > -> llvalue external build_n...
2010 Feb 19
0
[LLVMdev] ocaml survey
...lity that you need exposed to ocaml? > Right now I plan to expose: > > add Union to TypeKind.t > external union_type: llcontext -> lltype array -> lltype > external union_element_types : lltype -> lltype array > > external build_indirect_br : llvalue -> int -> llbuilder -> llvalue > external add_destination: llvalue -> llbasicblock -> unit > > external build_nsw_add : llvalue -> llvalue -> string -> llbuilder -> llvalue > external build_nuw_add : llvalue -> llvalue -> string -> llbuilder -> llvalue > external build_...
2008 Mar 16
0
[LLVMdev] improving the ocaml binding's type safety
...n scope for even shorter function names than before. Oh and one last thing that I've been meaning to ask for a long long time. Do you think we could change the ordering of some of the arguments? The builder functions, like: external build_phi : (llvalue * llbasicblock) list -> string -> llbuilder -> llvalue = "llvm_build_phi" Have the builder as the last argument, instead of the first as it normally is done in ocaml libraries. It also hampers currying, but I'm not sure how often that would be used. The downside is that we'd have to translate the order in llvm_ocaml.c,...
2008 Mar 16
2
[LLVMdev] improving the ocaml binding's type safety
Erick, After some experimentation, I'd prefer the closed system. LLVM has some type peculiarities like the commonality between CallInst and InvokeInst. I find that the closed type system lets me express such constraints more naturally. Expressing these constraints explicitly in the open system involves annotating the C++ class hierarchy with extra variants which are unnecessary in