summaryrefslogtreecommitdiff
path: root/include/llvm-c
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-10-08 18:14:39 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-10-08 18:14:39 +0000
commit2618a6c1122d5d2007787fb56156be44b21ab32a (patch)
tree34c07e87ce874abaa9ad3d2ef27c0f72c5773c3d /include/llvm-c
parent389079b59f6fc1283eeed407df36959a3fbc0e48 (diff)
downloadllvm-2618a6c1122d5d2007787fb56156be44b21ab32a.tar.gz
llvm-2618a6c1122d5d2007787fb56156be44b21ab32a.tar.bz2
llvm-2618a6c1122d5d2007787fb56156be44b21ab32a.tar.xz
C and Objective Caml bindings for PHINode::addIncoming etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/Core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
index d8bff3211a..a9228bcfc3 100644
--- a/include/llvm-c/Core.h
+++ b/include/llvm-c/Core.h
@@ -352,6 +352,12 @@ LLVMBasicBlockRef LLVMInsertBasicBlock(LLVMBasicBlockRef InsertBeforeBB,
const char *Name);
void LLVMDeleteBasicBlock(LLVMBasicBlockRef BB);
+/* Operations on phi nodes */
+void LLVMAddIncoming(LLVMValueRef PhiNode, LLVMValueRef *IncomingValues,
+ LLVMBasicBlockRef *IncomingBlocks, unsigned Count);
+unsigned LLVMCountIncoming(LLVMValueRef PhiNode);
+LLVMValueRef LLVMGetIncomingValue(LLVMValueRef PhiNode, unsigned Index);
+LLVMBasicBlockRef LLVMGetIncomingBlock(LLVMValueRef PhiNode, unsigned Index);
/*===-- Instruction builders ----------------------------------------------===*/