[clang] [compiler-rt] [llvm] [DRAFT][memprof][darwin] Support memprof on Darwin platform and add binary access profile (PR #142884)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 18:23:31 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions h,c,cpp,inc -- clang/test/Driver/fmemprof-darwin.c compiler-rt/include/profile/MemProfBinaryAccessData.inc compiler-rt/lib/memprof/memprof_mac.cpp compiler-rt/lib/memprof/memprof_malloc_mac.cpp llvm/include/llvm/ProfileData/MemProfBinaryAccessData.inc.cpp clang/lib/Driver/ToolChains/Darwin.cpp compiler-rt/include/profile/MemProfData.inc compiler-rt/lib/memprof/memprof_allocator.cpp compiler-rt/lib/memprof/memprof_allocator.h compiler-rt/lib/memprof/memprof_flags.inc compiler-rt/lib/memprof/memprof_interceptors.cpp compiler-rt/lib/memprof/memprof_interceptors.h compiler-rt/lib/memprof/memprof_linux.cpp compiler-rt/lib/memprof/memprof_malloc_linux.cpp compiler-rt/lib/memprof/memprof_mapping.h compiler-rt/lib/memprof/memprof_new_delete.cpp compiler-rt/lib/memprof/memprof_rawprofile.cpp compiler-rt/lib/memprof/memprof_rawprofile.h llvm/include/llvm/ProfileData/MemProfData.inc llvm/tools/llvm-profdata/llvm-profdata.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/ProfileData/MemProfBinaryAccessData.inc.cpp b/llvm/include/llvm/ProfileData/MemProfBinaryAccessData.inc.cpp
index e1aac9e4a..32b2a4d8d 100644
--- a/llvm/include/llvm/ProfileData/MemProfBinaryAccessData.inc.cpp
+++ b/llvm/include/llvm/ProfileData/MemProfBinaryAccessData.inc.cpp
@@ -1,7 +1,7 @@
*= == --MemProfBinaryAccessData.inc -
MemProf profiling runtime macros - *-C++ - * -= == == ==
- = * | * | *Part of the LLVM Project,
- under the Apache License v2 .0 with LLVM Exceptions.|
+ = *| *| *Part of the LLVM Project,
+ under the Apache License v2.0 with LLVM Exceptions.|
*See https : // llvm.org/LICENSE.txt for license information.
| *SPDX - License -
Identifier
@@ -10,8 +10,8 @@
exception | *
\*=
==
- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ==
- = * /
+ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --==
+ = */
/*
* This file defines the macros for memprof profiling data structures
* for binary access.
``````````
</details>
https://github.com/llvm/llvm-project/pull/142884
More information about the llvm-commits
mailing list