[llvm] [NVVM] Move print functions from NVVMIntrinsicUtils.h to cpp file (PR #168997)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 20 20:47:56 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 cpp,h -- llvm/lib/IR/NVVMIntrinsicUtils.cpp llvm/include/llvm/IR/NVVMIntrinsicUtils.h --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/llvm/lib/IR/NVVMIntrinsicUtils.cpp b/llvm/lib/IR/NVVMIntrinsicUtils.cpp
index bf5c25c89..4389fa38a 100644
--- a/llvm/lib/IR/NVVMIntrinsicUtils.cpp
+++ b/llvm/lib/IR/NVVMIntrinsicUtils.cpp
@@ -38,7 +38,7 @@ void nvvm::printTcgen05MMAKind(raw_ostream &OS, const Constant *ImmArgVal) {
}
void nvvm::printTcgen05CollectorUsageOp(raw_ostream &OS,
- const Constant *ImmArgVal) {
+ const Constant *ImmArgVal) {
if (const auto *CI = dyn_cast<ConstantInt>(ImmArgVal)) {
uint64_t Val = CI->getZExtValue();
switch (static_cast<Tcgen05CollectorUsageOp>(Val)) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/168997
More information about the llvm-commits
mailing list