Skip to content

Fix MLIR array and callback ABI lowering - #831

Merged
godofecht merged 4 commits into
mainfrom
fix/mlir-array-callback-abi
Aug 31, 2026
Merged

godofecht merged 4 commits into
mainfrom
fix/mlir-array-callback-abi

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Fixes two MLIR backend failures exposed by flow-audio conformance: typed empty fixed arrays are kept as LLVM aggregate storage instead of being retagged as zero-length memrefs, and named function callbacks are lowered through hidden-environment adapters into Flow's fat closure ABI. Adds regression coverage for named callbacks. Focused validation: 4 MLIR closure tests and all 5 flow-audio MLIR conformance programs lower successfully through MLIR verification.

@godofecht

Copy link
Copy Markdown
Contributor Author

Follow-up: fixed the six new lint E702 findings in the callback adapter. Local validation now passes 31 focused MLIR tests and all five flow-audio conformance programs through MLIR verification. The remaining CI lint findings are pre-existing in src/flow/project_test_runner.py (unused shlex and raw_name), outside this PR.

@godofecht

Copy link
Copy Markdown
Contributor Author

CI cleanup is now green: lint, documentation coverage, wiki build, docs examples, security, fuzz, platform backends, and example smoke all pass. One pre-existing flowc self-host roundtrip job fails at link time because the generated bootstrap references missing symbols (flowc_lex_is_digit, flowc_cgen_putc, flowc_cgen_span_is, flowc_jsgen_putc, flowc_fmt_putc). This is outside the MLIR patch and reproduces on the PR merge ref.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant