Class Call#

Inheritance Relationships#

Base Type#

Class Documentation#

class Call : public tvm::Expr#

Managed reference to CallObj.

Public Types

using ContainerType = CallObj#

Public Functions

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.

void Validate() const#

Check this Call against its registered operator contract.

inline explicit Call(ffi::ObjectPtr<CallObj> node)#
inline explicit Call(::tvm::ffi::UnsafeInit tag)#
inline __PtrType operator->() const#
inline __PtrType get() const#
inline CallObj *CopyOnWrite()#

Public Static Functions

static Type ReinferType(const CallObj *call)#

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.