summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/Core.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-03 22:55:43 +0000
committerDan Gohman <gohman@apple.com>2008-11-03 22:55:43 +0000
commitd5104a5de6a4944b95b9a253e6ec23f65358b3a1 (patch)
tree35ce00551749c75e338e1c17cbf5dc7cfd8bca0f /llvm/include/llvm-c/Core.h
parentfa7431a8076bb3ddc58156f4049c0a10735059da (diff)
downloadbcm5719-llvm-d5104a5de6a4944b95b9a253e6ec23f65358b3a1.tar.gz
bcm5719-llvm-d5104a5de6a4944b95b9a253e6ec23f65358b3a1.zip
Add C bindings for extractvalue and insertvalue. Patch by Frits van Bommel!
llvm-svn: 58650
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r--llvm/include/llvm-c/Core.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index e00f0fba17b..ed301030b66 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -371,6 +371,11 @@ LLVMValueRef LLVMConstInsertElement(LLVMValueRef VectorConstant,
LLVMValueRef LLVMConstShuffleVector(LLVMValueRef VectorAConstant,
LLVMValueRef VectorBConstant,
LLVMValueRef MaskConstant);
+LLVMValueRef LLVMConstExtractValue(LLVMValueRef AggConstant, unsigned *IdxList,
+ unsigned NumIdx);
+LLVMValueRef LLVMConstInsertValue(LLVMValueRef AggConstant,
+ LLVMValueRef ElementValueConstant,
+ unsigned *IdxList, unsigned NumIdx);
/* Operations on global variables, functions, and aliases (globals) */
LLVMModuleRef LLVMGetGlobalParent(LLVMValueRef Global);
@@ -605,6 +610,11 @@ LLVMValueRef LLVMBuildInsertElement(LLVMBuilderRef, LLVMValueRef VecVal,
LLVMValueRef LLVMBuildShuffleVector(LLVMBuilderRef, LLVMValueRef V1,
LLVMValueRef V2, LLVMValueRef Mask,
const char *Name);
+LLVMValueRef LLVMBuildExtractValue(LLVMBuilderRef, LLVMValueRef AggVal,
+ unsigned Index, const char *Name);
+LLVMValueRef LLVMBuildInsertValue(LLVMBuilderRef, LLVMValueRef AggVal,
+ LLVMValueRef EltVal, unsigned Index,
+ const char *Name);
/*===-- Module providers --------------------------------------------------===*/
OpenPOWER on IntegriCloud