[llvm] [Transforms] Remove dead declarations (PR #218110)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 22 00:36:42 PDT 2026


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/218110

initABI: The corresponding function definition was removed on October 3,
2024 in commit 66227bf7ee2cd674e0306d9a1e9f1d86bc75123f.

AccessAsInstructionInfo: The last use was removed on March 8, 2022 in
commit e8fadafe774c7e601129be50cedce1dd20843cea.


>From 7f0b8730dc5553ba5c8f1a44dedf660bb228e7a0 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sat, 22 Aug 2026 00:21:44 -0700
Subject: [PATCH] [Transforms] Remove dead declarations

initABI: The corresponding function definition was removed on October 3,
2024 in commit 66227bf7ee2cd674e0306d9a1e9f1d86bc75123f.

AccessAsInstructionInfo: The last use was removed on March 8, 2022 in
commit e8fadafe774c7e601129be50cedce1dd20843cea.
---
 llvm/include/llvm/Transforms/Coroutines/CoroShape.h | 2 --
 llvm/lib/Transforms/IPO/AttributorAttributes.cpp    | 9 ---------
 2 files changed, 11 deletions(-)

diff --git a/llvm/include/llvm/Transforms/Coroutines/CoroShape.h b/llvm/include/llvm/Transforms/Coroutines/CoroShape.h
index b7e32d7900c57..bdb3c9db02aa5 100644
--- a/llvm/include/llvm/Transforms/Coroutines/CoroShape.h
+++ b/llvm/include/llvm/Transforms/Coroutines/CoroShape.h
@@ -95,8 +95,6 @@ struct Shape {
   LLVM_ABI void
   invalidateCoroutine(Function &F,
                       SmallVectorImpl<CoroFrameInst *> &CoroFrames);
-  // Perform ABI related initial transformation
-  LLVM_ABI void initABI();
   // Remove orphaned and unnecessary intrinsics
   LLVM_ABI void
   cleanCoroutine(SmallVectorImpl<CoroFrameInst *> &CoroFrames,
diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index 050bc32355253..8d16f49525ca8 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -763,15 +763,6 @@ template <> struct DenseMapInfo<AA::RangeTy> {
   }
 };
 
-/// Helper for AA::PointerInfo::Access DenseMap/Set usage ignoring everythign
-/// but the instruction
-struct AccessAsInstructionInfo : DenseMapInfo<Instruction *> {
-  using Base = DenseMapInfo<Instruction *>;
-  using Access = AAPointerInfo::Access;
-  static unsigned getHashValue(const Access &A);
-  static bool isEqual(const Access &LHS, const Access &RHS);
-};
-
 } // namespace llvm
 
 /// A type to track pointer/struct usage and accesses for AAPointerInfo.



More information about the llvm-commits mailing list