Skip to content

Commit b9f0867

Browse files
authored
[LLVM] Re-add Intrinsic::getDeclaration for out-of-tree code (#112242)
1 parent 7215d50 commit b9f0867

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/include/llvm/IR/Intrinsics.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ namespace Intrinsic {
9797
/// the intrinsic.
9898
Function *getOrInsertDeclaration(Module *M, ID id, ArrayRef<Type *> Tys = {});
9999

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+
}
100105
/// Looks up Name in NameTable via binary search. NameTable must be sorted
101106
/// and all entries must start with "llvm.". If NameTable contains an exact
102107
/// match for Name or a prefix of Name followed by a dot, its index in

0 commit comments

Comments
 (0)