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

Managed reference to CallNode. More...

#include <expr.h>

Inheritance diagram for tvm::Call:
Collaboration diagram for tvm::Call:

Public Member Functions

TVM_TIRX_DLL Call (ffi::Optional< Type > ret_ty, Expr op, ffi::Array< Expr > args, ffi::Optional< Attrs > attrs=std::nullopt, ffi::Array< Type > ty_args=ffi::Array< Type >(), Location loc=UnknownLoc())
 Construct a Call, inferring only when ret_ty is absent. Construction preserves provisional IR; invoke Validate separately when needed.
 
TVM_TIRX_DLL void Validate () const
 Check this Call against its registered operator contract.
 
 Call (ffi::ObjectPtr< CallNode > node)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Call, Expr, CallNode)
 
 TVM_DEFINE_OBJECT_REF_COW_METHOD (CallNode)
 
- 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)
 

Static Public Member Functions

static TVM_TIRX_DLL Type ReinferType (const CallNode *call)
 Recompute a result type from the Call's current explicit inputs.
 

Detailed Description

Managed reference to CallNode.

Constructor & Destructor Documentation

◆ Call() [1/2]

TVM_TIRX_DLL tvm::Call::Call ( ffi::Optional< Type >  ret_ty,
Expr  op,
ffi::Array< Expr >  args,
ffi::Optional< Attrs >  attrs = std::nullopt,
ffi::Array< Type >  ty_args = ffi::Array< Type >(),
Location  loc = UnknownLoc() 
)

Construct a Call, inferring only when ret_ty is absent. Construction preserves provisional IR; invoke Validate separately when needed.

◆ Call() [2/2]

tvm::Call::Call ( ffi::ObjectPtr< CallNode >  node)
inlineexplicit

Member Function Documentation

◆ ReinferType()

static TVM_TIRX_DLL Type tvm::Call::ReinferType ( const CallNode *  call)
static

Recompute a result type from the Call's current explicit inputs.

This ignores the Call's stored result type and does not mutate the Call. Returns Missing when no deduction is available; inference errors propagate. This does not invoke the operator's validator.

◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()

tvm::Call::TVM_DEFINE_OBJECT_REF_COW_METHOD ( CallNode  )

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::Call::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( Call  ,
Expr  ,
CallNode   
)

◆ Validate()

TVM_TIRX_DLL void tvm::Call::Validate ( ) const

Check this Call against its registered operator contract.


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