mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
Add the ocaml binding to LLVMBuildAggregateRet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
44a708f6f4
commit
6793dd9769
@ -974,6 +974,12 @@ CAMLprim LLVMValueRef llvm_build_ret(LLVMValueRef Val, value B) {
|
||||
return LLVMBuildRet(Builder_val(B), Val);
|
||||
}
|
||||
|
||||
/* llvalue array -> llbuilder -> llvalue */
|
||||
CAMLprim LLVMValueRef llvm_build_aggregate_ret(value RetVals, value B) {
|
||||
return LLVMBuildAggregateRet(Builder_val(B), (LLVMValueRef *) Op_val(RetVals),
|
||||
Wosize_val(RetVals));
|
||||
}
|
||||
|
||||
/* llbasicblock -> llbuilder -> llvalue */
|
||||
CAMLprim LLVMValueRef llvm_build_br(LLVMBasicBlockRef BB, value B) {
|
||||
return LLVMBuildBr(Builder_val(B), BB);
|
||||
|
Loading…
Reference in New Issue
Block a user