Skip to content

Commit

Permalink
[LLVM] Re-add Intrinsic::getDeclaration for out-of-tree code (llvm#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jurahul authored and DanielCChen committed Oct 16, 2024
1 parent 1051c6c commit f880744
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 f880744

Please sign in to comment.