MCPcopy Create free account
hub / github.com/apache/tvm-ffi / GetObjectOffsetToSubclass

Method GetObjectOffsetToSubclass

include/tvm/ffi/object.h:1106–1109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1104#endif
1105 template <typename Class>
1106 TVM_FFI_INLINE static int64_t GetObjectOffsetToSubclass() {
1107 return static_cast<int64_t>(__builtin_offsetof(Class, header_)) -
1108 static_cast<int64_t>(__builtin_offsetof(Object, header_));
1109 }
1110#if defined(__clang__) || defined(__GNUC__)
1111#pragma GCC diagnostic pop
1112#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected