[Mlir-commits] [mlir] 21b2516 - Apply clang-tidy fixes for readability-identifier-naming in GPUDialect.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Apr 18 11:15:51 PDT 2022
Author: Mehdi Amini
Date: 2022-04-18T18:15:30Z
New Revision: 21b251624b7c28d66816295ea0a1d3ca130fd604
URL: https://github.com/llvm/llvm-project/commit/21b251624b7c28d66816295ea0a1d3ca130fd604
DIFF: https://github.com/llvm/llvm-project/commit/21b251624b7c28d66816295ea0a1d3ca130fd604.diff
LOG: Apply clang-tidy fixes for readability-identifier-naming in GPUDialect.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
index 45da4b2af2262..86bafff4a1b6a 100644
--- a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
+++ b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
@@ -1200,8 +1200,8 @@ struct EraseRedundantGpuWaitOpPairs : public OpRewritePattern<WaitOp> {
LogicalResult matchAndRewrite(WaitOp op,
PatternRewriter &rewriter) const final {
auto predicate = [](Value value) {
- auto wait_op = value.getDefiningOp<WaitOp>();
- return wait_op && wait_op->getNumOperands() == 0;
+ auto waitOp = value.getDefiningOp<WaitOp>();
+ return waitOp && waitOp->getNumOperands() == 0;
};
if (llvm::none_of(op.asyncDependencies(), predicate))
return failure();
More information about the Mlir-commits
mailing list