The _type_child_slots can be used to enable quick type checking optimization by checking the whether the type index is within the bound. This PR enables these static slots: - Introduce a static assert to avoid the scenario when a developer forget to _type_child_slots when the field is set for the type's parent. - Revamp and assign static type index to common runtime objects - Add a DumpTypeTable call to allow developer monitor the current situation of type table and offers suggestions for the slots(ideally the slots equals the number of children so there is no overflow.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
.gitignore | Loading commit data... | |
arith_simplify_test.cc | Loading commit data... | |
attrs_test.cc | Loading commit data... | |
build_module_test.cc | Loading commit data... | |
container_test.cc | Loading commit data... | |
crt_memory_test.cc | Loading commit data... | |
expr_test.cc | Loading commit data... | |
ir_functor_test.cc | Loading commit data... | |
object_protocol_test.cc | Loading commit data... | |
packed_func_test.cc | Loading commit data... | |
pattern_match_test.cc | Loading commit data... | |
relay_build_module_test.cc | Loading commit data... | |
relay_pass_type_infer_test.cc | Loading commit data... | |
relay_transform_sequential.cc | Loading commit data... | |
simple_passes_test.cc | Loading commit data... | |
tensor_test.cc | Loading commit data... | |
threading_backend_test.cc | Loading commit data... | |
topi_ewise_test.cc | Loading commit data... | |
utvm_runtime_standalone_test.cc | Loading commit data... |