28#ifndef TVM_TIRX_OP_ATTR_H_
29#define TVM_TIRX_OP_ATTR_H_
31#include <tvm/ffi/extra/structural_mutate.h>
32#include <tvm/ffi/function.h>
33#include <tvm/ffi/reflection/native_function.h>
34#include <tvm/ffi/string.h>
42class StructuralVisitorWithConstraintContextObj;
43class StructuralMutatorWithConstraintContextObj;
59inline constexpr ffi::reflection::AttrKey<ffi::String>
kGlobalSymbol{
"TGlobalSymbol"};
63inline constexpr ffi::reflection::AttrKey<bool>
kVectorizable{
"TVectorizable"};
70inline constexpr ffi::reflection::AttrKey<ffi::reflection::NativeFunctionView<ffi::Optional<
78inline constexpr ffi::reflection::AttrKey<ffi::reflection::NativeFunctionView<
86inline constexpr ffi::reflection::AttrKey<ffi::reflection::NativeFunctionView<
89 "__s_maybe_inplace_mutate_with_constraint_context__"};
Statements shared across IR dialects.
Typed reference/view over any Expr whose ExprObj::ty is PrimType.
Definition expr.h:187
Managed reference class to TargetObj.
Definition target.h:155
Mutates values using their structural mutation behavior while maintaining the constraint context rele...
Definition structural_mutate_with_constraint_context.h:40
Visits values using their structural visit behavior while maintaining the constraint context relevant...
Definition structural_visit_with_constraint_context.h:38
constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView< ffi::Optional< ffi::VisitInterrupt >(StructuralVisitorWithConstraintContextObj *, ffi::AnyView value)> > kStructuralVisitWithConstraintContext
Constraint-aware descent for a Call or RegionStmt using this Op. Receives the complete containing nod...
Definition attr.h:72
constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView< ffi::UnchangedOr< ffi::Any >(StructuralMutatorWithConstraintContextObj *, ffi::AnyView value)> > kStructuralMaybeInplaceMutateWithConstraintContext
Mutation when the engine permits in-place updates of the containing node. Child mutation still checks...
Definition attr.h:88
constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView< ffi::UnchangedOr< ffi::Any >(StructuralMutatorWithConstraintContextObj *, ffi::AnyView value)> > kStructuralMutateWithConstraintContext
Copying mutation of a complete Call or RegionStmt using this Op. The hook owns descent,...
Definition attr.h:80
constexpr ffi::reflection::AttrKey< bool > kVectorizable
Whether the op is overloaded for vector form.
Definition attr.h:63
constexpr ffi::reflection::AttrKey< ffi::String > kGlobalSymbol
Global symbol of the op after lowering.
Definition attr.h:59
ffi::TypedFunction< PrimExpr(PrimExpr, Target)> FLegalize
The legalization function for given tirx op, receiving its compilation target.
Definition attr.h:53
ffi::TypedFunction< PrimExpr(PrimExpr, Target)> FLowerIntrinsic
The intrinsic lowering function for given op, receiving its compilation target.
Definition attr.h:48
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analysis.h:41
Compilation target object.