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

Managed reference to FunctionObj. More...

#include <function.h>

Inheritance diagram for tvm::tirx::Function:
Collaboration diagram for tvm::tirx::Function:

Public Member Functions

TVM_TIRX_DLL Function (ffi::Array< tvm::Var > params, SeqStmt body, Type ret_type=VoidType(), DictAttrs attrs=DictAttrs(), Location loc=UnknownLoc())
 Constructor.
 
 Function (ffi::ObjectPtr< FunctionObj > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Function, BaseFunc, FunctionObj)
 
 TVM_DEFINE_OBJECT_REF_COW_METHOD (FunctionObj)
 
- Public Member Functions inherited from tvm::BaseFunc
 BaseFunc (ffi::ObjectPtr< BaseFuncObj > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (BaseFunc, Expr, BaseFuncObj)
 
- Public Member Functions inherited from tvm::Expr
bool operator== (const Expr &other) const =delete
 
bool operator!= (const Expr &other) const =delete
 
bool operator< (const Expr &other) const =delete
 
 Expr (ffi::ObjectPtr< ExprObj > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Expr, ffi::ObjectRef, ExprObj)
 

Detailed Description

Managed reference to FunctionObj.

See also
FunctionObj

Constructor & Destructor Documentation

◆ Function() [1/2]

TVM_TIRX_DLL tvm::tirx::Function::Function ( ffi::Array< tvm::Var >  params,
SeqStmt  body,
Type  ret_type = VoidType(),
DictAttrs  attrs = DictAttrs(),
Location  loc = UnknownLoc() 
)

Constructor.

Parameters
paramsThe parameters of the function.
bodyThe body of the function. Declarations use an empty sequence and tvm::attr::kDeclaration.
ret_typeThe return type of the function.
attrsAdditional function attributes.
locThe location of this object in the source code.

◆ Function() [2/2]

tvm::tirx::Function::Function ( ffi::ObjectPtr< FunctionObj >  node)
inlineexplicit

Member Function Documentation

◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()

tvm::tirx::Function::TVM_DEFINE_OBJECT_REF_COW_METHOD ( FunctionObj  )

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::tirx::Function::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( Function  ,
BaseFunc  ,
FunctionObj   
)

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