diff options
author | Robert Widmann <devteam.codafi@gmail.com> | 2019-03-25 20:58:58 +0000 |
---|---|---|
committer | Robert Widmann <devteam.codafi@gmail.com> | 2019-03-25 20:58:58 +0000 |
commit | 9d94a684040f2b53b6f7deccdf41e33c691f0209 (patch) | |
tree | c477a8bc6e69cd83ef7f86cb787a9305b17cac72 /llvm/include/llvm-c/Core.h | |
parent | ec28a1dcefc335c1c90959086194a8a168fff35a (diff) | |
download | bcm5719-llvm-9d94a684040f2b53b6f7deccdf41e33c691f0209.tar.gz bcm5719-llvm-9d94a684040f2b53b6f7deccdf41e33c691f0209.zip |
[LLVM-C] Add binding to look up intrinsic by name
Summary: Add a binding to Function::lookupIntrinsicID so clients don't have to go searching the ID table themselves.
Reviewers: whitequark, deadalnix
Reviewed By: whitequark
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59697
llvm-svn: 356948
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r-- | llvm/include/llvm-c/Core.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index 9c521899c95..393250f7f8c 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -2403,6 +2403,13 @@ LLVMValueRef LLVMGetPersonalityFn(LLVMValueRef Fn); void LLVMSetPersonalityFn(LLVMValueRef Fn, LLVMValueRef PersonalityFn); /** + * Obtain the intrinsic ID number which matches the given function name. + * + * @see llvm::Function::lookupIntrinsicID() + */ +unsigned LLVMLookupIntrinsicID(const char *Name, size_t NameLen); + +/** * Obtain the ID number from a function instance. * * @see llvm::Function::getIntrinsicID() |