[llvm] [offload][SYCL] Add Module splitting by categories. (PR #131347)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 10 06:05:24 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,cpp -- llvm/include/llvm/Transforms/Utils/SplitModuleByCategory.h llvm/lib/Transforms/Utils/SplitModuleByCategory.cpp llvm/tools/llvm-split/llvm-split.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Utils/SplitModuleByCategory.cpp b/llvm/lib/Transforms/Utils/SplitModuleByCategory.cpp
index cb861b813..d57d20078 100644
--- a/llvm/lib/Transforms/Utils/SplitModuleByCategory.cpp
+++ b/llvm/lib/Transforms/Utils/SplitModuleByCategory.cpp
@@ -241,7 +241,8 @@ ModuleDesc extractSubModule(const Module &M,
// The function produces a copy of input LLVM IR module M with only those
// functions and globals that can be called from entry points that are specified
// in ModuleEntryPoints vector, in addition to the entry point functions.
-ModuleDesc extractCallGraph(const Module &M, EntryPointGroup &&ModuleEntryPoints,
+ModuleDesc extractCallGraph(const Module &M,
+ EntryPointGroup &&ModuleEntryPoints,
const DependencyGraph &DG) {
SetVector<const GlobalValue *> GVs;
collectFunctionsAndGlobalVariablesToExtract(GVs, M, ModuleEntryPoints, DG);
``````````
</details>
https://github.com/llvm/llvm-project/pull/131347
More information about the llvm-commits
mailing list