tvm
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
structural_visit_with_constraint_context.h File Reference

Structural traversal with ordered lexical symbolic premises. More...

#include <tvm/ffi/extra/structural_visit.h>
#include <tvm/sym/constraint.h>
Include dependency graph for structural_visit_with_constraint_context.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tvm::tirx::StructuralVisitorWithConstraintContextObj
 Visits values using their structural visit behavior while maintaining the constraint context relevant to each callback. More...
 
class  tvm::tirx::StructuralVisitorWithConstraintContext
 Owning reference to the active specialized visitor. 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::FStructuralVisitWithConstraintContext = ffi::reflection::NativeFunctionView< ffi::Optional< ffi::VisitInterrupt >(StructuralVisitorWithConstraintContextObj *, ffi::AnyView)>
 Sparse hook with the same result/error contract as FStructuralVisit.
 

Functions

template<ffi::WalkOrder order, typename... Callbacks>
ffi::Expected< ffi::Optional< ffi::VisitInterrupt > > tvm::tirx::StructuralWalkWithConstraintContextExpected (ffi::AnyView root, Callbacks &&... callbacks) noexcept
 Expected form of StructuralWalkWithConstraintContext.
 
template<ffi::WalkOrder order, typename... Callbacks>
ffi::Optional< ffi::VisitInterrupt > tvm::tirx::StructuralWalkWithConstraintContext (ffi::AnyView root, Callbacks &&... callbacks)
 Walk every occurrence with (value, const sym::ConstraintContext&) callbacks. A trailing TVMFFIDefRegionKind is optional, as in ffi::StructuralWalk. Return Expected<WalkResult>; pre-order Skip prunes descent and Interrupt stops the walk. Post callbacks see a scoped node after its internal scope is restored. Sequence traversal visits its statements directly in order; lazy calls visit their arguments directly so each branch has its own scope. These two hooks do not dispatch a callback for their intermediate Array containers.
 
template<typename... Callbacks>
ffi::Expected< ffi::Optional< ffi::VisitInterrupt > > tvm::tirx::StructuralVisitWithConstraintContextExpected (ffi::AnyView root, Callbacks &&... callbacks) noexcept
 Expected form of StructuralVisitWithConstraintContext.
 
template<typename... Callbacks>
ffi::Optional< ffi::VisitInterrupt > tvm::tirx::StructuralVisitWithConstraintContext (ffi::AnyView root, Callbacks &&... callbacks)
 Visit with callbacks (value, StructuralVisitorWithConstraintContextObj*). The first matching callback owns descent. Return completion, interrupt, or error as in ffi::StructuralVisit. Recurse with visitor->VisitExpected(child) or visitor->DefaultVisitExpected(value); constraints is the active context handle.
 

Variables

constexpr ffi::reflection::AttrKey< FStructuralVisitWithConstraintContext > tvm::tirx::type_attr::kStructuralVisitWithConstraintContext {"__s_visit_with_constraint_context__"}
 Optional constraint-aware descent; missing hooks use ordinary structural descent.
 

Detailed Description

Structural traversal with ordered lexical symbolic premises.