Displaying 3 results from an estimated 3 matches for "const_struct".
2008 May 10
0
[LLVMdev] Python bindings available.
...ruct, 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
doing there?” Therefore, the bindings expose these as const_string/
const_stringz and const_struct/const_packed_struct respectively. I
figure the user can always write her own in the (very) rare cases that
it is necessary to conditionalize such things:
let const_string_maybez nullterm =
if nullterm then const_stringz else const_string
> Memory Buffer and Type Handles are not...
2008 May 10
4
[LLVMdev] Python bindings available.
Hi all,
I'd like to announce the availability of Python bindings for LLVM.
It is built over llvm-c, and currently exposes enough APIs to build an
in-memory IR (and dump it!). It needs LLVM 2.3 latest and Python 2.5
(2.4 should be sufficient, but I haven't tested). Tested only on
Linux/i386.
Would love to hear your comments.
[Needless to say, it's all work in progress, but mostly it
2008 May 11
2
[LLVMdev] Python bindings available.
...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
> doing there?" Therefore, the bindings expose these as const_string/
> const_stringz and const_struct/const_packed_struct respectively. I
OK, will do.
> :) Type handles in particular are very important. You can't form a
> recursive type without using them, so you can't build any sort of data
> structure.
On it already. BTW, where can I find a good example of how to use
it?
&...