[Mlir-commits] [mlir] [MLIR][NVVM] Print readable modifer (NFC) (PR #153779)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Aug 15 03:42:19 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 -- mlir/include/mlir/Dialect/LLVMIR/BasicPtxBuilderInterface.h mlir/lib/Conversion/NVVMToLLVM/NVVMToLLVM.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Dialect/LLVMIR/BasicPtxBuilderInterface.h b/mlir/include/mlir/Dialect/LLVMIR/BasicPtxBuilderInterface.h
index 1196a2f76..71bf4c27b 100644
--- a/mlir/include/mlir/Dialect/LLVMIR/BasicPtxBuilderInterface.h
+++ b/mlir/include/mlir/Dialect/LLVMIR/BasicPtxBuilderInterface.h
@@ -44,9 +44,9 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream &os,
case PTXRegisterMod::ReadWrite:
return os << "ReadWrite";
}
- default:
- llvm_unreachable("Unknown PTXRegisterMod value");
- }
+default:
+ llvm_unreachable("Unknown PTXRegisterMod value");
+}
}
} // namespace NVVM
} // namespace mlir
``````````
</details>
https://github.com/llvm/llvm-project/pull/153779
More information about the Mlir-commits
mailing list