Class FunctionObj#

Inheritance Relationships#

Base Type#

Class Documentation#

class FunctionObj : public tvm::BaseFuncObj#

Primitive functions that contains TIR statements.

The Function provides low-level code representation does not automatically manage

See also

Function

Public Functions

inline explicit FunctionObj(ffi::UnsafeInit tag)#
inline bool SEqual(const FunctionObj *other, ffi::TypedFunction<bool(AnyView, AnyView, bool, AnyView)> equal) const#
inline int64_t SHash(int64_t init_hash, ffi::TypedFunction<int64_t(AnyView, int64_t, bool)> hash) const#

Public Members

ffi::Array<tvm::Var> params#

Function parameters.

Type ret_type = Type::Missing()#

The return type of the function.

SeqStmt body#

The body of the function, empty for a marked declaration.

Public Static Functions

static inline void RegisterReflection()#
static inline int32_t _GetOrAllocRuntimeTypeIndex()#
static inline int32_t RuntimeTypeIndex() noexcept#