mirror of https://github.com/llvm/circt.git
[Handshake] Discern between sequential and non-sequential buffers in dot print
This commit is contained in:
parent
2dab46849f
commit
80f70835e5
|
@ -197,6 +197,11 @@ static std::string dotPrintNode(mlir::raw_indented_ostream &outfile,
|
||||||
[&](auto) { return "cmerge"; })
|
[&](auto) { return "cmerge"; })
|
||||||
.Case<handshake::ConditionalBranchOp>(
|
.Case<handshake::ConditionalBranchOp>(
|
||||||
[&](auto) { return "cbranch"; })
|
[&](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::AddIOp>([&](auto) { return "+"; })
|
||||||
.Case<arith::SubIOp>([&](auto) { return "-"; })
|
.Case<arith::SubIOp>([&](auto) { return "-"; })
|
||||||
.Case<arith::AndIOp>([&](auto) { return "&"; })
|
.Case<arith::AndIOp>([&](auto) { return "&"; })
|
||||||
|
|
Loading…
Reference in New Issue