[Mlir-commits] [mlir] ffcb492 - [MLIR] Add a comment to `requiredOperandCount` arg in LoopOps.cpp.
Alexander Belyaev
llvmlistbot at llvm.org
Wed Mar 4 06:48:56 PST 2020
Author: Alexander Belyaev
Date: 2020-03-04T15:48:23+01:00
New Revision: ffcb4923275d72324287fb7699d107ae524b94ce
URL: https://github.com/llvm/llvm-project/commit/ffcb4923275d72324287fb7699d107ae524b94ce
DIFF: https://github.com/llvm/llvm-project/commit/ffcb4923275d72324287fb7699d107ae524b94ce.diff
LOG: [MLIR] Add a comment to `requiredOperandCount` arg in LoopOps.cpp.
Differential Revision: https://reviews.llvm.org/D75578
Added:
Modified:
mlir/lib/Dialect/LoopOps/LoopOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/LoopOps/LoopOps.cpp b/mlir/lib/Dialect/LoopOps/LoopOps.cpp
index 16323e02032c..e9e9397a6d19 100644
--- a/mlir/lib/Dialect/LoopOps/LoopOps.cpp
+++ b/mlir/lib/Dialect/LoopOps/LoopOps.cpp
@@ -413,7 +413,8 @@ static ParseResult parseParallelOp(OpAsmParser &parser,
// Parse step value.
SmallVector<OpAsmParser::OperandType, 4> initVals;
if (succeeded(parser.parseOptionalKeyword("init"))) {
- if (parser.parseOperandList(initVals, -1, OpAsmParser::Delimiter::Paren))
+ if (parser.parseOperandList(initVals, /*requiredOperandCount=*/-1,
+ OpAsmParser::Delimiter::Paren))
return failure();
}
More information about the Mlir-commits
mailing list