You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by GitBox <gi...@apache.org> on 2026/07/01 02:06:06 UTC
[GH] (tvm/tvm-pr1-collapse-primexpr-typed-view-and-call): Workflow run "Lint" failed!
The GitHub Actions job "Lint" on tvm.git/tvm-pr1-collapse-primexpr-typed-view-and-call has failed.
Run started by GitHub user tqchen (triggered by tqchen).
Head commit for run:
b23a1bd04fdc879503e7023e241d6f2c18b18abd / Tianqi Chen <tq...@users.noreply.github.com>
[REFACTOR][IR] Unify PrimExpr with Expr typed view
PrimExpr is now a typed view over Expr values with PrimType results, and Call is shared across IR dialects.
Migration guide:
- In C++, narrow a generic Expr with as_or_throw<PrimExpr>(); use direct GetRef<PrimExpr> only where the concrete node invariant guarantees a PrimType result.
- Construct shared ir::Call with an explicit result Type. Primitive-valued calls carry PrimType and can then be viewed as PrimExpr.
- Represent unavailable type information with Type::Missing(), and check IsMissing() before typed traversal or narrowing.
- In Python, use tvm.ir.is_prim_expr(value), or an explicit Expr plus PrimType check at a deliberate API boundary, instead of nominal PrimExpr isinstance checks.
- Store shared expression collections as Expr and perform checked element narrowing only at primitive-only consumers; likewise replace visitor and overload assumptions tied to a nominal PrimExpr node class.
Report URL: https://github.com/apache/tvm/actions/runs/28488538619
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org