Skip to content

[IR] Remove Intrinsic::getDeclaration #152645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kazutakahirata
Copy link
Contributor

Intrinsic::getDeclaration has been deprecated for more than 9 months
since:

commit b9f0867
Author: Rahul Joshi [email protected]
Date: Mon Oct 14 19:21:28 2024 -0700

This patch removes it. I'm not aware of any downstream use AFAIK.

Intrinsic::getDeclaration has been deprecated for more than 9 months
since:

  commit b9f0867
  Author: Rahul Joshi <[email protected]>
  Date:   Mon Oct 14 19:21:28 2024 -0700

This patch removes it.  I'm not aware of any downstream use AFAIK.
@llvmbot
Copy link
Member

llvmbot commented Aug 8, 2025

@llvm/pr-subscribers-llvm-ir

Author: Kazu Hirata (kazutakahirata)

Changes

Intrinsic::getDeclaration has been deprecated for more than 9 months
since:

commit b9f0867
Author: Rahul Joshi <[email protected]>
Date: Mon Oct 14 19:21:28 2024 -0700

This patch removes it. I'm not aware of any downstream use AFAIK.


Full diff: https://github.com/llvm/llvm-project/pull/152645.diff

1 Files Affected:

  • (modified) llvm/include/llvm/IR/Intrinsics.h (-6)
diff --git a/llvm/include/llvm/IR/Intrinsics.h b/llvm/include/llvm/IR/Intrinsics.h
index 48735b06d3f53..9577d0141f168 100644
--- a/llvm/include/llvm/IR/Intrinsics.h
+++ b/llvm/include/llvm/IR/Intrinsics.h
@@ -104,12 +104,6 @@ namespace Intrinsic {
   LLVM_ABI 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);
-  }
-
   /// Look up the Function declaration of the intrinsic \p id in the Module
   /// \p M and return it if it exists. Otherwise, return nullptr. This version
   /// supports non-overloaded intrinsics.

@kazutakahirata kazutakahirata merged commit c11868f into llvm:main Aug 8, 2025
11 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20250807_getDeclaration branch August 8, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants