Skip to content

Commit

Permalink
Merge pull request #47 from ispras/fix_dfcir_offset
Browse files Browse the repository at this point in the history
Fixed DFCIR OffsetOp printing
  • Loading branch information
ssmolov authored Aug 15, 2024
2 parents abb1719 + 80b371d commit 9439c8d
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 9439c8d

Please sign in to comment.