https://github.com/mtrofin updated
https://github.com/llvm/llvm-project/pull/104491
>From 505149ba03c189a95f415ef1199627020a740e7a Mon Sep 17 00:00:00 2001
From: Mircea Trofin
Date: Thu, 15 Aug 2024 10:28:04 -0700
Subject: [PATCH] [ctx_prof] Add analysis utility to fetch ID of a callsite
---
Author: Mehdi Amini
Date: 2024-08-15T22:48:08+02:00
New Revision: cd07f471a0073256557c16fcb08595db74a7eba9
URL:
https://github.com/llvm/llvm-project/commit/cd07f471a0073256557c16fcb08595db74a7eba9
DIFF:
https://github.com/llvm/llvm-project/commit/cd07f471a0073256557c16fcb08595db74a7eba9.diff
L
kyulee-com wrote:
> > So we should remove this tool from the 19.x release? Can someone confirm?
>
> @kyulee-com @thevinster Are you two able to help confirm this?
Yeah. I think we should remove this from the release as it was reverted.
We plan to re-land it via https://github.com/llvm/llvm-proj
@@ -213,6 +208,25 @@ class MCDecodedPseudoProbe : public MCPseudoProbeBase {
bool ShowName) const;
};
+// Address to pseudo probes map.
+class AddressProbesMap
+: public std::vector> {
+ auto getIt(uint64_t Addr) const {
+auto CompareProbe = [](const MCDe
https://github.com/mtrofin updated
https://github.com/llvm/llvm-project/pull/104491
>From c21867b07c677f46f7e0ea801b38acea8eccf6fc Mon Sep 17 00:00:00 2001
From: Mircea Trofin
Date: Thu, 15 Aug 2024 10:28:04 -0700
Subject: [PATCH] [ctx_prof] Add analysis utility to fetch ID of a callsite
---
https://github.com/MaskRay created
https://github.com/llvm/llvm-project/pull/104542
-Wa,-mapsyms=implicit enables the alternative mapping symbol scheme
discussed at #99718.
While not conforming to the current aaelf64 ABI, the option is
invaluable for those with full control over their toolchain
llvmbot wrote:
@llvm/pr-subscribers-clang-driver
@llvm/pr-subscribers-clang
Author: Fangrui Song (MaskRay)
Changes
-Wa,-mapsyms=implicit enables the alternative mapping symbol scheme
discussed at #99718.
While not conforming to the current aaelf64 ABI, the option is
invaluable for those w
https://github.com/MaskRay edited
https://github.com/llvm/llvm-project/pull/104542
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -1183,11 +1183,9 @@ void ProfileGeneratorBase::extractProbesFromRange(
do {
const AddressProbesMap &Address2ProbesMap =
Binary->getAddress2ProbesMap();
- auto It = Address2ProbesMap.find(IP.Address);
- if (It != Address2ProbesMap.end()) {
-
@@ -213,6 +208,25 @@ class MCDecodedPseudoProbe : public MCPseudoProbeBase {
bool ShowName) const;
};
+// Address to pseudo probes map.
+class AddressProbesMap
+: public std::vector> {
+ auto getIt(uint64_t Addr) const {
+auto CompareProbe = [](const MCDe
@@ -390,32 +390,41 @@ bool MCPseudoProbeDecoder::buildGUID2FuncDescMap(const
uint8_t *Start,
Data = Start;
End = Data + Size;
+ uint32_t FuncDescCount = 0;
while (Data < End) {
-auto ErrorOrGUID = readUnencodedNumber();
-if (!ErrorOrGUID)
+if (!readUnencod
@@ -100,8 +101,15 @@ class MCDecodedPseudoProbe;
using InlineSite = std::tuple;
using MCPseudoProbeInlineStack = SmallVector;
// GUID to PseudoProbeFuncDesc map
-using GUIDProbeFunctionMap =
-std::unordered_map;
+class GUIDProbeFunctionMap : public std::vector {
+public:
+
@@ -390,32 +390,41 @@ bool MCPseudoProbeDecoder::buildGUID2FuncDescMap(const
uint8_t *Start,
Data = Start;
End = Data + Size;
+ uint32_t FuncDescCount = 0;
while (Data < End) {
-auto ErrorOrGUID = readUnencodedNumber();
-if (!ErrorOrGUID)
+if (!readUnencod
101 - 113 of 113 matches
Mail list logo