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

Managed reference to FunctionNode. 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, ffi::Optional< SeqStmt > body, Type ret_type=VoidType(), DictAttrs attrs=DictAttrs(), Location loc=UnknownLoc())
 Constructor.
 
 Function (ffi::ObjectPtr< FunctionNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Function, BaseFunc, FunctionNode)
 
 TVM_DEFINE_OBJECT_REF_COW_METHOD (FunctionNode)
 
- Public Member Functions inherited from tvm::BaseFunc
 BaseFunc (ffi::ObjectPtr< BaseFuncNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (BaseFunc, Expr, BaseFuncNode)
 
- 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< ExprNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Expr, ffi::ObjectRef, ExprNode)
 

Detailed Description

Managed reference to FunctionNode.

See also
FunctionNode

Constructor & Destructor Documentation

◆ Function() [1/2]

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

Constructor.

Parameters
paramsThe parameters of the function.
bodyThe body of the function, or std::nullopt for a declaration.
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< FunctionNode >  node)
inlineexplicit

Member Function Documentation

◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()

tvm::tirx::Function::TVM_DEFINE_OBJECT_REF_COW_METHOD ( FunctionNode  )

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

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

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