[LLVM] Re-add Intrinsic::getDeclaration for out-of-tree code#112242
Merged
[LLVM] Re-add Intrinsic::getDeclaration for out-of-tree code#112242
Intrinsic::getDeclaration for out-of-tree code#112242Conversation
Re-add `Intrinsic::getDeclaration` (which was renamed to `getOrInsertDeclaration` in an earlier commit) as a deprecated function. It will be removed in the next LLVM release.
Member
|
@llvm/pr-subscribers-llvm-ir Author: Rahul Joshi (jurahul) ChangesRe-add 1 Files Affected:
diff --git a/llvm/include/llvm/IR/Intrinsics.h b/llvm/include/llvm/IR/Intrinsics.h
index 8c37925732a83a..49f4fe4c5c3d7f 100644
--- a/llvm/include/llvm/IR/Intrinsics.h
+++ b/llvm/include/llvm/IR/Intrinsics.h
@@ -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
|
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/3480 Here is the relevant piece of the build log for the reference |
DanielCChen
pushed a commit
to DanielCChen/llvm-project
that referenced
this pull request
Oct 16, 2024
AnthonyLatsis
added a commit
to swiftlang/swift
that referenced
this pull request
Jul 21, 2025
Ninja3047
added a commit
to lifting-bits/remill
that referenced
this pull request
Dec 16, 2025
`llvm::Instrinsic::getDeclaration` will be removed soon, deprecation started in llvm 21 llvm/llvm-project#111752 llvm/llvm-project#112242
kyle-elliott-tob
pushed a commit
to lifting-bits/remill
that referenced
this pull request
Dec 16, 2025
`llvm::Instrinsic::getDeclaration` will be removed soon, deprecation started in llvm 21 llvm/llvm-project#111752 llvm/llvm-project#112242
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-add
Intrinsic::getDeclaration(which was renamed togetOrInsertDeclarationin #111752) as a deprecated function. It will be removed in the next LLVM release.