|
tvm
|
Structural mutation with lexical symbolic premises. More...
#include <tvm/ffi/extra/structural_mutate.h>#include <tvm/tirx/structural_visit_with_constraint_context.h>Go to the source code of this file.
Classes | |
| class | tvm::tirx::StructuralMutatorWithConstraintContextObj |
| Mutates values using their structural mutation behavior while maintaining the constraint context relevant to each callback. Constraints use the resulting expressions and bindings. This semantic base contains only context state; concrete structural engines own the identity-remap environment. More... | |
| class | tvm::tirx::StructuralMutatorWithConstraintContext |
| Owning reference to the specialized mutator. More... | |
Namespaces | |
| namespace | tvm |
| An object that builds and maintains block scope and StmtSref mapping for Dependence analysis. | |
| namespace | tvm::tirx |
| namespace | tvm::tirx::type_attr |
Typedefs | |
| using | tvm::tirx::FStructuralMutateWithConstraintContext = ffi::reflection::NativeFunctionView< ffi::UnchangedOr< ffi::Any >(StructuralMutatorWithConstraintContextObj *, ffi::AnyView)> |
| Sparse constraint mutation hook, sharing the structural mutation ABI contract. | |
Functions | |
| template<ffi::WalkOrder order, typename... Callbacks> | |
| ffi::Expected< ffi::Any > | tvm::tirx::StructuralMapWithConstraintContextExpected (ffi::Any root, Callbacks &&... callbacks) noexcept |
| Expected form of StructuralMapWithConstraintContext. | |
| template<ffi::WalkOrder order, typename... Callbacks> | |
| ffi::Any | tvm::tirx::StructuralMapWithConstraintContext (ffi::Any root, Callbacks &&... callbacks) |
| Map with (value, const sym::ConstraintContext& [, def_region_kind]) callbacks. Callbacks return a replacement, Unchanged, or Expected thereof; they must not mutate their input. Pre/post behavior is that of ffi::StructuralMap. Pass std::move(root) to permit reuse; shared roots still copy. The position is restored before a scoped node's post callback. See the object documentation for timing. | |
| template<typename... Callbacks> | |
| ffi::Expected< ffi::Any > | tvm::tirx::StructuralMutateWithConstraintContextExpected (ffi::Any root, Callbacks &&... callbacks) noexcept |
| Expected form of StructuralMutateWithConstraintContext. | |
| template<typename... Callbacks> | |
| ffi::Any | tvm::tirx::StructuralMutateWithConstraintContext (ffi::Any root, Callbacks &&... callbacks) |
| Mutate with (value, StructuralMutatorWithConstraintContextObj* [, InplaceMode]). The first matching callback owns descent, exactly as in ffi::StructuralMutate. Return a replacement/Unchanged or Expected thereof. Delegate to mutator->DefaultMutateExpected(value, mode) for constraint-aware descent; recurse with MutateExpected(child, mode). Both use the same context and remap. | |
Variables | |
| constexpr ffi::reflection::AttrKey< FStructuralMutateWithConstraintContext > | tvm::tirx::type_attr::kStructuralMutateWithConstraintContext {"__s_mutate_with_constraint_context__"} |
| Copying descent for types with constraint scope behavior. | |
| constexpr ffi::reflection::AttrKey< FStructuralMutateWithConstraintContext > | tvm::tirx::type_attr::kStructuralMaybeInplaceMutateWithConstraintContext |
| In-place descent after the engine establishes permission and uniqueness. | |
Structural mutation with lexical symbolic premises.