|
tvm
|
Attribute keys and callback contracts for TIRx operators. More...
#include <tvm/ffi/extra/structural_mutate.h>#include <tvm/ffi/function.h>#include <tvm/ffi/reflection/native_function.h>#include <tvm/ffi/string.h>#include <tvm/ir/expr.h>#include <tvm/ir/stmt.h>#include <tvm/target/target.h>Go to the source code of this file.
Namespaces | |
| namespace | tvm |
| An object that builds and maintains block scope and StmtSref mapping for Dependence analysis. | |
| namespace | tvm::tirx |
| namespace | tvm::tirx::op_attr |
Typedefs | |
| using | tvm::tirx::FLowerIntrinsic = ffi::TypedFunction< PrimExpr(PrimExpr, Target)> |
| The intrinsic lowering function for given op, receiving its compilation target. | |
| using | tvm::tirx::FLegalize = ffi::TypedFunction< PrimExpr(PrimExpr, Target)> |
| The legalization function for given tirx op, receiving its compilation target. | |
Variables | |
| constexpr ffi::reflection::AttrKey< ffi::String > | tvm::tirx::op_attr::kGlobalSymbol {"TGlobalSymbol"} |
| Global symbol of the op after lowering. | |
| constexpr ffi::reflection::AttrKey< bool > | tvm::tirx::op_attr::kVectorizable {"TVectorizable"} |
| Whether the op is overloaded for vector form. | |
| constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView< ffi::Optional< ffi::VisitInterrupt >(StructuralVisitorWithConstraintContextObj *, ffi::AnyView value)> > | tvm::tirx::op_attr::kStructuralVisitWithConstraintContext {"__s_visit_with_constraint_context__"} |
| Constraint-aware descent for a Call or RegionStmt using this Op. Receives the complete containing node as value. The hook owns child descent, definition regions, and constraint scopes, and propagates interrupts and errors. Missing hooks use ordinary Call descent or body-scoped RegionStmt descent. | |
| constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView< ffi::UnchangedOr< ffi::Any >(StructuralMutatorWithConstraintContextObj *, ffi::AnyView value)> > | tvm::tirx::op_attr::kStructuralMutateWithConstraintContext {"__s_mutate_with_constraint_context__"} |
| Copying mutation of a complete Call or RegionStmt using this Op. The hook owns descent, definition remaps, and constraint scopes. Descend with in-place mutation disallowed and return a replacement or Unchanged, or an error. | |
| constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView< ffi::UnchangedOr< ffi::Any >(StructuralMutatorWithConstraintContextObj *, ffi::AnyView value)> > | tvm::tirx::op_attr::kStructuralMaybeInplaceMutateWithConstraintContext |
| Mutation when the engine permits in-place updates of the containing node. Child mutation still checks ownership. Missing overrides use the Op's copying hook; if both are absent, use ordinary Call or body-scoped RegionStmt descent. | |
Attribute keys and callback contracts for TIRx operators.
These attributes can be set via OpDef::set_attr