[llvm] [Offload] Generate `OffloadTypedGetInfo.inc` (PR #168615)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 18 22:13:48 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 origin/main HEAD --extensions hpp,cpp -- offload/tools/offload-tblgen/TypedGetInfoWrappers.cpp offload/tools/offload-tblgen/Generators.hpp offload/tools/offload-tblgen/offload-tblgen.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/offload/tools/offload-tblgen/TypedGetInfoWrappers.cpp b/offload/tools/offload-tblgen/TypedGetInfoWrappers.cpp
index 094989977..98ea538dc 100644
--- a/offload/tools/offload-tblgen/TypedGetInfoWrappers.cpp
+++ b/offload/tools/offload-tblgen/TypedGetInfoWrappers.cpp
@@ -68,7 +68,9 @@ void EmitTypedGetInfoWrappers(const llvm::RecordKeeper &Records,
} else {
OS << TAB_1
<< formatv("assert(ResultSize % sizeof({}) == 0);\n", ElementType);
- OS << TAB_1 << formatv("Result.resize(ResultSize / sizeof({}));\n", ElementType);
+ OS << TAB_1
+ << formatv("Result.resize(ResultSize / sizeof({}));\n",
+ ElementType);
}
OS << TAB_1
<< formatv("if (auto Err = {}({}, {}, ResultSize, Result.data()))\n",
``````````
</details>
https://github.com/llvm/llvm-project/pull/168615
More information about the llvm-commits
mailing list