search for: for_elements

Displaying 2 results from an estimated 2 matches for "for_elements".

2008 May 10
0
[LLVMdev] Python bindings available.
...return Before this.first_element Element.succ = if this.next_element is null return At_end this.parent else return Before this.next_element Then the user could build many IR navigation algorithms. The simplest one, "for each", is thus: for_elements(parent, callback) = pos = parent.begin loop match pos with | At_end _ -> break | Before element -> callback(element) pos = element.succ for_elements(parent, do_my_thing) This representation was idiomatic in a functional...
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