Skip to content

Commit

Permalink
[Moore] Replace implementation of printing optional attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
cepheus69 committed Jul 9, 2024
1 parent 095ee35 commit a2b0a8e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Dialect/Moore/MooreOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ void SVModuleOp::print(OpAsmPrinter &p) {
p.printRegion(getBodyRegion(), /*printEntryBlockArgs=*/false,
/*printBlockTerminators=*/true);

SmallVector<StringRef, 4> omittedAttrs = {"sym_name", "module_type",
visibilityAttrName};
p.printOptionalAttrDictWithKeyword((*this)->getAttrs(), omittedAttrs);
p.printOptionalAttrDictWithKeyword(getOperation()->getAttrs(),
getAttributeNames());
}

ParseResult SVModuleOp::parse(OpAsmParser &parser, OperationState &result) {
Expand Down

0 comments on commit a2b0a8e

Please sign in to comment.