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::BufferVar> matched_buffers);
RAII wrapper function to enter and exit a context object similar to python's with syntax.
Definition with_context.h:59
Definition tir_pattern.h:39
TIRPattern pattern
Definition tir_pattern.h:42
static void RegisterReflection()
Definition tir_pattern.h:48
ffi::Array< tirx::BufferVar > 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::BufferVar > matched_buffers)
Constructor.
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE(MatchResult, ffi::ObjectRef, MatchResultNode)
Managed reference to PrimFuncNode.
Definition function.h:105
ffi::TypedFunction< ffi::Array< ffi::Any >(ffi::Array< MatchResult > match_results)> FCodegen
Definition tir_pattern.h:75
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analyzer.h:40