Skip to content

Commit

Permalink
[LLVM] Re-add Intrinsic::getDeclaration for out-of-tree code (#112242)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurahul authored Oct 15, 2024
1 parent 7215d50 commit b9f0867
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions llvm/include/llvm/IR/Intrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ namespace Intrinsic {
/// the intrinsic.
Function *getOrInsertDeclaration(Module *M, ID id, ArrayRef<Type *> Tys = {});

LLVM_DEPRECATED("Use getOrInsertDeclaration instead",
"getOrInsertDeclaration")
inline Function *getDeclaration(Module *M, ID id, ArrayRef<Type *> Tys = {}) {
return getOrInsertDeclaration(M, id, Tys);
}
/// Looks up Name in NameTable via binary search. NameTable must be sorted
/// and all entries must start with "llvm.". If NameTable contains an exact
/// match for Name or a prefix of Name followed by a dot, its index in
Expand Down

0 comments on commit b9f0867

Please sign in to comment.