25 #ifndef TVM_RELAX_TIR_PATTERN_H_
26 #define TVM_RELAX_TIR_PATTERN_H_
28 #include <tvm/ffi/reflection/registry.h>
49 namespace refl = tvm::ffi::reflection;
50 refl::ObjectDef<MatchResultNode>()
70 ffi::Array<tirx::Buffer> matched_buffers);
75 using FCodegen = ffi::TypedFunction<ffi::Array<ffi::Any>(ffi::Array<MatchResult> match_results)>;
Definition: tir_pattern.h:39
TIRPattern pattern
Definition: tir_pattern.h:42
static void RegisterReflection()
Definition: tir_pattern.h:48
ffi::Array< tirx::Buffer > matched_buffers
The matched buffers of input and output.
Definition: tir_pattern.h:46
ffi::Array< PrimExpr > symbol_values
The evaluated values of symbolic vars.
Definition: tir_pattern.h:44
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.MatchResult", MatchResultNode, ffi::Object)
Managed reference to MatchResultNode.
Definition: tir_pattern.h:61
MatchResult(TIRPattern pattern, ffi::Array< PrimExpr > symbol_values, ffi::Array< tirx::Buffer > matched_buffers)
Constructor.
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE(MatchResult, ffi::ObjectRef, MatchResultNode)
Managed reference to PrimFuncNode.
Definition: function.h:131
ffi::TypedFunction< ffi::Array< ffi::Any >(ffi::Array< MatchResult > match_results)> FCodegen
Definition: tir_pattern.h:75
PrimFuncFrame PrimFunc(bool is_private, bool s_tir=false, bool persistent=false)
The primitive function statement.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition: analyzer.h:37