Repository navigation
Allow module statics of struct types - #1616
Conversation
Closes #562 Co-authored-by: godofecht <[email protected]>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Closes #562 Co-authored-by: godofecht <[email protected]>
Closes #562 Co-authored-by: godofecht <[email protected]>
Closes #562 Co-authored-by: godofecht <[email protected]>
Co-authored-by: godofecht <[email protected]>
…-8220065690770900155-5930509473570132711 Fix CI: Update stale MLIR digest for static_array_element.flow
Closes #562 Co-authored-by: godofecht <[email protected]>
Closes #562 Co-authored-by: godofecht <[email protected]>
Closes #562 Co-authored-by: godofecht <[email protected]>
Closes #562 Co-authored-by: godofecht <[email protected]>
Closes #562 Co-authored-by: godofecht <[email protected]>
Closes #562 Co-authored-by: godofecht <[email protected]>
Closes #562 Co-authored-by: godofecht <[email protected]>
… notes - Updated `compiler/fixtures/mlir/corpus.txt` with correct digest for `static_array_element.flow`. - Added `.note.GNU-stack` section for Linux to `runtime/flow_fctx_arm64.S` and `runtime/flow_fctx_x86_64.S` to resolve linker executable stack warnings. - Dropped the corresponding ld warnings from `tests/cli/goldens/linux/record_two_frames.err`. Co-authored-by: godofecht <[email protected]>
…-8220065690770900155-16457245074030375672 Fix CI failures in PR #1616: updated MLIR corpus digest and GNU stack notes
|
CI repair triage (2026-11-02): the red checks on this stale head are infrastructure failures, not demonstrated compiler-test regressions. The failing jobs ran on Ubuntu 26.04 and |
|
Merge coordination: #1616 and #1620 both implement issue #562 (struct/string module statics) and overlap in compiler/src/sem_check.flow, compiler/src/mlirgen.flow, tests/lang/module_statics_struct.flow and generated bootstrap. The old branch also carries unrelated workflow/runtime changes. Please choose one canonical implementation and rebase it onto current main; carry forward C backend initialization from #1620 and preserve tests, then regenerate bootstrap and corpus and verify exact-head CI. Merging both historical branches wholesale risks duplicate changes and regressions. This is a prerequisite before promoting either branch. |
…icts Preserve constant struct/string and array static checks, MLIR global handling and module regression tests while keeping the latest main bootstrap binary. Rebase 37 Stage-A C hunks, accounting for 18 generated local identifiers introduced on main. Superseded competing PR #1620 requires separate consolidation.
* Supersedes #1577 and #1623 (re-applied on current main). Part of MLIR parity. - Re-applied C build-mode guards fix to compiler source `attributes.flow` and regenerated `flowc_stage_a`. - Restored `test_only_guard` fixtures and updated the `corpus.txt` hash. - Removed obsolete documentation notes regarding `test_only_guard` and network timeouts. Co-authored-by: godofecht <[email protected]> * Supersedes #1577 and #1623 (re-applied on current main). Part of MLIR parity. - Re-applied C build-mode guards fix to compiler source `attributes.flow` and regenerated `flowc_stage_a`. - Restored `test_only_guard` fixtures. - Updated `corpus.txt` hash for the restored test and 6 existing files due to the fix resolving their divergence. - Removed obsolete documentation notes regarding `test_only_guard` and network timeouts. Co-authored-by: godofecht <[email protected]> * Supersedes #1577 and #1623 (re-applied on current main). Part of MLIR parity. - Re-applied C build-mode guards fix to compiler source `attributes.flow` and regenerated `flowc_stage_a`. - Restored `test_only_guard` fixtures and updated `corpus.txt` hash for it. - Updated `corpus.txt` hashes for 6 tests affected by the compiler source change (`test_attributes`, `test_parser_python_forms`, `test_parser_span_mutability`, `test_recognition_ssa`, `test_semantic_stack`, `test_typecheck_overload_integration`). - Removed obsolete documentation notes regarding `test_only_guard` and network timeouts. Co-authored-by: godofecht <[email protected]> * Supersedes #1577 and #1623 (re-applied on current main). Part of MLIR parity. - Re-applied C build-mode guards fix to compiler source `attributes.flow` and regenerated `flowc_stage_a`. - Restored `test_only_guard` fixtures and updated `corpus.txt` hash for it. - Updated `corpus.txt` hashes for 6 tests affected by the compiler source change (`test_attributes`, `test_parser_python_forms`, `test_parser_span_mutability`, `test_recognition_ssa`, `test_semantic_stack`, `test_typecheck_overload_integration`). - Removed obsolete documentation notes regarding `test_only_guard` and network timeouts. Co-authored-by: godofecht <[email protected]> * test(mlir): report expected and observed corpus SHA-256 on parity failure * test(mlir): scope six build-mode guard corpus digests Record normalized MLIR SHA-256 observed by exact-head parity gate after adding C build-mode guard. Preserve full corpus tracking, existing fixtures and parity enforcement. --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: godofecht <[email protected]>
…supersedes #1674) (#1682) Lowers vector literals using vector.from_elements in the MLIR backend, adds vector cast helpers, handles vector literal type inference and binop operand casts. Supersedes #1674 Supersedes #1562 Part of #1576 Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: godofecht <[email protected]>
Re-applies #1568 onto tip b1b3103 after #1682. Supersedes #1568. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: godofecht <[email protected]>
* docs: establish verified idiomatic Flow modernization guide * docs: link idiomatic Flow guide from documentation index * docs: register idiomatic Flow guide in wiki navigation
Closes #562. Supersedes the overlapping, closed #1620 implementation.
This change enables module statics containing strings and struct values, including nested constant aggregates and fixed arrays of strings/structs, without losing their initialized values.
{0}placeholder from the discarded Allow struct and string in static declarations #1620 approach.compiler/bootstrap/flowc_stage_a.cusing./compiler/scripts/bootstrap_from_c.sh --regen(fixed point generation 2) and passed--verify. The temporary regeneration workflow was removed.tests/lang/module_statics_struct.flowchecks strings, struct fields, nested structs, array fields, arrays of structs, and arrays of strings. The negative typecheck fixture and MLIR corpus baseline are retained.The feature branch was reconciled with current
mainas a merge commit, preserving unrelated upstream fixes; the diff against currentmainis limited to the seven relevant files.The final MLIR corpus digest for
tests/lang/test_only_guard.flowwas reconciled against the current emitter and the matching independent build-mode guards work; 2,733/2,734 previously matched on the initial full run. The original drifted bootstrap has been regenerated and passed--verify, and the initial self-host roundtrip and language tests passed. GitHub auto-merge is enabled; exact-head CI and merge-queue validation must pass before merging.