[PATCH] D75578: [MLIR] Add a comment to `requiredOperandCount` arg in LoopOps.cpp.
Alexander Belyaev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 16:07:43 PST 2020
pifon2a created this revision.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a reviewer: nicolasvasilache.
Herald added a project: LLVM.
pifon2a edited reviewers, added: rriddle; removed: nicolasvasilache.
Herald added a reviewer: nicolasvasilache.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75578
Files:
mlir/lib/Dialect/LoopOps/LoopOps.cpp
Index: mlir/lib/Dialect/LoopOps/LoopOps.cpp
===================================================================
--- mlir/lib/Dialect/LoopOps/LoopOps.cpp
+++ mlir/lib/Dialect/LoopOps/LoopOps.cpp
@@ -413,7 +413,8 @@
// 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();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75578.248060.patch
Type: text/x-patch
Size: 597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200304/cac376e0/attachment-0001.bin>
More information about the llvm-commits
mailing list