summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/Core.h
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2017-10-27 11:51:40 +0000
committerwhitequark <whitequark@whitequark.org>2017-10-27 11:51:40 +0000
commit131f98f054e480cf2533e9754f625c131dc72c95 (patch)
tree0d7e3c3f69365c31550e7512f8981eb7b7baccc0 /llvm/include/llvm-c/Core.h
parent90dacc256f3ecd35464ccdc50979cf2ea5f2a3b4 (diff)
downloadbcm5719-llvm-131f98f054e480cf2533e9754f625c131dc72c95.tar.gz
bcm5719-llvm-131f98f054e480cf2533e9754f625c131dc72c95.zip
[LLVM-C] Publicly expose getters of MetadataType, TokenType
Patch by Robert Widmann. Expose getters for MetadataType and TokenType publicly in the C API. Discovered a need for these while trying to wrap the intrinsics API. Differential Revision: https://reviews.llvm.org/D38809 llvm-svn: 316762
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 22cef23007c..8238c09f9dd 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -1137,6 +1137,16 @@ LLVMTypeRef LLVMLabelTypeInContext(LLVMContextRef C);
LLVMTypeRef LLVMX86MMXTypeInContext(LLVMContextRef C);
/**
+ * Create a token type in a context.
+ */
+LLVMTypeRef LLVMTokenTypeInContext(LLVMContextRef C);
+
+/**
+ * Create a metadata type in a context.
+ */
+LLVMTypeRef LLVMMetadataTypeInContext(LLVMContextRef C);
+
+/**
* These are similar to the above functions except they operate on the
* global context.
*/
OpenPOWER on IntegriCloud