[llvm] llvm module splitter [nfr][wip] (PR #121543)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 20:35:32 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 56e944bede9654127cc210506a6cccdd43cd96e7 cc3f649ed39f2eb7c77ab7d9fece154a7a7de45c --extensions h,cpp -- llvm/include/llvm/Support/ModuleSplitter.h llvm/lib/Support/ModuleSplitter.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/Support/ModuleSplitter.h b/llvm/include/llvm/Support/ModuleSplitter.h
index 912d8edb7c..112d85433d 100644
--- a/llvm/include/llvm/Support/ModuleSplitter.h
+++ b/llvm/include/llvm/Support/ModuleSplitter.h
@@ -64,14 +64,13 @@ forwardModule(LLVMModuleAndContext &&Module) {
 /// Support for splitting an LLVM module into multiple parts using anchored
 /// functions (e.g. exported functions), and pull in all dependency on the
 // call stack into one module.
-void splitPerAnchored(LLVMModuleAndContext Module,
-                      LLVMSplitProcessFn ProcessFn,
-                      llvm::SmallVectorImpl<llvm::Function>& Anchors);
+void splitPerAnchored(LLVMModuleAndContext Module, LLVMSplitProcessFn ProcessFn,
+                      llvm::SmallVectorImpl<llvm::Function> &Anchors);
 
 /// Support for splitting an LLVM module into multiple parts with each part
 /// contains only one function.
-void splitPerFunction(
-    LLVMModuleAndContext Module, LLVMSplitProcessFn ProcessFn);
+void splitPerFunction(LLVMModuleAndContext Module,
+                      LLVMSplitProcessFn ProcessFn);
 
 } // namespace llvm
 

``````````

</details>


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


More information about the llvm-commits mailing list