[compiler-rt] [compiler-rt][ctx_profile] Add the instrumented contextual profiling APIs (PR #89838)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 16:48:31 PDT 2024


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 4e9decf294a19d0047da3aada980f24d19d6c62c 50449f5f4b1d424c3cda1824a449b85497713461 -- compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp compiler-rt/lib/ctx_profile/CtxInstrProfiling.h compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp b/compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
index 28ab157d23..b0f49d7854 100644
--- a/compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+++ b/compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
@@ -133,7 +133,7 @@ inline ContextNode *ContextNode::alloc(char *Place, GUID Guid,
                                        uint32_t NrCounters,
                                        uint32_t NrCallsites,
                                        ContextNode *Next) {
-  assert(reinterpret_cast<uint64_t>(Place) % sizeof(void*) == 0);
+  assert(reinterpret_cast<uint64_t>(Place) % sizeof(void *) == 0);
   return new (Place) ContextNode(Guid, NrCounters, NrCallsites, Next);
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/89838


More information about the llvm-commits mailing list