[llvm] [memprof] Deprecate MemProfReader::getFrameMapping and its friends (NFC) (PR #116919)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 21:46:47 PST 2024
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/116919
All the consumers of the data from MemProfReader have switched to
MemProfReader::takeMemProfData. This patch deprecates
MemProfReader::getFrameMapping and its friends.
>From ee422987b015c7a4b7c171a2ca4bc30b693fe87e Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Tue, 19 Nov 2024 20:40:25 -0800
Subject: [PATCH] [memprof] Deprecate MemProfReader::getFrameMapping and its
friends (NFC)
All the consumers of the data from MemProfReader have switched to
MemProfReader::takeMemProfData. This patch deprecates
MemProfReader::getFrameMapping and its friends.
---
llvm/include/llvm/ProfileData/MemProfReader.h | 3 +++
1 file changed, 3 insertions(+)
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;
More information about the llvm-commits
mailing list