[llvm] [PseudoProbe] Encode inlining attributes to probe descriptor (PR #177695)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 22:07:40 PDT 2026


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 origin/main HEAD --extensions h,cpp -- llvm/include/llvm/IR/MDBuilder.h llvm/include/llvm/IR/PseudoProbe.h llvm/include/llvm/MC/MCPseudoProbe.h llvm/include/llvm/ProfileData/SampleProf.h llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h llvm/lib/IR/MDBuilder.cpp llvm/lib/MC/MCPseudoProbe.cpp llvm/lib/Target/TargetLoweringObjectFile.cpp llvm/lib/Transforms/IPO/SampleContextTracker.cpp llvm/lib/Transforms/IPO/SampleProfileProbe.cpp llvm/tools/llvm-profgen/CSPreInliner.cpp llvm/tools/llvm-profgen/ProfiledBinary.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/include/llvm/ProfileData/SampleProf.h b/llvm/include/llvm/ProfileData/SampleProf.h
index 9882170b2..328358f67 100644
--- a/llvm/include/llvm/ProfileData/SampleProf.h
+++ b/llvm/include/llvm/ProfileData/SampleProf.h
@@ -490,8 +490,8 @@ enum ContextAttributeMask {
   ContextShouldBeInlined = 0x2, // Leaf of context should be inlined
   ContextDuplicatedIntoBase =
       0x4, // Leaf of context is duplicated into the base profile
-  ContextAlwaysInline = 0x8,  // Function has always_inline attribute
-  ContextNoInline = 0x10,     // Function has noinline attribute
+  ContextAlwaysInline = 0x8, // Function has always_inline attribute
+  ContextNoInline = 0x10,    // Function has noinline attribute
 };
 
 // Represents a context frame with profile function and line location

``````````

</details>


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


More information about the llvm-commits mailing list