tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
tvm::Type Class Reference

Managed reference to TypeObj. More...

#include <type.h>

Inheritance diagram for tvm::Type:
Collaboration diagram for tvm::Type:

Public Member Functions

 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Type, ffi::ObjectRef, TypeObj)
 

Static Public Member Functions

template<typename TypeObj >
static void Expose ()
 Request API exposure of a registered IR object type.
 
static TVM_TIRX_DLL Type Missing ()
 Construct a MissingType for type information not yet populated.
 

Detailed Description

Managed reference to TypeObj.

See also
TypeObj

Member Function Documentation

◆ Expose()

template<typename TypeObj >
static void tvm::Type::Expose ( )
inlinestatic

Request API exposure of a registered IR object type.

Template Parameters
TypeObjThe object class, not its reference wrapper.
Note
Finish the ObjectDef statement and constructor registration before calling. Does nothing if the optional receiver was absent on the string helper's first call.
ffi::reflection::ObjectDef<FooTypeObj>().def_ro("value", &FooTypeObj::value);
Type::Expose<FooTypeObj>();

◆ Missing()

static TVM_TIRX_DLL Type tvm::Type::Missing ( )
static

Construct a MissingType for type information not yet populated.

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::Type::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( Type  ,
ffi::ObjectRef  ,
TypeObj   
)

The documentation for this class was generated from the following file: