Skip to content

Move variable/identifier family out-of-line into MLIRGenVariables.cpp (§1)#227

Merged
ASDAlexander77 merged 1 commit into
mainfrom
refactor/split-variables
Jul 13, 2026
Merged

Move variable/identifier family out-of-line into MLIRGenVariables.cpp (§1)#227
ASDAlexander77 merged 1 commit into
mainfrom
refactor/split-variables

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Summary

§1 TU split — same pattern as #217#226.

20 methods move from MLIRGenImpl.h into a new MLIRGenVariables.cpp TU: variable registration (registerVariable, registerVariableInThisContext, registerVariableDeclaration), the array/object binding-pattern family (incl. sub-paths and spread), processDeclarationName/processDeclaration, mlirGen(VariableDeclaration)/mlirGen(VariableDeclarationList), mlirGenParameterObjectOrArrayBinding, and the resolution family (resolveIdentifierAsVariable, resolveFunctionNameInNamespace, resolveTypeByNameInNamespace, resolveTypeByName, resolveIdentifierInNamespace, resolveFullNameIdentifier, resolveIdentifier).

  • 1,223 lines out of the header (11,902 → 10,679); default arguments preserved on declarations
  • Multiset reconciliation: 13 residuals, all signature transformations (3 default-arg continuation lines among them); zero body lines lost

Test plan

  • Clean rebuild
  • 683/683 ctest tests passed (159 s)

🤖 Generated with Claude Code

… (review doc 1)

20 methods (variable registration incl. this-context and declaration,
array/object binding patterns with sub-paths and spread, declaration
name/item processing, VariableDeclaration/List, parameter bindings,
and the identifier/type/namespace resolution family) move from
MLIRGenImpl.h into a new MLIRGenVariables.cpp TU; header keeps
declarations with defaults. 1223 lines out of the header
(11902 -> 10679).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ASDAlexander77 ASDAlexander77 merged commit d981042 into main Jul 13, 2026
2 checks passed
@ASDAlexander77 ASDAlexander77 deleted the refactor/split-variables branch July 13, 2026 11:53
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