[llvm] IR2Builder tool for converting LLVM IR files into C++ IRBuilder API (PR #117129)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 00:49:03 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 42da81582ea5a0e5bb0e18af74e6c101f0307f36 233e25f9157f42c7fa68d78ca950dbf25b538117 --extensions cpp -- llvm/tools/ir2builder/ir2builder.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/tools/ir2builder/ir2builder.cpp b/llvm/tools/ir2builder/ir2builder.cpp
index 8583c995c3..dd13b07a37 100644
--- a/llvm/tools/ir2builder/ir2builder.cpp
+++ b/llvm/tools/ir2builder/ir2builder.cpp
@@ -198,9 +198,7 @@ public:
void convert(const Instruction *I, raw_ostream &OS);
};
-std::string IR2Builder::getNextVar() {
- return "v0" + std::to_string(varI++);
-}
+std::string IR2Builder::getNextVar() { return "v0" + std::to_string(varI++); }
static std::string to_str(bool b) { return b ? "true" : "false"; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/117129
More information about the llvm-commits
mailing list