24#ifndef TVM_S_TIR_TENSOR_INTRIN_H_
25#define TVM_S_TIR_TENSOR_INTRIN_H_
48 namespace refl = tvm::ffi::reflection;
49 refl::ObjectDef<TensorIntrinNode>()
88 TVM_DLL
static ffi::Optional<TensorIntrin>
Get(ffi::String name,
bool allow_missing =
false);
Tensor intrinsics for tensorization.
Definition tensor_intrin.h:35
static void RegisterReflection()
Definition tensor_intrin.h:47
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("s_tir.TensorIntrin", TensorIntrinNode, ffi::Object)
TensorIntrinNode(tirx::Function desc, tirx::Function impl)
Definition tensor_intrin.h:39
tirx::Function desc
The function to describe the computation.
Definition tensor_intrin.h:43
TensorIntrinNode(ffi::UnsafeInit tag)
Definition tensor_intrin.h:37
tirx::Function impl
The function of the implementation for the execution.
Definition tensor_intrin.h:45
Managed reference to TensorIntrinNode.
Definition tensor_intrin.h:59
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, TensorIntrinNode)
Managed reference to FunctionNode.
Definition function.h:105
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition attr.h:23