[llvm] [ProfileData] Teach getValueForSite to return ArrayRef<InstrProfValueData> (PR #95335)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 17:06:53 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 a91c8398f22c28618d681497e9856c3a4b8753c3 84e56ba2c9b6707d218554a2021fd623dda681fc -- llvm/include/llvm/ProfileData/InstrProf.h llvm/lib/ProfileData/InstrProf.cpp llvm/lib/ProfileData/InstrProfWriter.cpp llvm/tools/llvm-profdata/llvm-profdata.cpp llvm/unittests/ProfileData/InstrProfTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/ProfileData/InstrProf.h b/llvm/include/llvm/ProfileData/InstrProf.h
index 45e29d8394..e2a014b4fb 100644
--- a/llvm/include/llvm/ProfileData/InstrProf.h
+++ b/llvm/include/llvm/ProfileData/InstrProf.h
@@ -870,8 +870,8 @@ struct InstrProfRecord {
uint32_t Site) const;
/// Return the array of profiled values at \p Site.
- inline ArrayRef<InstrProfValueData>
- getValueForSite(uint32_t ValueKind, uint32_t Site) const;
+ inline ArrayRef<InstrProfValueData> getValueForSite(uint32_t ValueKind,
+ uint32_t Site) const;
/// Return the array of profiled values at \p Site.
inline std::unique_ptr<InstrProfValueData[]>
``````````
</details>
https://github.com/llvm/llvm-project/pull/95335
More information about the llvm-commits
mailing list