Skip to content

[REFACTOR][IR] Represent missing type information with MissingType - #20542

Open
tqchen wants to merge 1 commit into
apache:mainfrom
tqchen:task587-missingtype
Open

tqchen wants to merge 1 commit into
apache:mainfrom
tqchen:task587-missingtype

Conversation

@tqchen

@tqchen tqchen commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Introduce an empty final MissingType node whose construction returns a singleton for type information that has not been supplied or computed. Recognize missing types through C++ as<MissingType>() and Python isinstance, preserving node-kind semantics after serialization and the existing type factories.

Integrate reflection, structural traversal and TVMScript printing, and reject missing operands before Relax type-analysis shortcuts that require populated types. Type remains non-nullable.

@tqchen
tqchen force-pushed the task587-missingtype branch from 192fe5b to a52aff8 Compare October 4, 2026 14:03
Add a dedicated MissingType node with singleton construction, node-kind recognition, structural hooks, and Python and script support. Preserve non-nullable types and reject missing types at fully typed boundaries.
@tqchen
tqchen force-pushed the task587-missingtype branch from a52aff8 to d4eb110 Compare October 4, 2026 14:35

This branch has not been deployed

No deployments
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