Displaying 2 results from an estimated 2 matches for "recursivety".
Did you mean:
recursively
2008 May 11
0
[LLVMdev] Python bindings available.
...of how to use it?
To close the loop with C++ syntax, LLVMTypeHandleRef is really a
pointer to a heap-allocated PATypeHolder, which is discussed here:
http://llvm.org/docs/ProgrammersManual.html#BuildRecType
The file test/Bindings/Ocaml/vmcore.ml contains this fragment:
(* RUN: grep -v {RecursiveTy.*RecursiveTy} < %t.ll
*)
let ty = opaque_type () in
let th = handle_to_type ty in
refine_type ty (pointer_type ty);
let ty = type_of_handle th in
insist (define_type_name "RecursiveTy" ty m);
insist (ty == element_type ty)
Which constructs %RecursiveType = type %...
2008 May 11
2
[LLVMdev] Python bindings available.
Hi Gordon,
Thanks for your comments.
> > Constant.string(value, dont_null_terminate) -- value is a string
> > Constant.struct(consts, packed) -- a struct, consts is a list of
> > other constants, packed is boolean
>
> I did this in Ocaml initially, but found the boolean constants pretty
> confusing to read in code. I kept asking "What's that random true