Skip to content

[REFACTOR] Type default structural mutation results as UnchangedOr<Any> - #773

Merged
tqchen merged 1 commit into
apache:mainfrom
tqchen:refactor/type-default-mutation-results
Sep 10, 2026
Merged

[REFACTOR] Type default structural mutation results as UnchangedOr<Any>#773
tqchen merged 1 commit into
apache:mainfrom
tqchen:refactor/type-default-mutation-results

Conversation

@tqchen

@tqchen tqchen commented Sep 10, 2026

Copy link
Copy Markdown
Member

Type the default structural mutation helpers as Expected<UnchangedOr>, matching the protocol already exposed by the public mutation entry points.

The raw TVMFFIAny hook and vtable ABI remain unchanged. The registered wrapper now returns the strong unchanged-or-replacement type directly, with focused compile-time and runtime coverage.

Validation:

  • 20 focused UnchangedOr/StructuralMutate/StructuralMap tests
  • 497 enabled CTest tests
  • formatting and repository lint checks
  • identical normalized hot/cold instruction and relocation listings for both default helpers under GCC 11.4.0 at -O3 before and after the change

@tqchen
tqchen merged commit fb8e102 into apache:main Sep 10, 2026
9 checks passed
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.

2 participants