llvm / llvm/circt

[MooreToCore] DPI calls with open array arguments are broken

Open
#11,025 1 comment 0 reactions 1 assignee View on GitHub

@amanmaurya92 is already working on this.

Since Sep 8, 2026.

good first issue Moore
Dominant language
C++
Stars
2.2k
Forks
524
Avg merge
3d 2h
Merged PRs (30d)
46

Description

#11024 removed support for casting a fixed-size array to a DPI open-array parameter of matching element type, e.g. binding a byte data[8] actual to a byte data[] parameter in a DPI function. Test coverage for this was dropped from

  • test/Conversion/MooreToCore/dpi-open-array.mlir
  • test/Conversion/MooreToCore/moore-dpi-call-lowering.mlir
  • test/Conversion/MooreToCore/errors.mlir

This was originally added by @pscabot in #9882. With the moore.conversion op gone, we'll need a dedicated conversion op to support this case again.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.