Skip to content

Commit

Permalink
Fixed OffsetOp printing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Muxianesty committed Aug 14, 2024
1 parent 768cca0 commit 80b371d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/model/dfcir/lib/dfcir/DFCIROperations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,7 @@ void mlir::dfcir::OffsetOp::print(OpAsmPrinter &printer) {
::llvm::SmallVector<::llvm::StringRef, 2> elidedAttrs;
elidedAttrs.push_back("offset");
printer.printOptionalAttrDict((*this)->getAttrs(), elidedAttrs);
printer << " : ";
auto type = getRes().getType();
if (auto validType = llvm::dyn_cast<DFCIRStreamType>(type)) {
printer.printStrippedAttrOrType(validType);
} else
printer << type;
printer << " : " << getRes().getType();
}

} // namespace mlir::dfcir
Expand Down

0 comments on commit 80b371d

Please sign in to comment.