[Mlir-commits] [mlir] [mlir][vector][print] do not append newline to printing pure strings (PR #83213)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Feb 27 16:20:10 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 d699d9d609a24d80809df15efe47ac539da90e93 5663e15c99816aca774e91b710acc02caf47d0a4 -- mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
index 0299cc2a60..337f8bb6ab 100644
--- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
+++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
@@ -1532,7 +1532,8 @@ public:
auto punct = printOp.getPunctuation();
if (auto stringLiteral = printOp.getStringLiteral()) {
LLVM::createPrintStrCall(rewriter, loc, parent, "vector_print_str",
- *stringLiteral, *getTypeConverter(), /*addNewline=*/false);
+ *stringLiteral, *getTypeConverter(),
+ /*addNewline=*/false);
} else if (punct != PrintPunctuation::NoPunctuation) {
emitCall(rewriter, printOp->getLoc(), [&] {
switch (punct) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/83213
More information about the Mlir-commits
mailing list