[llvm] [ctxprof] dump profiles using yaml (for testing) (PR #123108)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 11:11:49 PST 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 7c165f7fccfd40ae3bc2823d0ccd50257c21ab3e bf4e1e89e063ec12007a27f30f7e9a17f6dde826 --extensions cpp,h -- llvm/include/llvm/Analysis/CtxProfAnalysis.h llvm/include/llvm/ProfileData/PGOCtxProfReader.h llvm/include/llvm/ProfileData/PGOCtxProfWriter.h llvm/lib/Analysis/CtxProfAnalysis.cpp llvm/lib/ProfileData/PGOCtxProfReader.cpp llvm/lib/ProfileData/PGOCtxProfWriter.cpp llvm/unittests/Transforms/Utils/CallPromotionUtilsTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/ProfileData/PGOCtxProfReader.h b/llvm/include/llvm/ProfileData/PGOCtxProfReader.h
index 538cd617fa..2115960179 100644
--- a/llvm/include/llvm/ProfileData/PGOCtxProfReader.h
+++ b/llvm/include/llvm/ProfileData/PGOCtxProfReader.h
@@ -184,6 +184,6 @@ public:
   Expected<std::map<GlobalValue::GUID, PGOCtxProfContext>> loadContexts();
 };
 
-void convertToYaml(raw_ostream& OS, const PGOCtxProfContext::CallTargetMapTy&);
+void convertToYaml(raw_ostream &OS, const PGOCtxProfContext::CallTargetMapTy &);
 } // namespace llvm
 #endif

``````````

</details>


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


More information about the llvm-commits mailing list