This is an automated email from the ASF dual-hosted git repository.
areusch 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 b4c4215d7f Add vlogging for type-table registration. (#11041)
b4c4215d7f is described below
commit b4c4215d7f7399a999248182ff047e802f2574e7
Author: Andrew Reusch <[email protected]>
AuthorDate: Mon May 16 13:27:51 2022 -0700
Add vlogging for type-table registration. (#11041)
---
src/runtime/object.cc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/runtime/object.cc b/src/runtime/object.cc
index 3565ab9b18..05bfd6d1cf 100644
--- a/src/runtime/object.cc
+++ b/src/runtime/object.cc
@@ -103,6 +103,8 @@ class TypeContext {
if (static_tindex != TypeIndex::kDynamic) {
// statically assigned type
+ VLOG(3) << "TypeIndex[" << static_tindex << "]: static: " << skey << ",
parent "
+ << type_table_[parent_tindex].name;
allocated_tindex = static_tindex;
ICHECK_LT(static_tindex, type_table_.size());
ICHECK_EQ(type_table_[allocated_tindex].allocated_slots, 0U)
@@ -111,9 +113,13 @@ class TypeContext {
} else if (pinfo.allocated_slots + num_slots <= pinfo.num_slots) {
// allocate the slot from parent's reserved pool
allocated_tindex = parent_tindex + pinfo.allocated_slots;
+ VLOG(3) << "TypeIndex[" << allocated_tindex << "]: dynamic: " << skey <<
", parent "
+ << type_table_[parent_tindex].name;
// update parent's state
pinfo.allocated_slots += num_slots;
} else {
+ VLOG(3) << "TypeIndex[" << type_counter_ << "]: dynamic (overflow): " <<
skey << ", parent "
+ << type_table_[parent_tindex].name;
ICHECK(pinfo.child_slots_can_overflow)
<< "Reach maximum number of sub-classes for " << pinfo.name;
// allocate new entries.