Skip to content

[REFACTOR][IR] Add structural hooks to remaining Type and Relax Expr nodes - #20302

Merged
tqchen merged 10 commits into
apache:mainfrom
tqchen:refactor-ir-structural-hooks-remaining-families
Sep 10, 2026
Merged

[REFACTOR][IR] Add structural hooks to remaining Type and Relax Expr nodes#20302
tqchen merged 10 commits into
apache:mainfrom
tqchen:refactor-ir-structural-hooks-remaining-families

Conversation

@tqchen

@tqchen tqchen commented Sep 10, 2026

Copy link
Copy Markdown
Member

Add explicit structural traversal hooks to the remaining concrete Type and Relax Expr families so generic structural map and walk operations preserve node identity and field semantics.

  • Add visit, mutate, and maybe-in-place mutate hooks for the remaining reachable concrete Type and Expr nodes in scope, including DataflowVarNode.
  • Preserve unchanged-node identity with ffi::Unchanged() and retain existing definition-region semantics.
  • Keep internal arithmetic temporaries and other excluded families out of scope; concrete Stmt registrations were already complete.
  • Rebase onto current upstream main.

Validation:

  • pre-commit checks pass for all modified source files.
  • Full existing C++ cpptest suite passes 132/132.

@tqchen
tqchen force-pushed the refactor-ir-structural-hooks-remaining-families branch from 18f6f7b to 87d4e68 Compare September 10, 2026 12:33
@tqchen

tqchen commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

@tvm-bot rerun

@tqchen
tqchen merged commit 141a187 into apache:main Sep 10, 2026
8 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