24#ifndef TVM_S_TIR_TENSOR_INTRIN_H_
25#define TVM_S_TIR_TENSOR_INTRIN_H_
49 namespace refl = tvm::ffi::reflection;
50 refl::ObjectDef<TensorIntrinObj>()
89 TVM_DLL
static ffi::Optional<TensorIntrin>
Get(ffi::String name,
bool allow_missing =
false);
Tensor intrinsics for tensorization.
Definition tensor_intrin.h:36
tirx::Function desc
The function to describe the computation.
Definition tensor_intrin.h:44
TensorIntrinObj(ffi::UnsafeInit tag)
Definition tensor_intrin.h:38
tirx::Function impl
The function of the implementation for the execution.
Definition tensor_intrin.h:46
TensorIntrinObj(tirx::Function desc, tirx::Function impl)
Definition tensor_intrin.h:40
static void RegisterReflection()
Definition tensor_intrin.h:48
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("s_tir.TensorIntrin", TensorIntrinObj, ffi::Object)
Managed reference to TensorIntrinObj.
Definition tensor_intrin.h:60
static void Register(ffi::String name, TensorIntrin intrin, bool override=false)
Create and register a TensorIntrin. After registration, the TensorIntrin can be looked up with its na...
static ffi::Optional< TensorIntrin > Get(ffi::String name, bool allow_missing=false)
Look up TensorIntrin by name. Raises an exception if not found.
TensorIntrin(tirx::Function desc, tirx::Function impl)
Constructor.
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(TensorIntrin, ffi::ObjectRef, TensorIntrinObj)
Managed reference to FunctionObj.
Definition function.h:107
Parent compiler symbol visibility.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analysis.h:41