Skip to content

Commit 97d413d

Browse files
author
Muxianesty
committed
Unknown node type logging in builder.cpp added.
1 parent 8eb9020 commit 97d413d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/model/dfcxx/lib/dfcxx/IRbuilders/builder.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
#include "mlir/Parser/Parser.h"
1313

14+
#include <iostream>
15+
1416
namespace dfcxx {
1517

1618
DFCIRBuilder::DFCIRBuilder() : ctx(), conv(&ctx) {
@@ -271,7 +273,11 @@ void DFCIRBuilder::translate(Node node, const Graph &graph,
271273
map[first], attr);
272274
break;
273275
}
274-
default: assert(false && "Unknown node type");
276+
default: {
277+
// TODO: Add proper logging: https://github.com/ispras/utopia-hls/issues/13
278+
std::cout << "[ERROR] Unknown node type id: " << node.type << std::endl;
279+
assert(false);
280+
};
275281
}
276282

277283
map[node] = newOp->getResult(0);

0 commit comments

Comments
 (0)