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

Native virtual mutation hooks over one structural constraint engine. More...

#include <stmt_functor_with_constraint_context.h>

Inheritance diagram for tvm::tirx::StmtExprMutatorWithConstraintContext:
Collaboration diagram for tvm::tirx::StmtExprMutatorWithConstraintContext:

Public Member Functions

 StmtExprMutatorWithConstraintContext ()
 
 StmtExprMutatorWithConstraintContext (const sym::ConstraintContext &context)
 Capture the supplied environment; the mutator owns its analyzer and local facts.
 
ffi::UnchangedOr< Expr > Mutate (const Expr &value, ffi::InplaceMode mode=ffi::InplaceMode::kDisallow)
 Typed entry preserving the expression or statement category.
 
ffi::UnchangedOr< PrimExpr > Mutate (const PrimExpr &value, ffi::InplaceMode mode=ffi::InplaceMode::kDisallow)
 Mutate a primitive expression, allowing a different primitive node kind.
 
ffi::UnchangedOr< Stmt > Mutate (const Stmt &value, ffi::InplaceMode mode=ffi::InplaceMode::kDisallow)
 Mutate a statement, allowing a different statement kind.
 
ffi::UnchangedOr< SeqStmt > Mutate (const SeqStmt &value, ffi::InplaceMode mode=ffi::InplaceMode::kDisallow)
 Keep a sequence entry point canonical when its callback returns one statement.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const LambdaExprObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize LambdaExprObj.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const OpaqueExprObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize OpaqueExprObj.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const TupleObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize TupleObj.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const TupleGetItemObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize TupleGetItemObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const TensorLoadObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize TensorLoadObj.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const TensorRegionObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize TensorRegionObj.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const VarObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize VarObj.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const GlobalVarObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize GlobalVarObj.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const CallObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize CallObj.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const GenericConstObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize GenericConstObj.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const DataTypeImmObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize DataTypeImmObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const IntImmObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize IntImmObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const FloatImmObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize FloatImmObj.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const OpObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize OpObj.
 
virtual ffi::UnchangedOr< Expr > Mutate_ (const StringImmObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize StringImmObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::CastObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::CastObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::AddObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::AddObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::LShiftObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::LShiftObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::RShiftObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::RShiftObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::BitwiseAndObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::BitwiseAndObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::BitwiseOrObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::BitwiseOrObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::BitwiseXorObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::BitwiseXorObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::BitwiseNotObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::BitwiseNotObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::SubObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::SubObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::MulObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::MulObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::DivObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::DivObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::ModObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::ModObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::FloorDivObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::FloorDivObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::FloorModObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::FloorModObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::MinObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::MinObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::MaxObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::MaxObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::EQObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::EQObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::NEObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::NEObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::LTObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::LTObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::LEObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::LEObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::GTObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::GTObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::GEObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::GEObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::AndObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::AndObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::OrObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::OrObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::NotObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::NotObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::SelectObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::SelectObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::LetObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::LetObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::RampObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::RampObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::BroadcastObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::BroadcastObj.
 
virtual ffi::UnchangedOr< PrimExpr > Mutate_ (const prim::ShuffleObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize prim::ShuffleObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const BindObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize BindObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const RegionStmtObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize RegionStmtObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const IfObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize IfObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const ForObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize ForObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const WhileObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize WhileObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const ReturnObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize ReturnObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const BreakObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize BreakObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const ContinueObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize ContinueObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const TensorStoreObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize TensorStoreObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const AssertStmtObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize AssertStmtObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const SeqStmtObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize SeqStmtObj.
 
virtual ffi::UnchangedOr< Stmt > Mutate_ (const EvaluateObj *node, ffi::InplaceMode mode)
 Default constraint-aware descent; override to customize EvaluateObj.
 
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.
 
- Public Member Functions inherited from tvm::tirx::ObjectMutatorWithConstraintContext
 ObjectMutatorWithConstraintContext ()
 
 ObjectMutatorWithConstraintContext (const ObjectMutatorWithConstraintContext &)=delete
 
ObjectMutatorWithConstraintContext & operator= (const ObjectMutatorWithConstraintContext &)=delete
 
ffi::Expected< ffi::UnchangedOr< ffi::Any > > MutateExpected (ffi::AnyView value, ffi::InplaceMode mode=ffi::InplaceMode::kDisallow) noexcept
 

Protected Member Functions

sym::AnalyzerObj * GetSyncedAnalyzer ()
 Synchronize before every analysis, including after child traversal. The borrowed pointer is not a live view: reacquire it after changing context.
 
void AddParamConstraints (const Function &func)
 Add global nonnegative tensor-parameter shape premises before traversal.
 
ffi::Array< PrimExpr > IterMapSimplifyWithContext (const ffi::Array< PrimExpr > &indices, bool non_trivial_only)
 Simplify indices using the active collector's iterator facts.
 
 StmtExprMutatorWithConstraintContext (const VTable *table)
 Construct with a finalized table extended by a native subclass.
 
- Protected Member Functions inherited from tvm::tirx::ObjectMutatorWithConstraintContext
 ObjectMutatorWithConstraintContext (const VTable *table)
 

Static Protected Member Functions

static void InitVTable (VTable *table)
 
- Static Protected Member Functions inherited from tvm::tirx::ObjectMutatorWithConstraintContext
static void InitVTable (VTable *table)
 
template<typename Self , typename Node >
static void SetDispatch (VTable *table)
 

Additional Inherited Members

- Protected Types inherited from tvm::tirx::ObjectMutatorWithConstraintContext
using VTable = ObjectFunctor< ffi::UnchangedOr< ffi::Any >(const ffi::Object *, ObjectMutatorWithConstraintContext *, ffi::InplaceMode)>
 

Detailed Description

Native virtual mutation hooks over one structural constraint engine.

Override Mutate_ for known nodes or Mutate for general dispatch. Allocate with ffi::make_object; typed entry points preserve expression/statement categories. Defaults share matching native expression bodies and delegate scope-sensitive nodes to the same hooks as StructuralMapWithConstraintContext and StructuralMutateWithConstraintContext, with one context and one variable-remap environment. Unknown node types use structural fallback.

Forward the inherited mode to child mutations. Entry overrides must preserve inherited denial and check uniqueness before writing. The default entry does so before calling a node hook. Errors propagate without restoring constraints, in-place IR changes, or identity remaps; discard the context after failure.

using StmtExprMutatorWithConstraintContext::Mutate_;
ffi::UnchangedOr<PrimExpr> Mutate_(const prim::AddObj* node,
ffi::InplaceMode mode) override {
// Inspect constraints here; delegate to retain default recursive behavior.
return StmtExprMutatorWithConstraintContext::Mutate_(node, mode);
}
};
auto mutator = ffi::make_object<Rewrite>();
auto result = mutator->Mutate(stmt);
a + b
Definition expr.h:108
Native virtual mutation hooks over one structural constraint engine.
Definition stmt_functor_with_constraint_context.h:317

Constructor & Destructor Documentation

◆ StmtExprMutatorWithConstraintContext() [1/3]

tvm::tirx::StmtExprMutatorWithConstraintContext::StmtExprMutatorWithConstraintContext ( )
inline

◆ StmtExprMutatorWithConstraintContext() [2/3]

tvm::tirx::StmtExprMutatorWithConstraintContext::StmtExprMutatorWithConstraintContext ( const sym::ConstraintContext &  context)
inlineexplicit

Capture the supplied environment; the mutator owns its analyzer and local facts.

◆ StmtExprMutatorWithConstraintContext() [3/3]

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

Construct with a finalized table extended by a native subclass.

Member Function Documentation

◆ AddParamConstraints()

void tvm::tirx::StmtExprMutatorWithConstraintContext::AddParamConstraints ( const Function &  func)
protected

Add global nonnegative tensor-parameter shape premises before traversal.

◆ GetSyncedAnalyzer()

sym::AnalyzerObj * tvm::tirx::StmtExprMutatorWithConstraintContext::GetSyncedAnalyzer ( )
inlineprotected

Synchronize before every analysis, including after child traversal. The borrowed pointer is not a live view: reacquire it after changing context.

◆ InitVTable()

static void tvm::tirx::StmtExprMutatorWithConstraintContext::InitVTable ( VTable *  table)
staticprotected

◆ IterMapSimplifyWithContext()

ffi::Array< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::IterMapSimplifyWithContext ( const ffi::Array< PrimExpr > &  indices,
bool  non_trivial_only 
)
protected

Simplify indices using the active collector's iterator facts.

◆ Mutate() [1/5]

ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate ( const Expr &  value,
ffi::InplaceMode  mode = ffi::InplaceMode::kDisallow 
)
inline

Typed entry preserving the expression or statement category.

◆ Mutate() [2/5]

ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate ( const PrimExpr &  value,
ffi::InplaceMode  mode = ffi::InplaceMode::kDisallow 
)
inline

Mutate a primitive expression, allowing a different primitive node kind.

◆ Mutate() [3/5]

ffi::UnchangedOr< SeqStmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate ( const SeqStmt &  value,
ffi::InplaceMode  mode = ffi::InplaceMode::kDisallow 
)
inline

Keep a sequence entry point canonical when its callback returns one statement.

◆ Mutate() [4/5]

ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate ( const Stmt &  value,
ffi::InplaceMode  mode = ffi::InplaceMode::kDisallow 
)
inline

Mutate a statement, allowing a different statement kind.

◆ Mutate() [5/5]

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 from tvm::tirx::ObjectMutatorWithConstraintContext.

◆ Mutate_() [1/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const AssertStmtObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize AssertStmtObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [2/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const BindObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize BindObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [3/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const BreakObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize BreakObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [4/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const CallObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize CallObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [5/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const ContinueObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize ContinueObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [6/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const DataTypeImmObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize DataTypeImmObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [7/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const EvaluateObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize EvaluateObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [8/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const FloatImmObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize FloatImmObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [9/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const ForObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize ForObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [10/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const GenericConstObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize GenericConstObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [11/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const GlobalVarObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize GlobalVarObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [12/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const IfObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize IfObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [13/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const IntImmObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize IntImmObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [14/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const LambdaExprObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize LambdaExprObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [15/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const OpaqueExprObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize OpaqueExprObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [16/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const OpObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize OpObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [17/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::AddObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::AddObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [18/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::AndObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::AndObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [19/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::BitwiseAndObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::BitwiseAndObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [20/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::BitwiseNotObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::BitwiseNotObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [21/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::BitwiseOrObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::BitwiseOrObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [22/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::BitwiseXorObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::BitwiseXorObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [23/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::BroadcastObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::BroadcastObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [24/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::CastObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::CastObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [25/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::DivObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::DivObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [26/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::EQObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::EQObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [27/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::FloorDivObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::FloorDivObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [28/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::FloorModObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::FloorModObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [29/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::GEObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::GEObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [30/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::GTObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::GTObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [31/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::LEObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::LEObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [32/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::LetObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::LetObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [33/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::LShiftObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::LShiftObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [34/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::LTObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::LTObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [35/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::MaxObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::MaxObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [36/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::MinObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::MinObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [37/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::ModObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::ModObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [38/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::MulObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::MulObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [39/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::NEObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::NEObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [40/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::NotObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::NotObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [41/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::OrObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::OrObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [42/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::RampObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::RampObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [43/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::RShiftObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::RShiftObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [44/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::SelectObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::SelectObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [45/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::ShuffleObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::ShuffleObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [46/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const prim::SubObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize prim::SubObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [47/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const RegionStmtObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize RegionStmtObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [48/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const ReturnObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize ReturnObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [49/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const SeqStmtObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize SeqStmtObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [50/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const StringImmObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize StringImmObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [51/57]

virtual ffi::UnchangedOr< PrimExpr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const TensorLoadObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize TensorLoadObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [52/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const TensorRegionObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize TensorRegionObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [53/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const TensorStoreObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize TensorStoreObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [54/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const TupleGetItemObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize TupleGetItemObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [55/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const TupleObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize TupleObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [56/57]

virtual ffi::UnchangedOr< Expr > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const VarObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize VarObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.

◆ Mutate_() [57/57]

virtual ffi::UnchangedOr< Stmt > tvm::tirx::StmtExprMutatorWithConstraintContext::Mutate_ ( const WhileObj *  node,
ffi::InplaceMode  mode 
)
virtual

Default constraint-aware descent; override to customize WhileObj.

Reimplemented in tvm::s_tir::StmtExprMutatorWithConstraintContext.


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