[Handshake] Discern between sequential and non-sequential buffers in dot print

This commit is contained in:
Morten Borup Petersen 2021-12-14 18:25:27 +01:00
parent 2dab46849f
commit 80f70835e5
1 changed files with 5 additions and 0 deletions

View File

@ -197,6 +197,11 @@ static std::string dotPrintNode(mlir::raw_indented_ostream &outfile,
[&](auto) { return "cmerge"; })
.Case<handshake::ConditionalBranchOp>(
[&](auto) { return "cbranch"; })
.Case<handshake::BufferOp>([&](auto op) {
std::string n = "buffer";
n += op.sequential() ? " seq" : " FIFO";
return n;
})
.Case<arith::AddIOp>([&](auto) { return "+"; })
.Case<arith::SubIOp>([&](auto) { return "-"; })
.Case<arith::AndIOp>([&](auto) { return "&"; })