mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
[OCaml] Expose Llvm.get_operand_use.
Patch by Gabriel Radanne <drupyog@zoho.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215420 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -577,6 +577,11 @@ CAMLprim LLVMValueRef llvm_operand(LLVMValueRef V, value I) {
|
||||
return LLVMGetOperand(V, Int_val(I));
|
||||
}
|
||||
|
||||
/* llvalue -> int -> lluse */
|
||||
CAMLprim LLVMUseRef llvm_operand_use(LLVMValueRef V, value I) {
|
||||
return LLVMGetOperandUse(V, Int_val(I));
|
||||
}
|
||||
|
||||
/* llvalue -> int -> llvalue -> unit */
|
||||
CAMLprim value llvm_set_operand(LLVMValueRef U, value I, LLVMValueRef V) {
|
||||
LLVMSetOperand(U, Int_val(I), V);
|
||||
|
Reference in New Issue
Block a user