[Mlir-commits] [mlir] [mlir][Value] Add getNumUses, hasNUses, and hasNUsesOrMore to Value (PR #142084)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu May 29 21:14:55 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 cpp,h -- mlir/unittests/IR/ValueTest.cpp mlir/include/mlir/IR/Value.h mlir/lib/Bytecode/Reader/BytecodeReader.cpp mlir/lib/Dialect/SCF/IR/SCF.cpp mlir/lib/IR/Value.cpp mlir/test/lib/IR/TestPrintDefUse.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/unittests/IR/ValueTest.cpp b/mlir/unittests/IR/ValueTest.cpp
index e31d9f32b..433681c5c 100644
--- a/mlir/unittests/IR/ValueTest.cpp
+++ b/mlir/unittests/IR/ValueTest.cpp
@@ -6,12 +6,12 @@
//
//===----------------------------------------------------------------------===//
+#include "mlir/IR/Value.h"
#include "../../test/lib/Dialect/Test/TestDialect.h"
#include "../../test/lib/Dialect/Test/TestOps.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/OperationSupport.h"
-#include "mlir/IR/Value.h"
#include "gtest/gtest.h"
using namespace mlir;
``````````
</details>
https://github.com/llvm/llvm-project/pull/142084
More information about the Mlir-commits
mailing list