[llvm] ef22de8 - [Transforms] Remove dead declarations (#218110)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 22 09:28:22 PDT 2026


Author: Kazu Hirata
Date: 2026-08-22T09:28:17-07:00
New Revision: ef22de81a0b22c8ff0cd93a76eb523300f95ef17

URL: https://github.com/llvm/llvm-project/commit/ef22de81a0b22c8ff0cd93a76eb523300f95ef17
DIFF: https://github.com/llvm/llvm-project/commit/ef22de81a0b22c8ff0cd93a76eb523300f95ef17.diff

LOG: [Transforms] Remove dead declarations (#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.

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/Coroutines/CoroShape.h
    llvm/lib/Transforms/IPO/AttributorAttributes.cpp

Removed: 
    


################################################################################
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