tvm
Loading...
Searching...
No Matches
Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | List of all members
tvm::tirx::ObjectMutatorWithConstraintContext Class Reference

Native object mutation over one constraint-aware engine and variable remap. More...

#include <object_functor_with_constraint_context.h>

Inheritance diagram for tvm::tirx::ObjectMutatorWithConstraintContext:
Collaboration diagram for tvm::tirx::ObjectMutatorWithConstraintContext:

Public Member Functions

 ObjectMutatorWithConstraintContext ()
 
 ObjectMutatorWithConstraintContext (const ObjectMutatorWithConstraintContext &)=delete
 
ObjectMutatorWithConstraintContext & operator= (const ObjectMutatorWithConstraintContext &)=delete
 
virtual ffi::UnchangedOr< ffi::Any > Mutate (ffi::AnyView value, ffi::InplaceMode mode=ffi::InplaceMode::kDisallow)
 Dispatch a borrowed value after checking mutation permission and uniqueness.
 
ffi::Expected< ffi::UnchangedOr< ffi::Any > > MutateExpected (ffi::AnyView value, ffi::InplaceMode mode=ffi::InplaceMode::kDisallow) noexcept
 

Protected Types

using VTable = ObjectFunctor< ffi::UnchangedOr< ffi::Any >(const ffi::Object *, ObjectMutatorWithConstraintContext *, ffi::InplaceMode)>
 

Protected Member Functions

 ObjectMutatorWithConstraintContext (const VTable *table)
 

Static Protected Member Functions

static void InitVTable (VTable *table)
 
template<typename Self , typename Node >
static void SetDispatch (VTable *table)
 

Detailed Description

Native object mutation over one constraint-aware engine and variable remap.

Override Mutate for general dispatch. Forward inherited permission to children; the entry point checks uniqueness before dispatching a native hook. Unregistered values use structural fallback. Errors propagate without restoring the context.

Member Typedef Documentation

◆ VTable

using tvm::tirx::ObjectMutatorWithConstraintContext::VTable = ObjectFunctor<ffi::UnchangedOr<ffi::Any>( const ffi::Object*, ObjectMutatorWithConstraintContext*, ffi::InplaceMode)>
protected

Constructor & Destructor Documentation

◆ ObjectMutatorWithConstraintContext() [1/3]

tvm::tirx::ObjectMutatorWithConstraintContext::ObjectMutatorWithConstraintContext ( )
inline

◆ ObjectMutatorWithConstraintContext() [2/3]

tvm::tirx::ObjectMutatorWithConstraintContext::ObjectMutatorWithConstraintContext ( const ObjectMutatorWithConstraintContext &  )
delete

◆ ObjectMutatorWithConstraintContext() [3/3]

tvm::tirx::ObjectMutatorWithConstraintContext::ObjectMutatorWithConstraintContext ( const VTable *  table)
inlineexplicitprotected

Member Function Documentation

◆ InitVTable()

static void tvm::tirx::ObjectMutatorWithConstraintContext::InitVTable ( VTable *  table)
inlinestaticprotected

◆ Mutate()

virtual ffi::UnchangedOr< ffi::Any > tvm::tirx::ObjectMutatorWithConstraintContext::Mutate ( ffi::AnyView  value,
ffi::InplaceMode  mode = ffi::InplaceMode::kDisallow 
)
virtual

Dispatch a borrowed value after checking mutation permission and uniqueness.

Reimplemented in tvm::tirx::StmtExprMutatorWithConstraintContext.

◆ MutateExpected()

ffi::Expected< ffi::UnchangedOr< ffi::Any > > tvm::tirx::ObjectMutatorWithConstraintContext::MutateExpected ( ffi::AnyView  value,
ffi::InplaceMode  mode = ffi::InplaceMode::kDisallow 
)
inlinenoexcept

◆ operator=()

ObjectMutatorWithConstraintContext & tvm::tirx::ObjectMutatorWithConstraintContext::operator= ( const ObjectMutatorWithConstraintContext &  )
delete

◆ SetDispatch()

template<typename Self , typename Node >
static void tvm::tirx::ObjectMutatorWithConstraintContext::SetDispatch ( VTable *  table)
inlinestaticprotected

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