summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2016-06-15 05:14:29 +0000
committerAmaury Sechet <deadalnix@gmail.com>2016-06-15 05:14:29 +0000
commita65a237805d8c5a995bb15ed31bdeacbab401489 (patch)
tree95147eef29f4ad6207378b24ac627f534326f39b /llvm/include/llvm-c
parent0e392d5dd7fbc70d90cb11525aceaa2977d63583 (diff)
downloadbcm5719-llvm-a65a237805d8c5a995bb15ed31bdeacbab401489.tar.gz
bcm5719-llvm-a65a237805d8c5a995bb15ed31bdeacbab401489.zip
Add support for callsite in the new C API for attributes
Summary: The second consumer of attributes. Reviewers: Wallbraker, whitequark, echristo, rafael, jyknight Subscribers: mehdi_amini Differential Revision: http://reviews.llvm.org/D21266 llvm-svn: 272754
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Core.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 3d1ebc531c8..6257e758b1e 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -2587,13 +2587,20 @@ void LLVMSetInstructionCallConv(LLVMValueRef Instr, unsigned CC);
*/
unsigned LLVMGetInstructionCallConv(LLVMValueRef Instr);
-
void LLVMAddInstrAttribute(LLVMValueRef Instr, unsigned index, LLVMAttribute);
void LLVMRemoveInstrAttribute(LLVMValueRef Instr, unsigned index,
LLVMAttribute);
void LLVMSetInstrParamAlignment(LLVMValueRef Instr, unsigned index,
unsigned Align);
+void LLVMAddCallSiteAttribute(LLVMValueRef C, LLVMAttributeIndex Idx,
+ LLVMAttributeRef A);
+LLVMAttributeRef LLVMGetCallSiteEnumAttribute(LLVMValueRef C,
+ LLVMAttributeIndex Idx,
+ unsigned KindID);
+void LLVMRemoveCallSiteEnumAttribute(LLVMValueRef C, LLVMAttributeIndex Idx,
+ unsigned KindID);
+
/**
* Obtain the pointer to the function invoked by this instruction.
*
OpenPOWER on IntegriCloud