[llvm] [offload][SYCL] Add SYCL Module splitting (PR #119713)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 07:34:40 PST 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 e909c0ccd40e6d6aa2d10e0b60e8b992f3cde35b bf489154f2e923e0f10d51b7f79075c36fb6ccd6 --extensions cpp,h -- llvm/include/llvm/Transforms/Utils/SYCLModuleSplit.h llvm/include/llvm/Transforms/Utils/SYCLUtils.h llvm/lib/Transforms/Utils/SYCLModuleSplit.cpp llvm/lib/Transforms/Utils/SYCLUtils.cpp llvm/tools/llvm-split/llvm-split.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/tools/llvm-split/llvm-split.cpp b/llvm/tools/llvm-split/llvm-split.cpp
index e40bf71026..cd25426f23 100644
--- a/llvm/tools/llvm-split/llvm-split.cpp
+++ b/llvm/tools/llvm-split/llvm-split.cpp
@@ -32,8 +32,8 @@
#include "llvm/Transforms/Utils/SYCLUtils.h"
#include "llvm/Transforms/Utils/SplitModule.h"
-#include <vector>
#include <string>
+#include <vector>
using namespace llvm;
@@ -100,7 +100,7 @@ void writeStringToFile(std::string_view Content, StringRef Path) {
}
void writeSplitModulesAsTable(ArrayRef<SYCLSplitModule> SplitModules,
- StringRef Path) {
+ StringRef Path) {
std::vector<std::string> Columns = {"Code", "Symbols"};
SYCLStringTable Table;
Table.emplace_back(std::move(Columns));
``````````
</details>
https://github.com/llvm/llvm-project/pull/119713
More information about the llvm-commits
mailing list