summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2016-02-10 00:38:50 +0000
committerAmaury Sechet <deadalnix@gmail.com>2016-02-10 00:38:50 +0000
commitaad935378f533014f7ada9ea4a70f809f324ee84 (patch)
tree8d9f1fa95abe4d2e7b1b12cb156d20fb3906c443 /llvm/include/llvm-c
parentae06ca0c7e6b187f14059032109d9d9eaef8e6f3 (diff)
downloadbcm5719-llvm-aad935378f533014f7ada9ea4a70f809f324ee84.tar.gz
bcm5719-llvm-aad935378f533014f7ada9ea4a70f809f324ee84.zip
Add support for struct in C API test
Summary: As per title. This also include extra support for insertvalue and extracvalue. Reviewers: bogner, chandlerc, echristo, dblaikie, joker.eph, Wallbraker Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17055 llvm-svn: 260335
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Core.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 019bc7a8044..7224adfacc9 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -2580,6 +2580,30 @@ LLVMBasicBlockRef LLVMGetIncomingBlock(LLVMValueRef PhiNode, unsigned Index);
*/
/**
+ * @defgroup LLVMCCoreValueInstructionExtractValue ExtractValue
+ * @defgroup LLVMCCoreValueInstructionInsertValue InsertValue
+ *
+ * Functions in this group only apply to instructions that map to
+ * llvm::ExtractValue and llvm::InsertValue instances.
+ *
+ * @{
+ */
+
+/**
+ * Obtain the number of indices.
+ */
+unsigned LLVMGetNumIndices(LLVMValueRef Inst);
+
+/**
+ * Obtain the indices as an array.
+ */
+const unsigned *LLVMGetIndices(LLVMValueRef Inst);
+
+/**
+ * @}
+ */
+
+/**
* @}
*/
OpenPOWER on IntegriCloud