Support user-provided DPI-C function declarations (#7626) (#7893)

Fixes #7626.
This commit is contained in:
Jakub Michalski
2026-07-08 05:22:24 -07:00
committed by GitHub
parent 93d0443998
commit 646dcd3838
14 changed files with 157 additions and 2 deletions
+1
View File
@@ -1060,6 +1060,7 @@ class TaskVisitor final : public VNVisitor {
// Add DPI Import to top, since it's a global function
m_topScopep->scopep()->addBlocksp(funcp);
funcp->dpiCDecl(nodep->dpiCDecl());
if (!makePortList(nodep, funcp)) return nullptr;
return funcp;
}