[llvm] ab7201a - [memprof] Deprecate MemProfReader::getFrameMapping and its friends (NFC) (#116919)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 08:36:22 PST 2024
Author: Kazu Hirata
Date: 2024-11-20T08:36:19-08:00
New Revision: ab7201a8a39a94bf446f247c6be2602976fbbb5b
URL: https://github.com/llvm/llvm-project/commit/ab7201a8a39a94bf446f247c6be2602976fbbb5b
DIFF: https://github.com/llvm/llvm-project/commit/ab7201a8a39a94bf446f247c6be2602976fbbb5b.diff
LOG: [memprof] Deprecate MemProfReader::getFrameMapping and its friends (NFC) (#116919)
All the consumers of the data from MemProfReader have switched to
MemProfReader::takeMemProfData. This patch deprecates
MemProfReader::getFrameMapping and its friends.
Added:
Modified:
llvm/include/llvm/ProfileData/MemProfReader.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ProfileData/MemProfReader.h b/llvm/include/llvm/ProfileData/MemProfReader.h
index ade0c3901562d5..9a0857fee6cc2a 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;
More information about the llvm-commits
mailing list