Skip to content

[REFACTOR][IR] Colocate and inline expression FFI traits - #20585

Merged
tqchen merged 2 commits into
apache:mainfrom
tqchen:ir/expr-ffi-traits
Oct 7, 2026
Merged

tqchen merged 2 commits into
apache:mainfrom
tqchen:ir/expr-ffi-traits

Conversation

@tqchen

@tqchen tqchen commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Define Expr, PrimExpr, and the dependent IntExpr FFI traits beside the complete literal classes in expr.h, with their opt-outs and scalar/string conversion definitions in the same header.

Define recursive Expr array-to-Tuple conversion with ordinary inline after Tuple is complete. This retains recursive sequence conversion and expression identity while removing the out-of-line conversion definitions from expr.cc.

@tqchen
tqchen force-pushed the ir/expr-ffi-traits branch from 3c31172 to 8785e8a Compare October 7, 2026 11:46
@tqchen tqchen changed the title [REFACTOR][IR] Colocate expression traits and convert arrays to tuples [REFACTOR][IR] Colocate and inline expression FFI traits Oct 7, 2026
@tqchen
tqchen force-pushed the ir/expr-ffi-traits branch from 8785e8a to 6d9d481 Compare October 7, 2026 16:08
@tqchen
tqchen merged commit 31f6481 into apache:main Oct 7, 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