[llvm-branch-commits] [llvm] [ctx_prof] Add analysis utility to fetch ID of a callsite (PR #104491)

2024-08-15 Thread Mircea Trofin via llvm-branch-commits
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 ---

[llvm-branch-commits] [llvm] cd07f47 - Revert "[DXIL][Analysis] Implement enough of DXILResourceAnalysis for buffers"

2024-08-15 Thread via llvm-branch-commits
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

[llvm-branch-commits] [llvm] release/19.x: Revert "[CGData] llvm-cgdata (#89884)" (PR #103886)

2024-08-15 Thread Kyungwoo Lee via llvm-branch-commits
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

[llvm-branch-commits] [llvm] [MC][NFC] Reduce Address2ProbesMap size (PR #102904)

2024-08-15 Thread Amir Ayupov via llvm-branch-commits
@@ -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

[llvm-branch-commits] [llvm] [ctx_prof] Add analysis utility to fetch ID of a callsite (PR #104491)

2024-08-15 Thread Mircea Trofin via llvm-branch-commits
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 ---

[llvm-branch-commits] [Driver] Add -Wa, options -mmapsyms={default, implicit} (PR #104542)

2024-08-15 Thread Fangrui Song via llvm-branch-commits
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

[llvm-branch-commits] [Driver] Add -Wa, options -mmapsyms={default, implicit} (PR #104542)

2024-08-15 Thread via llvm-branch-commits
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

[llvm-branch-commits] [Driver] Add -Wa, options -mmapsyms={default, implicit} (PR #104542)

2024-08-15 Thread Fangrui Song via llvm-branch-commits
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

[llvm-branch-commits] [llvm] [MC][NFC] Reduce Address2ProbesMap size (PR #102904)

2024-08-15 Thread Lei Wang via 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()) { -

[llvm-branch-commits] [llvm] [MC][NFC] Reduce Address2ProbesMap size (PR #102904)

2024-08-15 Thread Lei Wang via llvm-branch-commits
@@ -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

[llvm-branch-commits] [MC][NFC] Use vector for GUIDProbeFunctionMap (PR #102905)

2024-08-15 Thread Lei Wang via llvm-branch-commits
@@ -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

[llvm-branch-commits] [MC][NFC] Use vector for GUIDProbeFunctionMap (PR #102905)

2024-08-15 Thread Lei Wang via llvm-branch-commits
@@ -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: +

[llvm-branch-commits] [MC][NFC] Use vector for GUIDProbeFunctionMap (PR #102905)

2024-08-15 Thread Lei Wang via llvm-branch-commits
@@ -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

<    1   2