aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/include/llvm-c/Core.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-07-16 16:29:42 +0000
committerDimitry Andric <dim@FreeBSD.org>2021-12-25 11:51:10 +0000
commitb131ebe66504c9684e0208b33845a72da602e9ee (patch)
treec819867daffd47797dab29be98e7796aa2bec9c1 /contrib/llvm-project/llvm/include/llvm-c/Core.h
parent03c75960497c7a8aa6ff836be3a7be8a3b081d39 (diff)
downloadsrc-b131ebe66504c9684e0208b33845a72da602e9ee.tar.gz
src-b131ebe66504c9684e0208b33845a72da602e9ee.zip
Merge llvm-project 12.0.1 release
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-12.0.1-0-gfed41342a82f, a.k.a. 12.0.1 release. PR: 255570 MFC after: 6 weeks (cherry picked from commit 4652422eb477731f284b1345afeefef7f269da50)
Diffstat (limited to 'contrib/llvm-project/llvm/include/llvm-c/Core.h')
-rw-r--r--contrib/llvm-project/llvm/include/llvm-c/Core.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/include/llvm-c/Core.h b/contrib/llvm-project/llvm/include/llvm-c/Core.h
index a78df16ca404..2901ab715810 100644
--- a/contrib/llvm-project/llvm/include/llvm-c/Core.h
+++ b/contrib/llvm-project/llvm/include/llvm-c/Core.h
@@ -605,6 +605,17 @@ unsigned LLVMGetEnumAttributeKind(LLVMAttributeRef A);
uint64_t LLVMGetEnumAttributeValue(LLVMAttributeRef A);
/**
+ * Create a type attribute
+ */
+LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID,
+ LLVMTypeRef type_ref);
+
+/**
+ * Get the type attribute's value.
+ */
+LLVMTypeRef LLVMGetTypeAttributeValue(LLVMAttributeRef A);
+
+/**
* Create a string attribute.
*/
LLVMAttributeRef LLVMCreateStringAttribute(LLVMContextRef C,
@@ -626,6 +637,7 @@ const char *LLVMGetStringAttributeValue(LLVMAttributeRef A, unsigned *Length);
*/
LLVMBool LLVMIsEnumAttribute(LLVMAttributeRef A);
LLVMBool LLVMIsStringAttribute(LLVMAttributeRef A);
+LLVMBool LLVMIsTypeAttribute(LLVMAttributeRef A);
/**
* Obtain a Type from a context by its registered name.