Skip to content

Instantly share code, notes, and snippets.

@asraa
Created April 14, 2023 18:14
Show Gist options
  • Save asraa/a9fb964e51c835f2c2904d3a007b29ff to your computer and use it in GitHub Desktop.
Save asraa/a9fb964e51c835f2c2904d3a007b29ff to your computer and use it in GitHub Desktop.
circt-opt --export-verilog hello_world.hw.mlir > hello_world.verilog.mlir
circt-opt: /usr/local/google/home/asraa/git/circt/llvm/mlir/include/mlir/IR/StorageUniquerSupport.h:173: static ConcreteT mlir::detail::StorageUserBase<ConcreteT, BaseT, StorageT, UniquerT, Traits>::get(mlir::MLIRContext*, Args ...) [with Args = {mlir::Type}; ConcreteT = circt::hw::InOutType; BaseT = mlir::Type; StorageT = circt::hw::detail::InOutTypeStorage; UniquerT = mlir::detail::TypeUniquer; Traits = {}]: Assertion `succeeded(ConcreteT::verify(getDefaultDiagnosticEmitFn(ctx), args...))' failed.
PLEASE submit a bug report to https://github.com/llvm/circt and include the crash backtrace.
#0 0x0000557ca76b898b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/google/home/asraa/git/circt/build/bin/circt-opt+0x13598b)
#1 0x0000557ca76b63bb llvm::sys::RunSignalHandlers() (/usr/local/google/home/asraa/git/circt/build/bin/circt-opt+0x1333bb)
#2 0x0000557ca76b64e5 SignalHandler(int) Signals.cpp:0:0
#3 0x00007f934e35bf90 (/lib/x86_64-linux-gnu/libc.so.6+0x3bf90)
#4 0x00007f934e3aaccc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#5 0x00007f934e35bef2 raise ./signal/../sysdeps/posix/raise.c:27:6
#6 0x00007f934e346472 abort ./stdlib/abort.c:81:7
#7 0x00007f934e346395 _nl_load_domain ./intl/loadmsgcat.c:1177:9
#8 0x00007f934e354df2 (/lib/x86_64-linux-gnu/libc.so.6+0x34df2)
#9 0x0000557ca8485486 circt::hw::InOutType mlir::detail::StorageUserBase<circt::hw::InOutType, mlir::Type, circt::hw::detail::InOutTypeStorage, mlir::detail::TypeUniquer>::get<mlir::Type>(mlir::MLIRContext*, mlir::Type) (/usr/local/google/home/asraa/git/circt/build/bin/circt-opt+0xf02486)
#10 0x0000557ca848054d circt::hw::InOutType::get(mlir::MLIRContext*, mlir::Type) (/usr/local/google/home/asraa/git/circt/build/bin/circt-opt+0xefd54d)
#11 0x0000557ca7de49b4 circt::hw::InOutType::get(mlir::Type) (/usr/local/google/home/asraa/git/circt/build/bin/circt-opt+0x8619b4)
#12 0x0000557ca87411af circt::sv::WireOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Type, mlir::StringAttr, mlir::StringAttr) (/usr/local/google/home/asraa/git/circt/build/bin/circt-opt+0x11be1af)
#13 0x0000557ca877c070 circt::sv::WireOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Type, llvm::StringRef) (/usr/local/google/home/asraa/git/circt/build/bin/circt-opt+0x11f9070)
#14 0x0000557ca7b5b137 circt::sv::WireOp mlir::OpBuilder::create<circt::sv::WireOp, mlir::Type, llvm::SmallString<32u>&>(mlir::Location, mlir::Type&&, llvm::SmallString<32u>&) (/usr/local/google/home/asraa/git/circt/build/bin/circt-opt+0x5d8137)
#15 0x0000557ca7b57e85 circt::sv::WireOp mlir::ImplicitLocOpBuilder::create<circt::sv::WireOp, mlir::Type, llvm::SmallString<32u>&>(mlir::Type&&, llvm::SmallString<32u>&) (/usr/local/google/home/asraa/git/circt/build/bin/circt-opt+0x5d4e85)
#16 0x0000557ca7b53dd1 lowerInstanceResults(circt::hw::InstanceOp) PrepareForEmission.cpp:0:0
#17 0x0000557ca7b56d9e legalizeHWModule(mlir::Block&, circt::LoweringOptions const&) PrepareForEmission.cpp:0:0
#18 0x0000557ca7b57c26 circt::ExportVerilog::prepareHWModule(circt::hw::HWModuleOp, circt::LoweringOptions const&) (/usr/local/google/home/asraa/git/circt/build/bin/circt-opt+0x5d4c26)
#19 0x0000557ca7b57cef (anonymous namespace)::PrepareForEmissionPass::runOnOperation() PrepareForEmission.cpp:0:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment