Conversation
Replace flat MAX_CALLER_GROWTH with proportional growth limits (GCC-style), hard caller size cap, and recursive-caller stack estimate (LLVM-style). Fix Bug AL: symaddr-on-Arg during inlining produced pointer-to-pointer for MEMORY-class struct params; convert to copy instead. Update caller_size after each inline for accurate mid-iteration decisions. Remove bugs.md (info in git history/memory). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace boilerplate new()/impl Default with #[derive(Default)] for Module, Pseudo, PseudoId, PseudoKind, TranslationUnit, SymbolInfo, and CrossRef. Use .or_default() instead of .or_insert_with(T::new). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Extract builtin dispatch from parse_primary_expr (1544→250 lines) into parse_builtin_expr. Extract four groups from linearize_expr (920→247 lines): linearize_compound_literal, linearize_va_op, linearize_builtin, and linearize_c11_atomic. Pure mechanical refactor, no logic changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Split linearize.rs (8,600→4,266 lines) into: - linearize.rs: core, types, expressions, dispatch - linearize_init.rs (1,094): initializer/declaration linearization - linearize_stmt.rs (1,904): statement linearization - linearize_emit.rs (1,399): IR emission helpers Pure mechanical split — no logic changes. Linearizer fields changed to pub(crate) so sibling modules can access them. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
No description provided.