This is an automated email from the ASF dual-hosted git repository.
tlopex pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 30a1d2ef41 [Fix][TIRx] Restore IterVar span reflection (#20214)
30a1d2ef41 is described below
commit 30a1d2ef41ae9c0c5592971a6e4ded74e39029bd
Author: Shushi Hong <[email protected]>
AuthorDate: Sat Aug 29 00:56:38 2026 -0400
[Fix][TIRx] Restore IterVar span reflection (#20214)
This PR restores the reflection metadata for `IterVarNode::span`, which
was omitted during the migration from VisitAttrs to the new reflection
mechanism.
The source span remains optional and is excluded from structural
equality and hashing, matching the original behavior.
---
include/tvm/tirx/var.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/tvm/tirx/var.h b/include/tvm/tirx/var.h
index 28e322b3e3..1886aaca51 100644
--- a/include/tvm/tirx/var.h
+++ b/include/tvm/tirx/var.h
@@ -176,7 +176,9 @@ class IterVarNode : public PrimExprConvertibleNode {
.def_ro("dom", &IterVarNode::dom)
.def_ro("var", &IterVarNode::var,
refl::AttachFieldFlag::SEqHashDefRecursive())
.def_ro("iter_type", &IterVarNode::iter_type)
- .def_ro("thread_tag", &IterVarNode::thread_tag);
+ .def_ro("thread_tag", &IterVarNode::thread_tag)
+ .def_ro("span", &IterVarNode::span, refl::DefaultValue(Span()),
+ refl::AttachFieldFlag::SEqHashIgnore());
}
static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind =
kTVMFFISEqHashKindTreeNode;