Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: hanhanW <[email protected]>
  • Loading branch information
hanhanW committed Feb 6, 2025
1 parent 7c389ee commit 61b74a4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions compiler/src/iree/compiler/Dialect/VM/IR/VMOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ void FuncOp::build(OpBuilder &builder, OperationState &result, StringRef name,

assert(type.getNumInputs() == argAttrs.size() &&
"expected as many argument attribute lists as arguments");
call_interface_impl::addArgAndResultAttrs(
builder, result, argAttrs,
/*resultAttrs=*/std::nullopt, getArgAttrsAttrName(result.name),
getResAttrsAttrName(result.name));
call_interface_impl::addArgAndResultAttrs(builder, result, argAttrs,
/*resultAttrs=*/std::nullopt,
getArgAttrsAttrName(result.name),
getResAttrsAttrName(result.name));
}

Block *FuncOp::addEntryBlock() {
Expand Down Expand Up @@ -289,10 +289,10 @@ ParseResult ImportOp::parse(OpAsmParser &parser, OperationState &result) {
return parser.emitError(parser.getCurrentLocation())
<< "invalid result type list";
}
call_interface_impl::addArgAndResultAttrs(
builder, result, argAttrs,
/*resultAttrs=*/std::nullopt, getArgAttrsAttrName(result.name),
getResAttrsAttrName(result.name));
call_interface_impl::addArgAndResultAttrs(builder, result, argAttrs,
/*resultAttrs=*/std::nullopt,
getArgAttrsAttrName(result.name),
getResAttrsAttrName(result.name));
if (failed(parser.parseOptionalAttrDictWithKeyword(result.attributes))) {
return failure();
}
Expand Down Expand Up @@ -358,10 +358,10 @@ void ImportOp::build(OpBuilder &builder, OperationState &result, StringRef name,
if (!argAttrs.empty()) {
assert(type.getNumInputs() == argAttrs.size() &&
"expected as many argument attribute lists as arguments");
call_interface_impl::addArgAndResultAttrs(
builder, result, argAttrs,
/*resultAttrs=*/std::nullopt, getArgAttrsAttrName(result.name),
getResAttrsAttrName(result.name));
call_interface_impl::addArgAndResultAttrs(builder, result, argAttrs,
/*resultAttrs=*/std::nullopt,
getArgAttrsAttrName(result.name),
getResAttrsAttrName(result.name));
}

result.addRegion();
Expand Down

0 comments on commit 61b74a4

Please sign in to comment.