Implement and harden for loops - #124
Merged
Merged
Conversation
Add range and sequence iteration, break/continue CFG topology, structured HIR/MIR lowering, ownership-safe cleanup, and target-sized sequence indexes. Add focused parser, semantic, CFG, ownership, HIR, MIR, backend, and source fixture coverage. Helpers centralize generated loop artifacts and loan-lifetime invariants rather than forwarding existing behavior. Validated with go test -count=1 ./..., a fresh compiler bundle, the full uncached x_test suite, and 386/amd64 LLVM checks through clang.
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
forloops with value-only and index/value bindingsbreakandcontinuethrough canonical CFG init/header/body/latch/exit topology with exact-site ownership cleanupValidation
go test -count=1 ./...go run ./scripts/bundle.goPEEPER_BIN="$PWD/build/bin/peeper" go test ./x_test -count=1git diff --checkRules check
No pass-through compatibility wrappers, stale aliases, ignored parameters, fake source identities, duplicate iterator discovery, or backend-specific loop path were added. Generated-artifact helpers and loan filtering centralize phase-local invariants.
Closes #31.
User-defined iterator protocol remains separate follow-up: #123.