Displaying 2 results from an estimated 2 matches for "define_type_nam".
Did you mean:
define_type_name
2008 May 11
0
[LLVMdev] Python bindings available.
...rsManual.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 %RecursiveType*.
>> Finally, just as the C++ STL has reverse_iterator, it did prove
>> necessary to have a separate (At_begin parent | After element) type
>> in order to...
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