Skip to content

Move type-resolution family out-of-line into MLIRGenTypes.cpp (review doc 1)#218

Merged
ASDAlexander77 merged 1 commit into
mainfrom
refactor/mlirgen-tu-split-types
Jul 12, 2026
Merged

Move type-resolution family out-of-line into MLIRGenTypes.cpp (review doc 1)#218
ASDAlexander77 merged 1 commit into
mainfrom
refactor/mlirgen-tu-split-types

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Second mechanical slice of the §1 TU split from docs/MLIRGen-refactoring-review.md (follows #217).

What

  • MLIRGenTypes.cpp (new): the contiguous type-resolution family — getType through getNullType (134 methods, ~3,400 lines: type references, generic zipping/constraints, embedded/utility types, conditional/mapped/template-literal types, tuple/union/intersection construction) — defined out-of-line.
  • MLIRGenImpl.h shrinks from 25,202 to 22,096 lines; the moved methods keep their declarations (default arguments stay on declarations only).
  • The lone template member in the block, getIndexedAccessTypeForArray<T>, stays inline in the header (template definitions must be visible to all users).

Same mechanical recipe as #217: signature/body split at the method level, bodies byte-identical, MLIRGenImpl:: qualification added.

Verification

  • Debug build clean.
  • MLIRGenTests 12/12.
  • Full ctest suite: 681/681 (339 JIT + 342 AOT).

🤖 Generated with Claude Code

… doc 1)

Second slice of the TU split: the contiguous type-resolution family
(getType ... getNullType, 134 methods, ~3,400 lines) moves from inline
bodies in MLIRGenImpl.h to out-of-line definitions in MLIRGenTypes.cpp.
The lone template member (getIndexedAccessTypeForArray<T>) stays inline
in the header. Default arguments remain on declarations only.

Verified: MLIRGenTests 12/12, full ctest 681/681 (JIT + AOT).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ASDAlexander77 ASDAlexander77 merged commit a3d3d1f into main Jul 12, 2026
2 checks passed
@ASDAlexander77 ASDAlexander77 deleted the refactor/mlirgen-tu-split-types branch July 12, 2026 23:58
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