Displaying 2 results from an estimated 2 matches for "llvm_operand".
2010 Aug 15
4
[LLVMdev] Ocaml bindings in 2.8
Hi,
Does 2.8 release plan to change anything in Ocaml bindings?
http://llvm.org/docs/ReleaseNotes.html#whatsnew does not list any
relevant features.
2.7 added 'operand' that can access each operand from a value.
external operand : llvalue -> int -> llvalue = "llvm_operand"
Does this binding also expose a primitive to return how many operands
a given value has?
I need some primitives that check kinds of instructions, and access
operands or other properties of a kind of instruction. Can 'operand'
work for this requirement?
Thanks
--
Jianzhou
2010 Aug 17
0
[LLVMdev] Ocaml bindings in 2.8
...llvm-c and
the ocaml bindings. I'll start the process. Is there anything in
particular you are looking for? I'm happy to integrate patches for
you.
> 2.7 added 'operand' that can access each operand from a value.
> external operand : llvalue -> int -> llvalue = "llvm_operand"
> Does this binding also expose a primitive to return how many operands
> a given value has?
Oops, I forgot to expose an equivalent LLVMGetNumOperands. I'll get
that into 2.8.
> I need some primitives that check kinds of instructions, and access
> operands or other propertie...