Skip to content

Commit

Permalink
Load Emit Dialect for DebugInfo Translation
Browse files Browse the repository at this point in the history
Fix a missing dialect registration for the DebugInfo translation.  This
fixes an error if trying to emit debuginfo using `circt-translate`.

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
  • Loading branch information
seldridge committed Mar 11, 2024
1 parent 4d5dab5 commit ad34576
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Target/DebugInfo/TranslateRegistration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "circt/Dialect/Comb/CombDialect.h"
#include "circt/Dialect/Debug/DebugDialect.h"
#include "circt/Dialect/Emit/EmitDialect.h"
#include "circt/Dialect/HW/HWDialect.h"
#include "circt/Dialect/OM/OMDialect.h"
#include "circt/Dialect/SV/SVDialect.h"
Expand All @@ -24,6 +25,7 @@ namespace debug {
static void registerDialects(DialectRegistry &registry) {
registry.insert<comb::CombDialect>();
registry.insert<debug::DebugDialect>();
registry.insert<emit::EmitDialect>();
registry.insert<hw::HWDialect>();
registry.insert<seq::SeqDialect>();
registry.insert<sv::SVDialect>();
Expand Down

0 comments on commit ad34576

Please sign in to comment.