tvm
Loading...
Searching...
No Matches
Variables
tvm::op_attr Namespace Reference

Variables

constexpr ffi::reflection::AttrKey< CallEffectKind > kCallEffectKind {"TCallEffectKind"}
 The runtime effect of an operator call.
 
constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView< ffi::Array< Var >(const CallObj *call)> > kRegionGetBodyParams {"FRegionGetBodyParams"}
 Construct fresh typed variables for a region's lexical body parameters.
 
constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView< void(const RegionStmtObj *)> > kRegionValidate {"FRegionValidate"}
 Optional dialect validation of a complete region statement.
 

Variable Documentation

◆ kCallEffectKind

constexpr ffi::reflection::AttrKey<CallEffectKind> tvm::op_attr::kCallEffectKind {"TCallEffectKind"}
inlineconstexpr

The runtime effect of an operator call.

◆ kRegionGetBodyParams

constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView<ffi::Array<Var>(const CallObj* call)> > tvm::op_attr::kRegionGetBodyParams {"FRegionGetBodyParams"}
inlineconstexpr

Construct fresh typed variables for a region's lexical body parameters.

The input carries only the operation, operands and attributes, without a body or builder state. Parameters are ordered, distinct definitions and may have name hints. Every region operation must register this hook, returning an empty array when it has no body parameters. Presence of the attribute identifies region support without invoking the hook or allocating variables.

◆ kRegionValidate

constexpr ffi::reflection::AttrKey< ffi::reflection::NativeFunctionView<void(const RegionStmtObj*)> > tvm::op_attr::kRegionValidate {"FRegionValidate"}
inlineconstexpr

Optional dialect validation of a complete region statement.