[llvm] [Transforms] Remove dead declarations (PR #218110)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 22 00:37:22 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
@llvm/pr-subscribers-coroutines
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/218110.diff
2 Files Affected:
- (modified) llvm/include/llvm/Transforms/Coroutines/CoroShape.h (-2)
- (modified) llvm/lib/Transforms/IPO/AttributorAttributes.cpp (-9)
``````````diff
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.
``````````
</details>
https://github.com/llvm/llvm-project/pull/218110
More information about the llvm-commits
mailing list