| 200 | }; |
| 201 | |
| 202 | class TVar : public ObjectRef { |
| 203 | public: |
| 204 | explicit TVar(std::string name) { data_ = make_object<TVarObj>(name); } |
| 205 | |
| 206 | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE(TVar, ObjectRef, TVarObj); |
| 207 | }; |
| 208 | |
| 209 | // FreeVar test object that has a sub-field referencing another FreeVar. |
| 210 | // This models the "var with nested vars" case (analogous to a relax::Var |