We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Intrinsic::getDeclaration
1 parent 7215d50 commit b9f0867Copy full SHA for b9f0867
llvm/include/llvm/IR/Intrinsics.h
@@ -97,6 +97,11 @@ namespace Intrinsic {
97
/// the intrinsic.
98
Function *getOrInsertDeclaration(Module *M, ID id, ArrayRef<Type *> Tys = {});
99
100
+ LLVM_DEPRECATED("Use getOrInsertDeclaration instead",
101
+ "getOrInsertDeclaration")
102
+ inline Function *getDeclaration(Module *M, ID id, ArrayRef<Type *> Tys = {}) {
103
+ return getOrInsertDeclaration(M, id, Tys);
104
+ }
105
/// Looks up Name in NameTable via binary search. NameTable must be sorted
106
/// and all entries must start with "llvm.". If NameTable contains an exact
107
/// match for Name or a prefix of Name followed by a dot, its index in
0 commit comments