[llvm] [memprof] Deprecate MemProfReader::getFrameMapping and its friends (NFC) (PR #116919)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 21:47:28 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-pgo
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
All the consumers of the data from MemProfReader have switched to
MemProfReader::takeMemProfData. This patch deprecates
MemProfReader::getFrameMapping and its friends.
---
Full diff: https://github.com/llvm/llvm-project/pull/116919.diff
1 Files Affected:
- (modified) llvm/include/llvm/ProfileData/MemProfReader.h (+3)
``````````diff
diff --git a/llvm/include/llvm/ProfileData/MemProfReader.h b/llvm/include/llvm/ProfileData/MemProfReader.h
index de2167f97b0dc8..6e35bb1d39c63a 100644
--- a/llvm/include/llvm/ProfileData/MemProfReader.h
+++ b/llvm/include/llvm/ProfileData/MemProfReader.h
@@ -47,17 +47,20 @@ class MemProfReader {
}
// Return a const reference to the internal Id to Frame mappings.
+ LLVM_DEPRECATED("Use takeMemProfData instead", "takeMemProfData")
const llvm::DenseMap<FrameId, Frame> &getFrameMapping() const {
return IdToFrame;
}
// Return a const reference to the internal Id to call stacks.
+ LLVM_DEPRECATED("Use takeMemProfData instead", "takeMemProfData")
const llvm::DenseMap<CallStackId, llvm::SmallVector<FrameId>> &
getCallStacks() const {
return CSIdToCallStack;
}
// Return a const reference to the internal function profile data.
+ LLVM_DEPRECATED("Use takeMemProfData instead", "takeMemProfData")
const llvm::MapVector<GlobalValue::GUID, IndexedMemProfRecord> &
getProfileData() const {
return FunctionProfileData;
``````````
</details>
https://github.com/llvm/llvm-project/pull/116919
More information about the llvm-commits
mailing list