Skip to content

Commit

Permalink
Unknown node type logging in builder.cpp added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Muxianesty committed Sep 5, 2024
1 parent 8eb9020 commit 97d413d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/model/dfcxx/lib/dfcxx/IRbuilders/builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include "mlir/Parser/Parser.h"

#include <iostream>

namespace dfcxx {

DFCIRBuilder::DFCIRBuilder() : ctx(), conv(&ctx) {
Expand Down Expand Up @@ -271,7 +273,11 @@ void DFCIRBuilder::translate(Node node, const Graph &graph,
map[first], attr);
break;
}
default: assert(false && "Unknown node type");
default: {
// TODO: Add proper logging: https://github.com/ispras/utopia-hls/issues/13
std::cout << "[ERROR] Unknown node type id: " << node.type << std::endl;
assert(false);
};
}

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

0 comments on commit 97d413d

Please sign in to comment.