Class FunctionFrameObj#
Defined in File frame.h
Inheritance Relationships#
Base Type#
public tvm::script::ir_builder::ir::StmtFrameObj(Class StmtFrameObj)
Class Documentation#
-
class FunctionFrameObj : public tvm::script::ir_builder::ir::StmtFrameObj#
A frame that represents the Function containing TIR statements.
See also
Public Types
-
using AttrValidator = ffi::TypedFunction<void(const FunctionFrameObj*, const ffi::Any&)>#
Register validation for an extension-owned function attribute.
Public Functions
-
virtual void ExitWithScope() final#
The method called when exiting RAII scope.
See also
tvm::support::With
-
void ValidateAttrs() const#
Public Members
-
ffi::Optional<ffi::String> name#
The name of the block.
-
bool is_private#
Whether the Function is annotated as private.
-
ffi::Map<ffi::String, Any> attrs#
Additional attributes storing the meta-data.
-
bool persistent#
Whether it is a persistent kernel.
-
bool is_declaration = {false}#
Whether this frame collects a signature for later definition.
Public Static Functions
-
static inline void RegisterReflection()#
-
static inline int32_t _GetOrAllocRuntimeTypeIndex()#
-
static inline int32_t RuntimeTypeIndex() noexcept#
-
static void RegisterAttrValidator(ffi::String key, AttrValidator validator)#
-
using AttrValidator = ffi::TypedFunction<void(const FunctionFrameObj*, const ffi::Any&)>#